Separable differential equations

A level Maths (Edexcel) · Edexcel 9MA0 · P8.7 · Pure mathematics › Integration

3 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 10 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

A first order differential equation of the form \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{f}(x)\mathrm{g}(y)\) is solved by separating the variables: \(\int \dfrac{1}{\mathrm{g}(y)}\,\mathrm{d}y = \int \mathrm{f}(x)\,\mathrm{d}x\). The general solution contains a constant; a particular solution uses a given condition to find it. Questions are 4 to 8 marks and often need partial fractions, substitution or parts along the way.

Key facts

  • \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{f}(x)\mathrm{g}(y) \Rightarrow \int \dfrac{1}{\mathrm{g}(y)}\,\mathrm{d}y = \int \mathrm{f}(x)\,\mathrm{d}x\)
  • \(\int \dfrac{1}{y}\,\mathrm{d}y = \ln|y|\)
  • \(\ln|y| = \mathrm{f}(x) + c \Rightarrow y = A\mathrm{e}^{\mathrm{f}(x)}\)
  • \(\mathrm{e}^{a + b} = \mathrm{e}^a\mathrm{e}^b\)
  • General solution: includes the constant. Particular solution: constant found from a condition
  • \(\ln a + \ln b = \ln ab\), \(k\ln a = \ln a^k\)

Notes

Separating the variables

  • A differential equation is separable if the right-hand side is a function of \(x\) times a function of \(y\): \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = \mathrm{f}(x)\mathrm{g}(y)\). You may need to factorise to see this.
  • Rearrange to \(\dfrac{1}{\mathrm{g}(y)}\,\mathrm{d}y = \mathrm{f}(x)\,\mathrm{d}x\), then integrate both sides: \(\int \dfrac{1}{\mathrm{g}(y)}\,\mathrm{d}y = \int \mathrm{f}(x)\,\mathrm{d}x\)
  • Divide by the \(y\) function: \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = y^2\cos x\) becomes \(\int y^{-2}\,\mathrm{d}y = \int \cos x\,\mathrm{d}x\)

The constant

  • One constant is enough: \(c\) on the \(x\) side covers the constants from both integrals.
  • From \(\ln|y| = \mathrm{f}(x) + c\) you get \(y = \pm\mathrm{e}^{c}\mathrm{e}^{\mathrm{f}(x)} = A\mathrm{e}^{\mathrm{f}(x)}\), where \(A\) is a constant. Note that \(\mathrm{e}^{\mathrm{f}(x) + c}\) is not \(\mathrm{e}^{\mathrm{f}(x)} + c\)
  • When every term is a log, writing the constant as \(\ln k\) lets you combine everything into one log.

Particular solutions

diagram
  • The general solution contains the constant. A particular solution uses a condition (e.g. \(y = 4\) when \(x = 1\)) to find it.
  • xyO(1, 4)general solution: y = A(x + 1)³particular solution: A = ½
    For \((x + 1)\dfrac{\mathrm{d}y}{\mathrm{d}x} = 3y\): the general solution is a family of curves; the condition \(y = 4\) when \(x = 1\) picks out one.
  • Substitute the condition straight after integrating, before rearranging: the algebra is easier.
  • Then rearrange into the form the question asks for, e.g. \(y = \ldots\)
  • Check by differentiating your answer and substituting it into the original equation.

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

Find the general solution

4 marksGrade C
  1. Separate the variables and put an integral sign on each side.
  2. Integrate both sides and add one constant.
  3. Rearrange to the form asked for, taking care with exponentials.

Example. Find the general solution of the differential equation \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = 6x^2y\), \(y \gt 0\), giving your answer in the form \(y = \mathrm{f}(x)\)

Show the model answerHide the model answer
\(\int \dfrac{1}{y}\,\mathrm{d}y = \int 6x^2\,\mathrm{d}x\)
M1
\(\ln y = 2x^3 + c\)
A1
\(y = \mathrm{e}^{2x^3 + c} = \mathrm{e}^c\mathrm{e}^{2x^3}\)
M1
\(y = A\mathrm{e}^{2x^3}\)
A1

