Topic 13 Differential Equations
A differential equation is an equation which involves one or more functions and their derivatives.
E.g.
dydx=y(x+1)
dydx+y=x
d2ydx2+dydx+y=x2+2
are all examples of differential equations.
At A level you only study ones like the first example, which are called first order, separable, ordinary differential equations.
13.1 First order separable
First order means they only contain first derivatives.
Separable means they can be written (possibly after manipulation) in the form
dydx=f(x)g(y)
I.e. the derivative on the left, and the right as a product of functions of x and y.
E.g. Suppose we had
dydx=(x+1)y
The right hand side is a function of x x+1 times a function of y 1y.
Rearranging, gives
ydydx=(x+1)
We can now integrate each side:
∫ydydxdx=∫x+1dx
This simplifies, remembering integration by subsitution, to
∫ydy=∫x+1dx
Which gives
y22=x22+x+c
So
y2=x2+2x+2c
We could leave it there, but as c is a constant to be determined, we can rename it as d=2c to give
y2=x2+2x+d
Let’s take the example from the introduction:
dydx=y(x+1)
We could rewrite this as
1ydydx=x+1
and then integrate both sides
∫1ydydxdx=∫x+1dx
which simplifies into (remembering integration by substitution)
∫1ydy=∫x+1dx
We can now do the integrals on both sides, to give:
lny=x22+x+c Which can be simplified to
y=e12x2+x+c
We could leave it there, but a bit more manipulation gives
y=ex22+x+c=ex22+xec=ecex22+x=Aex22+x
Where we’ve made use of the fact that as c is an constant to be determined, ec is too, so it can be simplified making the substitution A=ec.
In practice, most people shortcut a couple of steps using a slightly dodgy, but effective, notation to simplify the writing. E.g.
dydx=ysinx
would be rewritten as
1ydy=sinxdx
I.e. treating the derivative as if it were a fraction and rearranging. It’s not a fraction, but just as with integration by substitution, treating it that way gives us the correct results in this case. We can then put in the integration signs ∫1ydy=∫sinxdx and integrate
lny=−cosx+c Giving y=Ae−cosx
So, the procedure is:
- Write the equation as dydx=f(x)g(y)
- Rearrange to 1g(y)dy=f(x)dx
- Integrate both sides, remembering the constant of integration, and then tidy up.
This gives the general solution. You get the particular solution by determining the unknown constant from extra information.
E.g. earlier we solved a differential equation and got the general solution
y=Ae12x2+x
Suppose when x=0 we had y=2, then we would have
2=Ae120+0 which gives A=2, so the particular solution is y=2e12x2+x