Separable differential equations

Separable differential equations

Spec 8.7–8 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A differential equation is separable if dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y).
  • Separate: ∫1g(y)dy=∫f(x) dx\int\dfrac{1}{g(y)}dy=\int f(x)\,dx, with one constant of integration.
  • The general solution has a constant; a particular solution uses a given condition to fix it.
  • dmdt=km\dfrac{dm}{dt}=km has solution m=Aektm=Ae^{kt}.
  • State the domain of validity of a solution in context.

Separating the variables

Put all the yy terms with dydy on one side and all the xx terms with dxdx on the other, then integrate.

A first order equation is separable if it can be written dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y). Then ∫1g(y)dy=∫f(x) dx\int\frac{1}{g(y)}dy=\int f(x)\,dx, using separation of variables.

For dydx=2xy\frac{dy}{dx}=2xy: ∫1y dy=∫2x dx\int\frac1y\,dy=\int2x\,dx, so ln⁡y=x2+c\ln y=x^2+c and y=Aex2y=Ae^{x^2} with A=ecA=e^c.

  1. 1

    Separate

    y terms with dy, x terms with dx.

  2. 2

    Integrate

    Integrate both sides, with one +c.

  3. 3

    Rearrange

    Take exponentials: ln y = x² + c gives y = Ae^(x²).

  4. 4

    Use a condition

    Substitute given values to find the constant.

Solving by separation of variables

Worked example

Solve dydx=yx\frac{dy}{dx}=\frac yx for x>0x>0, y>0y>0.

How do you separate dydx=xy2\frac{dy}{dx}=xy^2?

General and particular solutions

The general solution has an arbitrary constant; a given condition turns it into a particular solution.

The general solution is a whole family of curves. A particular solution uses a condition such as y=3y=3 when x=0x=0 to fix the constant.

For dmdt=−0.05m\frac{dm}{dt}=-0.05m with m=80m=80 at t=0t=0: m=Ae−0.05tm=Ae^{-0.05t} with A=80A=80. Whenever the rate is proportional to the quantity, dmdt=km\frac{dm}{dt}=km gives m=Aektm=Ae^{kt}.

10203040506020406080100120xy(0, 80)m = Ae^(−0.05t)
The general solution m = Ae^(−0.05t) is a family of curves (drag A). The condition m = 80 at t = 0 picks the particular solution A = 80.

General solution

  • Contains AA
  • A whole family of curves

Particular solution

  • AA is found
  • One curve, through the given point

Worked example

Solve dydx=3y\frac{dy}{dx}=3y given y=2y=2 when x=0x=0.

The rate of growth of a population NN is proportional to NN, so dNdt=kN\frac{dN}{dt}=kN. What is the general solution?

Common factors

Factorise the right-hand side first so it becomes a product f(x)g(y)f(x)g(y).

Look for a common factor whenever the right-hand side is a sum or difference of terms.

dydx=xy+x=x(y+1)\frac{dy}{dx}=xy+x=x(y+1) gives ∫1y+1dy=∫x dx\int\frac{1}{y+1}dy=\int x\,dx, so ln⁡∣y+1∣=x22+c\ln|y+1|=\frac{x^2}{2}+c and y=Aex2/2−1y=Ae^{x^2/2}-1.

−2−1.5−1−0.50.511.525101520xyy = −1y = Ae^(x²/2) − 1
After factorising dy/dx = x(y + 1), the solution y = Ae^(x²/2) − 1 is a family of curves (drag A) that all level off to y = −1 on the left.
  • dydx=xy+x\dfrac{dy}{dx}=xy+xx(y+1)x(y+1)

Which factorisation lets you separate dydx=x2y+y\frac{dy}{dx}=x^2y+y?

Families of solution curves

Varying the constant gives a family of curves that never cross.

For y=Aex2y=Ae^{x^2}:

  • A>0A>0: above the xx-axis, through (0,A)(0,A), symmetric about the yy-axis;
  • A<0A<0: the reflections in the xx-axis;
  • A=0A=0: the xx-axis itself;
  • curves never cross, since each point fixes a single AA.
−1.5−1−0.50.511.5−4−3−2−11234xyy = A eˣ²
Family y = Ae^(x²): drag the slider to change A.

The curve y=Aex2y=Ae^{x^2} passes through (0,5)(0,5). What is AA?

Modelling and limitations

Interpret the constants, and state where the solution is valid.

With dvdt=−0.4v2\frac{dv}{dt}=-0.4v^2 and v=5v=5 at t=0t=0: 1v=0.4t+15\frac1v=0.4t+\frac15, so v=52t+1v=\frac{5}{2t+1}. Distance 52ln⁡(2t+1)\frac52\ln(2t+1) is unbounded, so the particle never stops.

For water draining, dhdt=−0.1h\frac{dh}{dt}=-0.1\sqrt h with h=4h=4 at t=0t=0 gives h=(2−0.05t)2h=(2-0.05t)^2, valid only until t=40t=40. Always state the domain of validity.

5101520253035401234xy(0, 4)(40, 0)h = (2 − 0.05t)²
Depth h = (2 − 0.05t)²: valid only until t = 40, when h = 0.

For h=(2−0.05t)2h=(2-0.05t)^2, when is the tank empty?

Try an exam question

Given dydx=x(y+1)\frac{dy}{dx}=x(y+1) and y=2y=2 when x=0x=0, find yy in terms of xx.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which line correctly separates the variables?

1 mark, marked against the mark scheme

Revision notes