Find a particular solution

5 marksGrade B
  1. Separate the variables and integrate.
  2. Substitute the condition to find the constant, writing it as a log if the other terms are logs.
  3. Combine the logs and remove them to give \(y\) in terms of \(x\)

Example. Given that \(y = 4\) when \(x = 1\), solve the differential equation \((x + 1)\dfrac{\mathrm{d}y}{\mathrm{d}x} = 3y\), \(x \gt -1\), \(y \gt 0\), giving \(y\) in terms of \(x\)

Show the model answerHide the model answer
\(\int \dfrac{1}{y}\,\mathrm{d}y = \int \dfrac{3}{x + 1}\,\mathrm{d}x\)
M1
\(\ln y = 3\ln(x + 1) + c\)
A1
\(x = 1\), \(y = 4\): \(\ln 4 = 3\ln 2 + c\), so \(c = \ln 4 - \ln 8 = \ln\dfrac{1}{2}\)
M1
\(\ln y = \ln\dfrac{(x + 1)^3}{2}\)
M1
\(y = \dfrac{1}{2}(x + 1)^3\)
A1

Factorise, then separate

5 marksGrade A
  1. Take out the common factor to write the right-hand side as \(\mathrm{f}(x)\mathrm{g}(y)\)
  2. Separate, integrate and use the condition to find the constant.
  3. Rearrange carefully: take the reciprocal of the whole side, not of each term.

Example. Solve \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = xy^2 + y^2\), given that \(y = 1\) when \(x = 0\). Give \(y\) in terms of \(x\)

Show the model answerHide the model answer
\(\dfrac{\mathrm{d}y}{\mathrm{d}x} = y^2(x + 1)\)
M1
\(\int y^{-2}\,\mathrm{d}y = \int (x + 1)\,\mathrm{d}x \Rightarrow -\dfrac{1}{y} = \dfrac{1}{2}x^2 + x + c\)
M1 A1
\(x = 0\), \(y = 1\): \(c = -1\)
M1
\(\dfrac{1}{y} = 1 - x - \dfrac{1}{2}x^2\), so \(y = \dfrac{2}{2 - 2x - x^2}\)
A1

Separate using partial fractions

6 marksGrade A*
  1. Separate the variables; the \(y\)-side is a fraction with a factorising denominator.
  2. Split it into partial fractions and integrate both sides.
  3. Use the condition, combine the logs, then make \(y\) the subject.

Example. Given that \(y = 3\) when \(x = 1\), solve \(x\dfrac{\mathrm{d}y}{\mathrm{d}x} = y^2 - 1\), for \(0 \lt x \lt \sqrt{2}\), \(y \gt 1\). Give \(y\) in terms of \(x\)

Show the model answerHide the model answer
\(\int \dfrac{1}{(y - 1)(y + 1)}\,\mathrm{d}y = \int \dfrac{1}{x}\,\mathrm{d}x\)
M1
\[\begin{aligned}[b]&\frac{1}{(y - 1)(y + 1)} \\ &= \frac{1}{2(y - 1)} - \frac{1}{2(y + 1)}\end{aligned}\]
M1
\(\dfrac{1}{2}\ln(y - 1) - \dfrac{1}{2}\ln(y + 1) = \ln x + c\)
A1
\(x = 1\), \(y = 3\): \(c = \dfrac{1}{2}\ln\dfrac{2}{4}\), so \(\ln\dfrac{y - 1}{y + 1} = 2\ln x + \ln\dfrac{1}{2}\)
M1
\(\dfrac{y - 1}{y + 1} = \dfrac{x^2}{2} \Rightarrow 2y - 2 = x^2y + x^2\)
M1
\(y = \dfrac{x^2 + 2}{2 - x^2}\)
A1

