Separable differential equations

Separable differential equations

Spec H7–H8 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • An equation is separable if dydx=f(x) g(y)\frac{dy}{dx}=f(x)\,g(y).
  • Separate the variables and integrate each side: ∫1g(y)dy=∫f(x) dx\int\frac1{g(y)}dy=\int f(x)\,dx.
  • Include one constant, and put it in before you exponentiate: y=Ae…y=Ae^{\dots}.
  • A particular solution uses a given condition to find the constant.
  • Interpret the answer in context and comment on limitations.

Separating and solving

If dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y), collect the yy terms on one side and the xx terms on the other, then integrate.

A first-order differential equation is separable if it can be written dydx=f(x) g(y)\frac{dy}{dx}=f(x)\,g(y). Divide by g(y)g(y), treat dydy and dxdx as separate, and integrate each side, a process called separating the variables.

Always include one constant of integration, on either side. Check separability by asking whether the right-hand side is a product of a function of xx and a function of yy.

−2−1.5−1−0.50.511.52246810xyA = 0.5A = 1A = 2
Solutions of dy/dx = 2xy: ln y = x² + c gives y = Ae^(x²). Each value of A is one curve; a starting condition picks A.
  • dydx=f(x) g(y)\frac{dy}{dx}=f(x)\,g(y)∫1g(y)dy=∫f(x) dx\int\frac{1}{g(y)}dy=\int f(x)\,dx

Worked example

Solve dydx=2xy\frac{dy}{dx}=2xy with y>0y>0.

Which equation is separable?

General and particular solutions

Keep the constant until you exponentiate, then use the condition to fix it.

The solution with an arbitrary constant is the general solution; substituting a condition (such as y=3y=3 when x=0x=0) fixes the constant and gives the particular solution.

From ln⁡y=x2+c\ln y=x^2+c: y=ex2+c=Aex2y=e^{x^2+c}=Ae^{x^2}, where A=ecA=e^c. Write the constant before you exponentiate. If y=3y=3 when x=0x=0 then A=3A=3, so y=3ex2y=3e^{x^2}. If the context says y>0y>0 you may drop the modulus in ln⁡∣y∣\ln|y|.

−1.5−1−0.50.511.524681012xyy = a e^(x²)
Family y = a e^(x²): change a; a = 3 is the solution through (0, 3).

Solving gives ln⁡y=2x+c\ln y=2x+c. What is yy?

Factorise first

Take out a common factor so that the right-hand side becomes f(x)g(y)f(x)g(y).

Sometimes the right-hand side must be factorised first. For dydx=6x+3xy\frac{dy}{dx}=6x+3xy, take out the common factor: dydx=3x(2+y)\frac{dy}{dx}=3x(2+y), then separate.

−1.5−1−0.50.511.5−2246810121416xy(0, 1)(0.961, 10)y = 3e^(1.5x²) − 2
y=3e1.5x2−2y=3e^{1.5x^2}-2 passes through (0,1)(0,1) and reaches y=10y=10 at x≈0.961x\approx0.961.

Worked example

Solve dydx=6x+3xy\frac{dy}{dx}=6x+3xy given y=1y=1 when x=0x=0, then find xx when y=10y=10.

Factorise the right-hand side of dydx=4x+2xy\frac{dy}{dx}=4x+2xy.

Models in context

Growth, decay, cooling and motion with resistance all give separable equations.

Rates of change such as dPdt=kP\frac{dP}{dt}=kP (growth or decay) and Newton's law of cooling dθdt=−k(θ−θ0)\frac{d\theta}{dt}=-k(\theta-\theta_0) both separate.

In kinematics, a=dvdta=\frac{dv}{dt} and v=dsdtv=\frac{ds}{dt}, so a resistive force proportional to velocity gives dvdt=−kv\frac{dv}{dt}=-kv and v=v0e−ktv=v_0e^{-kt}. Say which derivative you are using. A model is a simplified description built on assumptions.

5101520253020406080100xyθ = 20(0, 90)(5, 60)θ = 20 + 70e^(−0.112t)
Cooling: θ=20+70e−0.112t\theta=20+70e^{-0.112t} starts at 9090 and levels off towards 2020.

Worked example

A liquid cools according to dθdt=−k(θ−20)\frac{d\theta}{dt}=-k(\theta-20) with θ=90\theta=90 at t=0t=0. Given θ=60\theta=60 when t=5t=5, find kk.

Solve dPdt=kP\frac{dP}{dt}=kP given P=P0P=P_0 when t=0t=0.

Interpreting the solution

State what the constants mean, what happens as t→∞t\to\infty, and where the model stops being realistic.

After solving, interpret your answer in context: say what the constants mean (for example AA is the initial velocity) and what happens as t→∞t\to\infty. For v=8e−0.5tv=8e^{-0.5t}, v>0v>0 for all tt and v→0v\to0, so the model never lets the particle stop.

State limitations: the model may ignore other forces (such as constant friction), assume a constant room temperature, or only be valid over a restricted domain (a population cannot grow exponentially for ever). Reject values outside the domain.

246810122468xy(0, 8)v = 8e^(−0.5t)
v=8e−0.5tv=8e^{-0.5t} starts at 88 and decays towards 00 without ever reaching it.

Give one limitation of the model v=8e−0.5tv=8e^{-0.5t} for a moving particle.

Try an exam question

Given that dydx=3x2y\frac{dy}{dx}=3x^2y 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 equation is obtained by separating the variables?

1 mark, marked against the mark scheme

Revision notes