Often I am dealing with an integral of let's say:
∫dt(t−2)(t+3)
or
∫dtt(t−4)
or to make this a more general case in which I am interested the most:
∫dt(t+α)(t+β)α,β∈R
Basically any integral with decomposed polynomial of second degree in the denominator. Obviously this leads to sum of two natural logarithms.
What I do is write down partial fractions equation and then solve system of linear equations (2 variables here):
1(t+α)(t+β)=At+α+Bt+β
After solving this I end up with some A,B coefficients and I can solve the integral.
Is there faster way to find A,B ? Some algorithm or anything that I can follow and would always work for such case? Surely, solving that does not take much time but I just wonder if it could be done even faster.
(bonus question: what if there were more variables, like 3 variables?)
I would greatly appreciate all feedback as it could help me save countless number of minutes in the future.
Answer
Here's your answer
for general n.
1∏nk=1(x−ak)=∑nk=1bkx−ak.
Therefore
1=∑nk=1bk∏nj=1(x−aj)x−ak=∑nk=1bk∏nj=1,j≠k(x−aj).
Setting
x=ai
for each i,
all the terms
except the one with k=i
have the factor ai−ai,
so
1=bi∏nj=1,j≠i(ai−aj)
so that
bi=1∏nj=1,j≠i(ai−aj).
For n=2,
b1=1a1−a2,
b2=1a2−a1.
For n=3,
b1=1(a1−a2)(a1−a3),
b2=1(a2−a1)(a2−a3),
b3=1(a3−a1)(a3−a2).
No comments:
Post a Comment