Don’t lose marks

  • Integrating with a \(y\) still on the \(x\) side (or an \(x\) on the \(y\) side).
  • Writing \(y = \mathrm{e}^{2x^3} + c\) from \(\ln y = 2x^3 + c\)
  • Taking reciprocals term by term: \(\dfrac{1}{y} = 1 - x - \dfrac{1}{2}x^2\) does not give \(y = 1 - \dfrac{1}{x} - \dfrac{2}{x^2}\)
  • Leaving out the constant, or trying to find it before integrating.
  • Forgetting the \(\dfrac{1}{2}\) factors from the partial fractions on the \(y\) side.

More tips

Memory tricks

  • '\(y\)s with \(\mathrm{d}y\), \(x\)s with \(\mathrm{d}x\)' before you integrate anything.
  • Put the condition in as soon as you have integrated: finding \(c\) from the log form is easier than from a rearranged formula.
  • Write \(c\) as \(\ln k\) when all the other terms are logs.
  • Check: differentiate your solution and substitute it back into the differential equation.

Exam technique

  • 'General solution' means leave the constant in; 'particular solution' or a given condition means find it.
  • Give the answer in the form asked: '\(y\) in terms of \(x\)' needs \(y = \ldots\), not an equation still containing logs.
  • Show the separated form with an integral sign on each side: it is usually the first method mark.
  • In a 'show that', write every step, including the log laws you use to remove the logs.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade C
    Separate the variables correctlyGet every \(y\) on the side with \(\mathrm{d}y\) and every \(x\) on the side with \(\mathrm{d}x\)
  2. Grade C
    Find a general solution with one constantIntegrate both sides and add a single constant, usually on the \(x\) side.
  3. Grade B
    Find a particular solution from a conditionSubstitute the given values of \(x\) and \(y\) to find the constant.
  4. Grade B
    Rearrange a logarithmic solution into y = …From \(\ln|y| = \mathrm{f}(x) + c\), write \(y = A\mathrm{e}^{\mathrm{f}(x)}\), where \(A\) is a constant.
  5. Grade A
    Factorise before separatingFor example \(\dfrac{\mathrm{d}y}{\mathrm{d}x} = xy^2 + y^2 = y^2(x + 1)\): take out the common factor first.
  6. Grade A*
    Separate when integrals need further methodsThe \(y\)-side may need partial fractions, e.g. \(\int \dfrac{1}{y^2 - 1}\,\mathrm{d}y\), and the \(x\)-side may need parts or substitution.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy4 marks
Find the general solution of the differential equation
\[\frac{\mathrm{d}y}{\mathrm{d}x} = -4xy\]
giving your answer in the form \(y = f(x)\).
[4]
Show the answer and mark scheme
Answer: \(y = A\mathrm{e}^{-2x^{2}}\)
  • B1 for separating the variables correctly, e.g. \(\int \frac{1}{y}\,\mathrm{d}y = \int -4x\,\mathrm{d}x\)
  • M1 for integrating both sides, with at least one side correct
  • A1 for \(\ln|y| = -2x^{2} + c\)
  • A1 for \(y = A\mathrm{e}^{-2x^{2}}\) oe

Worked solution: Separating the variables: \(\int \frac{1}{y}\,\mathrm{d}y = \int -4x\,\mathrm{d}x\).
So \(\ln|y| = -2x^{2} + c\), and hence \(y = A\mathrm{e}^{-2x^{2}}\), where \(A\) is a constant.

Question 2Medium4 marks
A student is asked to solve the differential equation \(\frac{\mathrm{d}y}{\mathrm{d}x} = 2xy\), given that \(y = 3\) when \(x = 0\). The student’s working is shown below.
\(\int \frac{1}{y}\,\mathrm{d}y = \int 2x\,\mathrm{d}x\)
\(\ln y = x^{2} + c\)
\(y = \mathrm{e}^{x^{2}} + c\)
\(x = 0, y = 3\): \(3 = 1 + c\), so \(c = 2\)
\(y = \mathrm{e}^{x^{2}} + 2\)
(a) Identify the error in the student’s working.
[1]
(b) Find the correct particular solution.
[2]
(c) Show that the student’s answer does not satisfy the differential equation.
[1]
Show the answer and mark scheme
(a) Answer: \(\mathrm{e}^{x^{2} + c}\) was wrongly written as \(\mathrm{e}^{x^{2}} + c\); it equals \(A\mathrm{e}^{x^{2}}\).
  • B1 for explaining that \(\mathrm{e}^{x^{2} + c} = \mathrm{e}^{c}\mathrm{e}^{x^{2}}\), not \(\mathrm{e}^{x^{2}} + c\) (the constant multiplies, it is not added)

