y' + ytanx = cosx; y(x) = (x+C)cosx; y(pi) = 0 Please help!

Follow Math Help Forum on Facebook and Google+

This is first order linear, so use the integrating factor method. The integrating factor is . So multiplying through gives . Now substituting the boundary condition . Therefore .