Diff Eq dy/dx= (ycos(x))/(1+y^2) initial condition is y(0)=1 work below
divided by y and multiply both sides by y^2 and got y^2/y dy = cos(x)dx integrate that and got y^2/2 = cos(x)+c and then got y= +/- sqrt (2cos(x)+2c) and am not sure where to go now
separation of variables again.. \[\frac{1+y^2}{y}\; dy = \cos(x)\; dx\] \[(\frac{1}{y} + y)\; dy = \cos(x) \;dx\] integrate both sides
You have to divide by the whole factor (1+y^2), can't break up across addition or subtraction.
Oh duh so that would give me +/- e^(sqrt(2cos(x)+2(c))
\[\ln(y) + \frac{1}{2}y^2 = -\sin(x) + c\] When x = 0 y = 1, so plug in these numbers to solve for c. \[\ln(1) + \frac{1}{2}(1)^2 = -\sin(0) + c\] \[0 + \frac{1}{2} = 0 + c\] \[\frac{1}{2} = c\]
then solve for c = y(0)=1?
I think you forgot to integrate cosine :)
Yea that too.
When should I satisfy initial conditions?
Once I get it into y= blah or do I try to satisfy for c when it is (function)y = function(x)
In this case, you can't solve specifically for y, so just plug in the initial condition. If you can solve for y, then it really doesn't matter when you solve for c. I usually do before I solve for y.
Thanks alot.
Join our real-time social learning platform and learn together with your friends!