Worked solution: From \(\ln y = x^{2} + c\), \(y = \mathrm{e}^{x^{2} + c} = \mathrm{e}^{c} \times \mathrm{e}^{x^{2}} = A\mathrm{e}^{x^{2}}\).

(b) Answer: \(y = 3\mathrm{e}^{x^{2}}\)
  • M1 for \(y = A\mathrm{e}^{x^{2}}\) and using \(x = 0\), \(y = 3\)
  • A1 for \(y = 3\mathrm{e}^{x^{2}}\)

Worked solution: \(y = A\mathrm{e}^{x^{2}}\); at \(x = 0\), \(3 = A\), so \(y = 3\mathrm{e}^{x^{2}}\).

(c) Answer: For \(y = \mathrm{e}^{x^{2}} + 2\), \(\frac{\mathrm{d}y}{\mathrm{d}x} = 2x\mathrm{e}^{x^{2}} \ne 2x(\mathrm{e}^{x^{2}} + 2)\) when \(x \ne 0\).
  • B1 for a correct demonstration, e.g. \(\frac{\mathrm{d}y}{\mathrm{d}x} = 2x\mathrm{e}^{x^{2}}\) but \(2xy = 2x\mathrm{e}^{x^{2}} + 4x\), which differ for \(x \ne 0\)

Worked solution: If \(y = \mathrm{e}^{x^{2}} + 2\) then \(\frac{\mathrm{d}y}{\mathrm{d}x} = 2x\mathrm{e}^{x^{2}}\), while \(2xy = 2x\mathrm{e}^{x^{2}} + 4x\). These differ by \(4x\), so the equation is not satisfied (except at \(x = 0\)).

Question 3Hard8 marks
(a) Given that \(y = \frac{1}{2}\) when \(x = 0\), solve the differential equation
\[\frac{\mathrm{d}y}{\mathrm{d}x} = y^{2}\cos x\]
giving your answer in the form \(y = f(x)\).
[6]
(b) Find the greatest value of \(y\), justifying your answer.
[2]
Show the answer and mark scheme
(a) Answer: \(y = \frac{1}{2 - \sin x}\)
  • B1 for separating the variables correctly, e.g. \(\int \frac{1}{y^{2}}\,\mathrm{d}y = \int \cos x\,\mathrm{d}x\)
  • M1 for integrating both sides, with at least one side correct
  • A1 for \(-\frac{1}{y} = \sin x + c\)
  • M1 for using the condition \(y = \frac{1}{2}\) when \(x = 0\) to find the constant
  • A1 for a correct constant
  • A1 for \(y = \frac{1}{2 - \sin x}\) oe

Worked solution: Separating the variables: \(\int \frac{1}{y^{2}}\,\mathrm{d}y = \int \cos x\,\mathrm{d}x\), so \(-\frac{1}{y} = \sin x + c\).
When \(x = 0\), \(y = \frac{1}{2}\): \(-2 = 0 + c\), so \(c = -2\).
So \(y = \frac{1}{2 - \sin x}\).

(b) Answer: \(1\)
  • M1 for recognising that \(y\) is greatest when \(\sin x\) is greatest, i.e. \(\sin x = 1\)
  • A1 for \(1\)

Worked solution: The denominator \(2 - \sin x\) is positive and least when \(\sin x = 1\), so the greatest value of \(y\) is \(\frac{1}{2 - 1} = 1\).

More in Integration

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.