Solveeit Logo

Question

Question: How do you integrate \[\int {x{{\tan }^2}x} \] using integration by parts?...

How do you integrate xtan2x\int {x{{\tan }^2}x} using integration by parts?

Explanation

Solution

Hint : Here in this question given an indefinite integral, we have to find the integrated value of a given function. First rewrite the given function by using the trigonometric identity i.e., tan2θ=sec2θ1{\tan ^2}\theta = {\sec ^2}\theta - 1 and next it can be solve by the method of integration by parts by separating the function as uu and vv , later integrated by using the standard formulas of integration. And by further simplification we get the required solution.

Complete step-by-step answer :
Integration by parts is a technique for performing indefinite integration or definite integration by expanding the differential of a product of functions d(uv)d\left( {uv} \right) and expressing the original integral in terms of a known integral vdu\int {v\,du} . A single integration by parts starts with
d(uv)=udv+vdud(uv) = u\,dv + v\,du
and integrates both sides,
d(uv)=uv=udv+vdu.\int {d(uv)} = uv = \int {u\,dv} + \int {v\,} du. ------(1)
Rearranging gives
udv=uvvdu.\int {u\,} dv = uv - \int v \,du. ---------(2)
Consider the given function xtan2xdx\int {x{{\tan }^2}x} \,\,dx -----(3)
Rewrite the function using the standard trigonometric identity i.e., tan2θ=sec2θ1{\tan ^2}\theta = {\sec ^2}\theta - 1 . Then Equation (3) Can be written as
xtan2xdx=x(sec2x1)dx\Rightarrow \int {x{{\tan }^2}x} \,\,dx = \int {x\left( {{{\sec }^2}x - 1} \right)} \,\,dx
xtan2xdx=(xsec2xx)dx\Rightarrow \,\,\int {x{{\tan }^2}x} \,\,dx = \,\int {\left( {x{{\sec }^2}x - x} \right)} \,\,dx
Integrate each term separately
xtan2xdx=xsec2xdxxdx\Rightarrow \int {x{{\tan }^2}x} \,\,dx = \int {x{{\sec }^2}x\,\,dx} - \int x \,\,dx ------(4)
Given an integral which is not having any upper and lower limit then it’s an indefinite integral.
Hence we add the C while integrating. Where, C is an arbitrary constant called as the constant of integration.
Integration of xdx=x22+c \Rightarrow - \int x \,\,dx = - \dfrac{{{x^2}}}{2} + c -------(5)
Next, xsec2xdx\Rightarrow \int {x{{\sec }^2}x\,\,dx}
Let take u=xu = x dudx=1 \Rightarrow \,\,\dfrac{{du}}{{dx}} = 1 and
dvdx=sec2x\dfrac{{dv}}{{dx}} = {\sec ^2}x v=tanx \Rightarrow \,\,v = \tan x
Then by the method of integration by parts i.e., by the equation (2)
xsec2xdx=xtanxtanxdx\, \Rightarrow \int {x{{\sec }^2}x\,\,dx = } \,\,x\tan x - \int {\tan x} \,\,dx
Where tanx=sinxcosx\tan x = \dfrac{{\sin x}}{{\cos x}} put t=cosxt = \cos x sinxdx \Rightarrow \,\, - \sin x\,dx , then
xsec2xdx=xtanxdtt\, \Rightarrow \int {x{{\sec }^2}x\,\,dx} = x\tan x - \int { - \dfrac{{dt}}{t}} \,
xsec2xdx=xtanx+lnt+c\Rightarrow \int {x{{\sec }^2}x\,\,dx} = x\tan x + \ln |t| + c\,
xsec2xdx=xtanx+lncosx+c\Rightarrow \int {x{{\sec }^2}x\,\,dx} = x\tan x + \ln \left| {\cos x} \right| + c\, --------(6)
Substitute the equation (5) and (6) in equation (4)
xtan2xdx=xtanx+lncosx+cx22+c\Rightarrow \int {x{{\tan }^2}x} \,\,dx = x\tan x + \ln \left| {\cos x} \right| + c\, - \dfrac{{{x^2}}}{2} + c
On simplification, we get
xtan2xdx=xtanx+lncosxx22+C\Rightarrow \int {x{{\tan }^2}x} \,\,dx = x\tan x + \ln \left| {\cos x} \right| - \dfrac{{{x^2}}}{2} + C
Where C is an integrating constant.
Hence, the value of xtan2x\int {x{{\tan }^2}x} is xtanx+lncosxx22+Cx\tan x + \ln \left| {\cos x} \right| - \dfrac{{{x^2}}}{2} + C .
So, the correct answer is “ xtanx+lncosxx22+Cx\tan x + \ln \left| {\cos x} \right| - \dfrac{{{x^2}}}{2} + C ”.

Note : In integration we have two kinds one is definite integral and other one is indefinite integral. This question comes under the indefinite integral. While integrating the function which is in the form of product or division form we use the integration by parts method. By applying the integration by parts we obtain the solution.