Integral of sec(x): Solving with Substitution

  • Context:
  • Thread starter Thread starter Mathick
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
Mathick
Messages
23
Reaction score
0
Hello! I need to compute the following integral: $ \int \sec\left({x}\right) \; dx $ using the substitution $ t=\tan\left({\frac{x}{2}}\right) $ what I did. HOWEVER, they ask to compute the same integral knowing that $ \int \csc\left({x}\right) \; dx = \log_{e}\left({\tan\left({\frac{x}{2}}\right)}\right) + C $ and using substitution $ y=\frac{\pi}{2} - x $. And I have a lot of problems with the second part of this task. I would be very grateful for some help or advice.
 
Physics news on Phys.org
Use the identity $\cos\left(\frac{\pi}{2}-z\right)=\sin(z)$.
 
Mathick said:
I need to compute the following integral: $\displaystyle \int \sec\left({x}\right) \; dx $ using the substitution $ z=\tan\left({\frac{x}{2}}\right) $
[tex]z = \tan\frac{x}{2} \quad\Rightarrow\quad x = 2\arctan z \quad\Rightarrow\quad dx = \frac{2\,dz}{1+z^2} \quad\Rightarrow\quad \cos x = \frac{1-z^2}{1+z^2}[/tex]

[tex]\displaystyle \int\sec x\,dx \;=\;\int \frac{1+z^2}{1-z^2}\,\frac{2\,dz}{1+z^2} \;=\; \int\frac{2\,dz}{1-z^2} \;=\;\int\left(\frac{1}{1-z} + \frac{1}{1+z}\right)dz[/tex]

. . . [tex]=\;-\ln(1-z) + \ln(1+z) +C \;=\;\ln\left|\frac{1+z}{1-z}\right| + C \;=\; \ln\left|\frac{1+\tan\frac{x}{2}}{1 - \tan\frac{x}{2}}\right| + C[/tex]

. . . [tex]=\;\ln\left|\frac{\cos\frac{x}{2} + \sin\frac{x}{2}}{\cos\frac{x}{2} - \sin\frac{x}{2}}\right| + C \;=\;\frac{1}{2}\ln\left|\frac{\cos\frac{x}{2} + \sin\frac{x}{2}}{\cos\frac{x}{2} - \sin\frac{x}{2}}\right|^2 + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{\sin^2\frac{x}{2} + 2\sin\frac{x}{2}\cos\frac{x}{2} + \cos^2\frac{2}{2}} {\cos^2\frac{x}{2} - 2\sin\frac{x}{2}\cos\frac{x}{2} + \sin^2\frac{x}{2}}\right| + C \;=\;\frac{1}{2}\ln \left|<br /> \frac{1 + \sin x}{1-\sin x}\right| + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{1+\sin x}{1 - \sin x}\cdot\frac{1 + \sin x}{1 + \sin x}\right| + C \;=\;\frac{1}{2}\ln\left|\frac{(1+\sin x)^2}{1-\sin^2x}\right| + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{(1+\sin x)^2}{\cos^2x}\right| + C \;=\;\ln\left|\frac{(1+\sin x)^2}{\cos^2x}\right|^{\frac{1}{2}} + C[/tex]

. . . [tex]=\;\ln\left|\frac{1+\sin x}{\cos x}\right| + C \;=\; \ln\left|\frac{1}{\cos x} + \frac{\sin x}{\cos x}\right| + C \;=\;\ln|\sec x + \tan x| + C[/tex]
 
soroban said:
[tex]z = \tan\frac{x}{2} \quad\Rightarrow\quad x = 2\arctan z \quad\Rightarrow\quad dx = \frac{2\,dz}{1+z^2} \quad\Rightarrow\quad \cos x = \frac{1-z^2}{1+z^2}[/tex]

[tex]\displaystyle \int\sec x\,dx \;=\;\int \frac{1+z^2}{1-z^2}\,\frac{2\,dz}{1+z^2} \;=\; \int\frac{2\,dz}{1-z^2} \;=\;\int\left(\frac{1}{1-z} + \frac{1}{1+z}\right)dz[/tex]

. . . [tex]=\;-\ln(1-z) + \ln(1+z) +C \;=\;\ln\left|\frac{1+z}{1-z}\right| + C \;=\; \ln\left|\frac{1+\tan\frac{x}{2}}{1 - \tan\frac{x}{2}}\right| + C[/tex]

. . . [tex]=\;\ln\left|\frac{\cos\frac{x}{2} + \sin\frac{x}{2}}{\cos\frac{x}{2} - \sin\frac{x}{2}}\right| + C \;=\;\frac{1}{2}\ln\left|\frac{\cos\frac{x}{2} + \sin\frac{x}{2}}{\cos\frac{x}{2} - \sin\frac{x}{2}}\right|^2 + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{\sin^2\frac{x}{2} + 2\sin\frac{x}{2}\cos\frac{x}{2} + \cos^2\frac{2}{2}} {\cos^2\frac{x}{2} - 2\sin\frac{x}{2}\cos\frac{x}{2} + \sin^2\frac{x}{2}}\right| + C \;=\;\frac{1}{2}\ln \left|<br /> \frac{1 + \sin x}{1-\sin x}\right| + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{1+\sin x}{1 - \sin x}\cdot\frac{1 + \sin x}{1 + \sin x}\right| + C \;=\;\frac{1}{2}\ln\left|\frac{(1+\sin x)^2}{1-\sin^2x}\right| + C[/tex]

. . . [tex]=\; \frac{1}{2}\ln\left|\frac{(1+\sin x)^2}{\cos^2x}\right| + C \;=\;\ln\left|\frac{(1+\sin x)^2}{\cos^2x}\right|^{\frac{1}{2}} + C[/tex]

. . . [tex]=\;\ln\left|\frac{1+\sin x}{\cos x}\right| + C \;=\; \ln\left|\frac{1}{\cos x} + \frac{\sin x}{\cos x}\right| + C \;=\;\ln|\sec x + \tan x| + C[/tex]

I appreciate that but I didn't ask for that...