Solving a First Order DE: y'+ycot(x)=cos(x)

  • Thread starter Thread starter iRaid
  • Start date Start date
  • Tags Tags
    First order
iRaid
Messages
558
Reaction score
8

Homework Statement


y'+ycot(x)=cos(x)


Homework Equations





The Attempt at a Solution


First I found the integrating factor:
\rho (x)=e^{\int cot(x)dx}=e^{ln(sinx)}=sinx
Plug into the equation for first order DE...
\int \frac{d}{dx} ysinx=\int cosxsinx dx
End up with:
ysinx=\frac{-cos^{2}x}{2}+C\\y=\frac{-cosxcotx}{2}+\frac{C}{sinx}

I think that's wrong tho..
 
Physics news on Phys.org
iRaid said:

Homework Statement


y'+ycot(x)=cos(x)


Homework Equations





The Attempt at a Solution


First I found the integrating factor:
\rho (x)=e^{\int cot(x)dx}=e^{ln(sinx)}=sinx
Plug into the equation for first order DE...
\int \frac{d}{dx} ysinx=\int cosxsinx dx
End up with:
ysinx=\frac{-cos^{2}x}{2}+C\\y=\frac{-cosxcotx}{2}+\frac{C}{sinx}


I think that's wrong tho..

You have the right answer. But since \cos^2 x + \sin^2 x = 1, it follows that (\sin^2 x)' = -(\cos^2 x)'. Perhaps it would have been better to take \sin x \cos x = \frac12(\sin^2 x)', since you have (y\sin x)' on the other side of the equation.

You can in any event use \cos^2 x + \sin^2 x = 1 to simplify your answer:
<br /> \frac{\cos^2 x}{\sin x} = \frac{1 - \sin^2 x}{\sin x} = \frac{1}{\sin x} - \sin x
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top