- #1

iRaid

- 559

- 8

## Homework Statement

[tex]y'+ycot(x)=cos(x)[/tex]

## Homework Equations

## The Attempt at a Solution

First I found the integrating factor:

[tex]\rho (x)=e^{\int cot(x)dx}=e^{ln(sinx)}=sinx[/tex]

Plug into the equation for first order DE...

[tex]\int \frac{d}{dx} ysinx=\int cosxsinx dx[/tex]

End up with:

[tex]ysinx=\frac{-cos^{2}x}{2}+C\\y=\frac{-cosxcotx}{2}+\frac{C}{sinx}[/tex]

I think that's wrong tho..