Question
Question: How do you integrate \(x\times {{\tan }^{-1}}x\) ?...
How do you integrate x×tan−1x ?
Solution
Integrating x×tan−1x means∫x×tan−1xdx ,
We use the following four formulae:
Integration by parts: \underset{{}}{\overset{{}}{\mathop \int }}\,uvdx~=~u\underset{{}}{\overset{{}}{\mathop \int }}\,vdx- \underset{{}}{\overset{{}}{\mathop \int }}\,\left(\dfrac{du}{dx}\underset{{}}{\overset{{}}{\mathop \int }}\,vdx \right)dx....(i)
dxdtan−1x=(x2+1)1......(ii)
∫xndx=n+1xn+1+C....(iii) , where C is a constant
∫x2+11dx=tan−1dx+C....(iv), where C is a constant
We first use (i) with u as tan−1x and v as x, then use (ii) to find dxdu and then use (iii) and (iv) to do further integration.
Complete step by step answer:
We first use integration by parts, which is \underset{{}}{\overset{{}}{\mathop \int }}\,uvdx~=~u\underset{{}}{\overset{{}}{\mathop \int }}\,vdx-\left( \underset{{}}{\overset{{}}{\mathop \int }}\,\dfrac{du}{dx}\underset{{}}{\overset{{}}{\mathop \int }}\,vdx \right)dx....(i)
for which we need the formula of differentiation of tan−1x , which is dxdtan−1x=(x2+1)1......(ii)
So, applying (i) to ∫x×tan−1xdx ,we have
⇒∫x×tan−1xdx=tan−1x∫xdx−∫(dxdtan−1x(∫xdx)dx)
Using ∫xndx=n+1xn+1+C....(iii) , where C is a constant, we have:
⇒tan−1x∫xdx−∫(dxdtan−1x(∫xdx)dx)=tan−1x(2x2)+C1−∫dxdtan−1x(2x2)dx , (Where C1 is a constant)
Now using (ii)
⇒tan−1x(2x2)+C1−∫dxdtan−1x(2x2)dx=tan−1x(2x2)+C1−∫x2+11(2x2)dx
Since constant can be taken out of the integration without changing its value, we have:
⇒tan−1x(2x2)+C1−∫x2+11(2x2)dx=tan−1x(2x2)+C1−21∫x2+1x2dx
Now, since +1 -1 =0, we can add it to any term and fractions numerator. Thus,
⇒tan−1x(2x2)+C1−21∫x2+1x2dx=tan−1x(2x2)+C1−21∫x2+1x2+1−1dx
We, know numerator distributes over a denominator, so x2+1x2+1−1=x2+1x2+1−x2+11
Since x2 is positive for all x, x2+1=0 . Therefore x2+1x2+1−x2+11=1−x2+11 as x2+1 gets cancelled.
Thus, ⇒tan−1x(2x2)+C1−21∫x2+1x2dx=tan−1x(2x2)+C1−21∫1−x2+11dx
Integration distributes over addition that is, for any functions f and g we have (∫f+g)=(∫f)+(∫g)
So, ⇒tan−1x(2x2)+C1−21∫1−x2+11dx=tan−1x(2x2)+C1−21(∫1dx−∫x2+11dx)
Using (iii) again we have:
(Where C2 is a constant)
⇒tan−1x(2x2)+C1−21(∫1dx−∫x2+11dx)=tan−1x(2x2)+C1−21(x+C2−∫x2+11dx)
Now, using ∫x2+11dx=tan−1dx+C....(iv) , where C is a constant, we have:
(where C3 is a constant)
⇒tan−1x(2x2)+C1−21(x+C2−∫x2+11dx)=tan−1x(2x2)+C1−21(x+C2−tan−1x+C3)
Since C1,C2,C3 are all constants, they can be clubbed together as one constant and we write it as + C
Therefore, ∫x×tan−1xdx=tan−1x((2x2)+21)−21x+C
Note: Be careful with putting constants after doing integrals, it is advised to just add a C as constant after all the calculation instead of writing C1,C2 etc, have written above for your understanding. That is a common place to make mistakes. Other than that, one must be extremely careful while applying the formulae as it's common to miss a term or two.
Alternatively,
You can substitute
x=tanθdx=sec2θdθ∫xtan−1xdx=∫θtanθsec2θdθ=∫cos3θθsinθdθ
And then use integration by parts.