A-level Maths

Differential Equations by Separation of Variables

Solving first-order differential equations with separable variables, including finding particular solutions.

A-level Maths · Integration · A-level only

What it covers

Try these

Three of the 10 practice questions on this topic in the app, from easier to harder. Answer each one and check it, or show its answer and worked solution.

Question 1

These five lines solvedydx=3x2y\dfrac{dy}{dx} = 3x^{2}ygiven that y=4\displaystyle y = 4 when x=0\displaystyle x = 0, but they are out of order.

Put them in the order they must be written.

  • Substitute x=0\displaystyle x = 0 and y=4\displaystyle y = 4: 4=Ae0\displaystyle 4 = Ae^{0}, so A=4\displaystyle A = 4.
  • Separate the variables: 1y dy=3x2 dx\displaystyle \dfrac{1}{y}\,dy = 3x^{2}\,dx.
  • State the particular solution y=4ex3\displaystyle y = 4e^{x^{3}}.
  • Integrate both sides: ln⁡∣y∣=x3+c\displaystyle \ln|y| = x^{3} + c.
  • Take exponentials: y=Aex3\displaystyle y = Ae^{x^{3}}, where A=ec\displaystyle A = e^{c}.
Worked solution

Step by step

  1. Separation has to come first: the two variables must be on their own sides.
  2. Integrating each side then produces ln⁡∣y∣=x3+c\displaystyle \ln|y| = x^{3} + c.
  3. Exponentiating converts that into y=Aex3\displaystyle y = Ae^{x^{3}}.
  4. Only now does the condition fix A\displaystyle A.
  5. The particular solution is stated last.

The right order:

  1. Separate the variables: 1y dy=3x2 dx\displaystyle \dfrac{1}{y}\,dy = 3x^{2}\,dx.
  2. Integrate both sides: ln⁡∣y∣=x3+c\displaystyle \ln|y| = x^{3} + c.
  3. Take exponentials: y=Aex3\displaystyle y = Ae^{x^{3}}, where A=ec\displaystyle A = e^{c}.
  4. Substitute x=0\displaystyle x = 0 and y=4\displaystyle y = 4: 4=Ae0\displaystyle 4 = Ae^{0}, so A=4\displaystyle A = 4.
  5. State the particular solution y=4ex3\displaystyle y = 4e^{x^{3}}.

Mark scheme 3 marks

WorkingMarks
Separation has to come first: the two variables must be on their own sides.
Integrating each side then produces ln⁡∣y∣=x3+c\displaystyle \ln|y| = x^{3} + c.
Exponentiating converts that into y=Aex3\displaystyle y = Ae^{x^{3}}.
Only now does the condition fix A\displaystyle A.
The particular solution is stated last.
B3 for putting the lines in order: separate, integrate, exponentials, substitute, state
B3
Total3
What does B mean?
  • B a mark on its own, for a right answer or reason.
  • B3 is worth 3 marks.

Question 2

Three curves of the form y=Aex2\displaystyle y = Ae^{x^{2}} are sketched together.

Which of the five functions listed satisfydydx=2xy\dfrac{dy}{dx} = 2xy?

Three traces of the same swooping shape stacked one inside another, each shallow across the centre and sweeping steeply upward at both ends.

Select all that apply

  1. y=x2\displaystyle y = x^{2}
  2. y=ex2\displaystyle y = e^{x^{2}}
  3. y=5ex2\displaystyle y = 5e^{x^{2}}
  4. y=0\displaystyle y = 0
  5. y=e2x\displaystyle y = e^{2x}
Worked solution

Step by step

  1. Any y=Aex2\displaystyle y = Ae^{x^{2}} has dydx=2Axex2\displaystyle \frac{dy}{dx} = 2Axe^{x^{2}}, which is 2xy\displaystyle 2xy whatever A\displaystyle A is.
  2. y=x2\displaystyle y = x^{2}: differentiating gives 2x\displaystyle 2x, but 2xy\displaystyle 2xy would be 2x3\displaystyle 2x^{3} ✗.
  3. y=ex2\displaystyle y = e^{x^{2}}: this is the case A=1\displaystyle A = 1 ✓.
  4. y=5ex2\displaystyle y = 5e^{x^{2}}: this is the case A=5\displaystyle A = 5 ✓.
  5. y=0\displaystyle y = 0: both sides come to 0\displaystyle 0 ✓.
  6. y=e2x\displaystyle y = e^{2x}: differentiating gives 2e2x\displaystyle 2e^{2x}, but 2xy\displaystyle 2xy would be 2xe2x\displaystyle 2xe^{2x} ✗.

