I am having a bit of trouble finding a method of solving the
differential equation of
dy/dx=f(y)+g(x)
How do we solve these sorts of equations?
Thanks,
Brad
Thanks,
I had originally wished to solve the equation of
dy/dx=y+x
I just can't seem to do this methodically (I think that a
solution is y=-x-1, but there most probably are other solutions).
Any help would be greatly appreciated.
Brad
Ah well that's much easier than the
general case. The nice thing with your example is that the
differential equation is linear in y.
You have already found one solution: y = -x - 1 (to see this
works just plug in y = -x - 1 to both sides and make sure they
balance).
So if you let y1 = -x - 1 then:
dy1 /dx = y1 + x [equation 1]
Now suppose there exists another solution, y such that
dy/dx = y + x [equation 2]
Subtract [1] from [2]:
dy/dx - dy1 /dx = y - y1 + x - x
So:
d(y - y1 )/dx = (y - y1 )
So the function u = y - y1 satisfies:
du/dx = u
Therefore u = Aex , y - y1 =
Aex
y = - x - 1 + Aex
And remember that this holds for any y that satisfies the
differential equation, so the general solution is:
y = -x - 1 + Aex
where A is an arbitrary constant.
Hope this helps,
Michael
There is also an alternative method which can be used to solve
the more general dy/dx = y.f(x) + g(x) which you might be
interested in.
If dy/dx + Py = Q where P and Q are functions of x
dy/dx + Py = Q