We can solve the integral $\int\frac{1}{4\sec\left(x\right)-1}dx$ by applying the method Weierstrass substitution (also known as tangent half-angle substitution) which converts an integral of trigonometric functions into a rational function of $t$ by setting the substitution
Hence
Substituting in the original integral we get
Simplifying
Take out the constant $2$ from the integral
Solve the product $4\left(1+t^{2}\right)$
Solve the product $-\left(1-t^{2}\right)$
Simplify the expression
Rewrite the fraction $\frac{1-t^{2}}{\left(3+5t^{2}\right)\left(1+t^{2}\right)}$ in $2$ simpler fractions using partial fraction decomposition
Expand the integral $\int\left(\frac{4}{3+5t^{2}}+\frac{-1}{1+t^{2}}\right)dt$ into $2$ integrals using the sum rule for integrals, to then solve each integral separately
The integral $2\int\frac{4}{3+5t^{2}}dt$ results in: $\frac{8\sqrt{\frac{3}{5}}\arctan\left(\sqrt{\frac{5}{3}}t\right)}{3}$
The integral $2\int\frac{-1}{1+t^{2}}dt$ results in: $-2\arctan\left(t\right)$
Gather the results of all integrals
Replace $t$ with the value that we assigned to it in the beginning: $\tan\left(\frac{x}{2}\right)$
Simplify the expression
As the integral that we are solving is an indefinite integral, when we finish integrating we must add the constant of integration $C$
Try other ways to solve this exercise
Get a preview of step-by-step solutions.
Earn solution credits, which you can redeem for complete step-by-step solutions.
Save your favorite problems.
Become premium to access unlimited solutions, download solutions, discounts and more!