Differential equation

1. Aug 21, 2008

okhjonas

Hello, I've got a problem with a differential equation...

1. The problem statement, all variables and given/known data

y' - ytan(x) = 2sin(x)

3. The attempt at a solution

I've tried to multiply the equation with the integrating factor $$e^{-\frac{1}{cos^{2}x}}$$ and then express the equation as $$ye^{-\frac{1}{cos^{2}x}}=\int2sin(x)e^{-\frac{1}{cos^{2}x}}dx$$ but then I've got lost..

2. Aug 21, 2008

tiny-tim

Hi okhjonas!

hmm … I thought you'd got some sleep?

No, your integrating factor is wrong …

you need an f with f'/f = - tanx …

oh I see … you differentiated tanx … try integrating it!!