# Math Help - Problem With Integrating Factors

1. ## Problem With Integrating Factors

SOLVED... You can ignore this ;D

When I solve the following First-Order Linear ODE I get the wrong answer....

$y' + y*tan(x)=sin(2x)$, $y(0)=1$

I use the integrating factor $|sec(x)|$ and get the solution

$y=k*|cos(x)|-2*cos^2 (x)$

While a textbook and wolfram alpha say that there should be no absolute value sign around the cos(x)....

I think my problem was in determining the integrating factor, can anyone explain what I did wrong? I used the formula [LaTeX ERROR: Convert failed]

Thanks