Thread: Solving the initial value first order differential equation

1. Solving the initial value first order differential equation

$\displaystyle \cos (x)y' + \sin (x)y = 2\cos (x)\sin (x) - 1$
$\displaystyle y(\frac{\pi } {4}) = 3\sqrt 2 ,0 \leqslant x \leqslant \frac{\pi } {4}$
I've tried to get y' and y by itself and got this mess:
$\displaystyle \int {\frac{{dy}} {y}} = \int {\frac{{2{{\cos }^3}(x)\sin (x) - 1 - \sin (x)dx}} {{\cos (x)}}}$

2. Originally Posted by genlovesmusic09
$\displaystyle \cos (x)y' + \sin (x)y = 2\cos (x)\sin (x) - 1$
$\displaystyle y(\frac{\pi } {4}) = 3\sqrt 2 ,0 \leqslant x \leqslant \frac{\pi } {4}$
I've tried to get y' and y by itself and got this mess:
$\displaystyle \int {\frac{{dy}} {y}} = \int {\frac{{2{{\cos }^3}(x)\sin (x) - 1 - \sin (x)dx}} {{\cos (x)}}}$
The DE can be re-written as $\displaystyle \frac{dy}{dx} + (\tan x) y = 2 \sin x - \frac{1}{\cos x}$.

Use the integrating factor technique to solve it.

3. where did cos^3(x) go?
I understand how everything else changed

4. Originally Posted by genlovesmusic09
where did cos^3(x) go?
I understand how everything else changed
This is the equation you posted (check the OP yourself):
$\displaystyle \cos (x)y' + \sin (x)y = 2\cos (x)\sin (x) - 1$
so I have no idea what you mean by
where did cos^3(x) go?

5. yes I see the confusion. I mistyped the problem it is:
$\displaystyle \cos (x)y' + \sin (x)y = 2{\cos ^3}(x)\sin (x) - 1$

6. Originally Posted by genlovesmusic09
yes I see the confusion. I mistyped the problem it is:
$\displaystyle \cos (x)y' + \sin (x)y = 2{\cos ^3}(x)\sin (x) - 1$
Well then, all you need to do is make the appropriate small change in my original post and then continue from there.