Solved example of integration by trigonometric substitution
We can solve the integral $\int\sqrt{x^2+4}dx$ by applying integration method of trigonometric substitution using the substitution
Differentiate both sides of the equation $x=2\tan\left(\theta \right)$
Find the derivative
The derivative of a function multiplied by a constant ($2$) is equal to the constant times the derivative of the function
The derivative of the tangent of a function is equal to secant squared of that function times the derivative of that function, in other words, if ${f(x) = tan(x)}$, then ${f'(x) = sec^2(x)\cdot D_x(x)}$
The derivative of the linear function is equal to $1$
Now, in order to rewrite $d\theta$ in terms of $dx$, we need to find the derivative of $x$. We need to calculate $dx$, we can do that by deriving the equation above
Substituting in the original integral, we get
Factor by the greatest common divisor $4$
Calculate the power $2^2$
Calculate the power $\sqrt{4}$
Multiply $2$ times $2$
The power of a product is equal to the product of it's factors raised to the same power
Applying the trigonometric identity: $\tan(x)^2+1=\sec(x)^2$
The integral of a constant by a function is equal to the constant multiplied by the integral of the function
When multiplying exponents with same base you can add the exponents: $\sec\left(\theta \right)\sec\left(\theta \right)^2$
Subtract the values $3$ and $-2$
Any expression to the power of $1$ is equal to that same expression
Rewrite $\sec\left(\theta \right)^{3}$ as the product of two secants
We can solve the integral $\int\sec\left(\theta \right)^2\sec\left(\theta \right)d\theta$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
Taking the derivative of secant function: $\frac{d}{dx}\left(\sec(x)\right)=\sec(x)\cdot\tan(x)\cdot D_x(x)$
First, identify $u$ and calculate $du$
Now, identify $dv$ and calculate $v$
Solve the integral
The integral of $\sec(x)^2$ is $\tan(x)$
When multiplying two powers that have the same base ($\tan\left(\theta \right)$), you can add the exponents
Now replace the values of $u$, $du$ and $v$ in the last formula
Multiply $4$ times $-1$
Multiplying polynomials $4$ and $\tan\left(\theta \right)\sec\left(\theta \right)-\int\tan\left(\theta \right)^2\sec\left(\theta \right)d\theta$
Apply the formula: $\int\sec\left(x\right)\tan\left(x\right)^2dx$$=\int\sec\left(x\right)^3dx-\int\sec\left(x\right)dx$, where $x=\theta $
The integral of the secant function is given by the following formula, $\displaystyle\int\sec(x)dx=\ln\left|\sec(x)+\tan(x)\right|$
Rewrite $\sec\left(\theta \right)^3$ as the product of two secants
We can solve the integral $\int\sec\left(\theta \right)^2\sec\left(\theta \right)d\theta$ by applying integration by parts method to calculate the integral of the product of two functions, using the following formula
First, identify $u$ and calculate $du$
Now, identify $dv$ and calculate $v$
Solve the integral
The integral of $\sec(x)^2$ is $\tan(x)$
Now replace the values of $u$, $du$ and $v$ in the last formula
When multiplying two powers that have the same base ($\tan\left(\theta \right)$), you can add the exponents
Apply the formula: $\int\sec\left(x\right)\tan\left(x\right)^2dx$$=\int\sec\left(x\right)^3dx-\int\sec\left(x\right)dx$, where $x=\theta $
Solve the product $-(\int\sec\left(\theta \right)^3d\theta-\int\sec\left(\theta \right)d\theta)$
The integral of the secant function is given by the following formula, $\displaystyle\int\sec(x)dx=\ln\left|\sec(x)+\tan(x)\right|$
Simplify the integral $\int\sec\left(\theta \right)^3d\theta$ applying the reduction formula, $\displaystyle\int\sec(x)^{n}dx=\frac{\sin(x)\sec(x)^{n-1}}{n-1}+\frac{n-2}{n-1}\int\sec(x)^{n-2}dx$
Solve the product $-4\left(\tan\left(\theta \right)\sec\left(\theta \right)-\left(\frac{\sin\left(\theta \right)\sec\left(\theta \right)^{2}}{2}+\frac{1}{2}\int\sec\left(\theta \right)d\theta\right)\right)$
Solve the product $4\left(\frac{\sin\left(\theta \right)\sec\left(\theta \right)^{2}}{2}+\frac{1}{2}\int\sec\left(\theta \right)d\theta\right)$
Simplifying
The integral of the secant function is given by the following formula, $\displaystyle\int\sec(x)dx=\ln\left|\sec(x)+\tan(x)\right|$
Express the variable $\theta$ in terms of the original variable $x$
Multiplying the fraction by $-2$
Take $\frac{-2}{2}$ out of the fraction
Add fraction's numerators with common denominators: $\frac{\sqrt{x^2+4}}{2}$ and $\frac{x}{2}$
The integral $-4\int\tan\left(\theta \right)^2\sec\left(\theta \right)d\theta$ results in: $-\frac{1}{2}x\sqrt{x^2+4}+2\ln\left|\frac{\sqrt{x^2+4}+x}{2}\right|$
Gather the results of all integrals
Express the variable $\theta$ in terms of the original variable $x$
Multiplying the fraction by $4$
Take $\frac{4}{2}$ out of the fraction
Adding $-\frac{1}{2}\sqrt{x^2+4}x$ and $\sqrt{x^2+4}x$
As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$
The logarithm of a quotient is equal to the logarithm of the numerator minus the logarithm of the denominator
Simplify the expression by applying logarithm properties
Access detailed step by step solutions to thousands of problems, growing every day!