Solve the differential equation (dy/dx)=ycos(x)/(1+y^2) with the initial condition y(0) = 1.
\[\frac{ dy }{dx }=\frac{ y \cos(x) }{ 1+y ^{2}}\]
First we separate the values but idk how to do that in this case.
@Michele_Laino
if we separate the varibles, we get: \[dy\frac{{1 + {y^2}}}{y} = \cos x\;dx\]
variables*
@Michele_Laino then we intergrate can get this \[\int\limits \frac{ 1+y ^{2} }{ y } dy= \int\limits \cos(x) dx\] \[\ln(y)+\frac{ y ^{2} }{ 2}+C=\sin(x)+C\] \[\ln(y) + \frac{ y ^{2} }{ 2 }=\sin(x)+C\]
@Michele_Laino what then?
we have to set y=1 and x=0, so we can find the value of the constant C
okay so plug in the x and y values or should we simplify the rest of the equation first. can if we have to simplify what would i do next?
@Michele_Laino
it is the same, we can rewrite your solution as below: \[\Large y{e^{{y^2}/2}} = C{e^{\sin x}}\]
substantially it is the same as yours
if I set x=0 and y=1, I get this: \[\Large C = \sqrt e \]
Yes! I got the same answer so now what do we do? @Michele_Laino
plug sqrt(e) back into the equation
?
yes!
after that substitution, we get: \[\Large y{e^{{y^2}/2}} = \sqrt e {e^{\sin x}}\]
\[ye ^{\frac{ y ^{2} }{ 2 }}=(\sqrt{e})e ^{\sin(x)}\]
that's right!
@Michele_Laino is that it then?
yes!
thanks!!
thanks! :)
Join our real-time social learning platform and learn together with your friends!