The answers are B, C and D.

Mark scheme 3 marks

WorkingMarks
Any y=Aex2\displaystyle y = Ae^{x^{2}} has dydx=2Axex2\displaystyle \frac{dy}{dx} = 2Axe^{x^{2}}, which is 2xy\displaystyle 2xy whatever A\displaystyle A is.
y=x2\displaystyle y = x^{2}: differentiating gives 2x\displaystyle 2x, but 2xy\displaystyle 2xy would be 2x3\displaystyle 2x^{3} ✗.
y=ex2\displaystyle y = e^{x^{2}}: this is the case A=1\displaystyle A = 1 ✓.
y=5ex2\displaystyle y = 5e^{x^{2}}: this is the case A=5\displaystyle A = 5 ✓.
y=0\displaystyle y = 0: both sides come to 0\displaystyle 0 ✓.
y=e2x\displaystyle y = e^{2x}: differentiating gives 2e2x\displaystyle 2e^{2x}, but 2xy\displaystyle 2xy would be 2xe2x\displaystyle 2xe^{2x} ✗.
B3 for choosing y=ex2\displaystyle y = e^{x^{2}}, y=5ex2\displaystyle y = 5e^{x^{2}} and y=0\displaystyle y = 0, and nothing else
Leaving out y=0\displaystyle y = 0 does not get the marks: it is the case A=0\displaystyle A = 0.
B3
Total3
What does B mean?
  • B a mark on its own, for a right answer or reason.
  • B3 is worth 3 marks.

Question 3

A student solves dydx=y\displaystyle \dfrac{dy}{dx} = y subject to y=5\displaystyle y = 5 when x=0\displaystyle x = 0. They write ln⁡y=x\displaystyle \ln y = x, then y=ex\displaystyle y = e^{x}, and are then puzzled that their answer gives y=1\displaystyle y = 1 at x=0\displaystyle x = 0.

Why has the condition been lost?

  1. ∫1y dy\displaystyle \displaystyle\int \frac{1}{y}\,dy is 12y2\displaystyle \frac{1}{2}y^{2}, not ln⁡y\displaystyle \ln y.
  2. The constant of integration was left out. With it, ln⁡y=x+c\displaystyle \ln y = x + c, so y=Aex\displaystyle y = Ae^{x}, and the condition then fixes A=5\displaystyle A = 5.
  3. The condition should have been substituted in before integrating.
  4. dydx=y\displaystyle \dfrac{dy}{dx} = y has no solution passing through (0,5)\displaystyle (0, 5).
Worked solution

Step by step

  1. Integrating 1y dy=1 dx\displaystyle \frac{1}{y}\,dy = 1\,dx gives ln⁡y=x+c\displaystyle \ln y = x + c.
  2. Exponentiating: y=ecex=Aex\displaystyle y = e^{c}e^{x} = Ae^{x}.
  3. At x=0\displaystyle x = 0: 5=A\displaystyle 5 = A.
  4. So the particular solution is y=5ex\displaystyle y = 5e^{x}.
  5. Without the c\displaystyle c there is no A\displaystyle A for the condition to fix.

The answer is B.

Mark scheme 1 mark

WorkingMarks
Integrating 1y dy=1 dx\displaystyle \frac{1}{y}\,dy = 1\,dx gives ln⁡y=x+c\displaystyle \ln y = x + c.
Exponentiating: y=ecex=Aex\displaystyle y = e^{c}e^{x} = Ae^{x}.
At x=0\displaystyle x = 0: 5=A\displaystyle 5 = A.
So the particular solution is y=5ex\displaystyle y = 5e^{x}.
Without the c\displaystyle c there is no A\displaystyle A for the condition to fix.
B1 for saying the constant of integration was left out
B1
Answer The constant of integration was left out. With it, ln⁡y=x+c\displaystyle \ln y = x + c, so y=Aex\displaystyle y = Ae^{x}, and the condition then fixes A=5\displaystyle A = 5.1
What does B mean?
  • B a mark on its own, for a right answer or reason.

In the app

Start practising today

Free to start, with no ads and no account. Pay once for a course's exam papers, if you want them.

Get it on Google Play for Android phones & tablets
Get it on the App Store for iPhone & iPad