Page 1 of 1

solve `dy/dx=(-1xy)/(1+x^2` with y(0)=2

PostPosted: Tue 27 September, 2011 11:50
by barnamah
The question says solve `dy/dx=(-1xy)/(1+x^2` with y(0)=2 as initial condition.

Re: solve `dy/dx=(-2xy)/(1+x^2)` with y(0)=2

PostPosted: Tue 27 September, 2011 12:18
by Integr88
we have the initial condition y(0)=2 and the differential equation equations `dy/dx=(-2xy)/(1+x^2)`
as you can see this equation is separable so we have separate all x with dx on one side all y with dy on the other side.
multiply both side by dx and we have

to get ys with dy, divide both side by y or `1/y`so we have
`1/y*dy=(-2xy)/(1+x^2)*(dx)*1/y` and we have:
`1/y*dy=(-2x)/(1+x^2)*(dx)` which is
`dy/y=(-2x)/(1+x^2)*(dx)` Now integrate
on the left side we have ln(y) and on the right we have:


using u=`1+x^2` and du=2xdx we we have:
`-int1/udu` and after integration it is -ln(u)+c and substitute u we have:
To simplify it we know -ln(A)=(-1)ln(A) and `ln(A)^-1` so `-ln(1+x^2)+c` becomes `ln(1+x^2)^(-1)=ln(1/(1+x^2))` so our equation becomes
`ln|y|=ln(1/(1+x^2))+c` now do the `e` and
we have `|y|=e^(ln(1/(1+x^2))+c)`
`|y|=e^(ln(1/(1+x^2)))*e^c` and because `e^c` is a constant we can call is k. so we have:
`y=+-e^(ln(1/(1+x^2)))*e^c` by removing the absulut values, we put `+-` and then the `+-` go whit the constant, e cancels the ln and we have:

Now use the initial condition y(0)=2

so we found the k to be 2 and out equation `y=1/(1+x^2)*k`

and that is the solution.