jonnburton
Junior Member
- Joined
- Dec 16, 2012
- Messages
- 155
I've had to integrate the following function, and believe I have followed the instructions laid out in the book for doing so but have come to the wrong answer.
Find \(\displaystyle \int^0_{-\frac{\pi}{4}} \frac{2}{cosx - sin x} dx\)
To put this into terms that can be integrated:
\(\displaystyle cos x - sin x = Rcos(x - \alpha)\)
\(\displaystyle Rcosxcos\alpha - Rsinxsin\alpha =cos x - sin x \)
\(\displaystyle Rcos\alpha =1\)
\(\displaystyle Rsin\alpha =1\)
\(\displaystyle R(cos^2\alpha + sin^2\alpha) = \sqrt{1^2 + 1^2} = \sqrt 2\)
\(\displaystyle \sqrt2 cos\alpha = 1\)
\(\displaystyle \alpha = 0.785^c\)
\(\displaystyle cosx - sinx = \sqrt2 cos(x-0.785^c)\)
So now the integral can be expressed as:
\(\displaystyle \int^0_{-\frac{\pi}{4}} \frac{2}{\sqrt2 cos(x-0.785^c)}dx\)
Factoring out the constants\(\displaystyle 2\) and \(\displaystyle \frac{1}{\sqrt2}\):
\(\displaystyle \frac{2}{\sqrt2}\int^0_{-\frac{\pi}{4}} \frac{1}{ cos(x-0.785^c)}dx
\(\displaystyle \frac{2}{\sqrt2}\int^0_{-\frac{\pi}{4}} sec(x - 0.785^c)dx\)
\(\displaystyle \int sec (x) dx = ln|sec (x) + tan(x)|+c \)
so this integral comes to:
\(\displaystyle \left[ln|sec (x-0.785^c) + tan (x-0.785^c)\right]^0_\frac{-\pi}{4}\)
Could anybody tell me whether what I have done up to this stage is correct? Despite checking it several times, my answer is nothing like that provided in the book, which is \(\displaystyle \sqrt2 ln(1+\sqrt2)\)\)
Find \(\displaystyle \int^0_{-\frac{\pi}{4}} \frac{2}{cosx - sin x} dx\)
To put this into terms that can be integrated:
\(\displaystyle cos x - sin x = Rcos(x - \alpha)\)
\(\displaystyle Rcosxcos\alpha - Rsinxsin\alpha =cos x - sin x \)
\(\displaystyle Rcos\alpha =1\)
\(\displaystyle Rsin\alpha =1\)
\(\displaystyle R(cos^2\alpha + sin^2\alpha) = \sqrt{1^2 + 1^2} = \sqrt 2\)
\(\displaystyle \sqrt2 cos\alpha = 1\)
\(\displaystyle \alpha = 0.785^c\)
\(\displaystyle cosx - sinx = \sqrt2 cos(x-0.785^c)\)
So now the integral can be expressed as:
\(\displaystyle \int^0_{-\frac{\pi}{4}} \frac{2}{\sqrt2 cos(x-0.785^c)}dx\)
Factoring out the constants\(\displaystyle 2\) and \(\displaystyle \frac{1}{\sqrt2}\):
\(\displaystyle \frac{2}{\sqrt2}\int^0_{-\frac{\pi}{4}} \frac{1}{ cos(x-0.785^c)}dx
\(\displaystyle \frac{2}{\sqrt2}\int^0_{-\frac{\pi}{4}} sec(x - 0.785^c)dx\)
\(\displaystyle \int sec (x) dx = ln|sec (x) + tan(x)|+c \)
so this integral comes to:
\(\displaystyle \left[ln|sec (x-0.785^c) + tan (x-0.785^c)\right]^0_\frac{-\pi}{4}\)
Could anybody tell me whether what I have done up to this stage is correct? Despite checking it several times, my answer is nothing like that provided in the book, which is \(\displaystyle \sqrt2 ln(1+\sqrt2)\)\)