top of page

13.2 Separable Differential Equations

AQA A-level Maths Year 2 · 7357 · Chapter 13: Differential Equations

What is in the full lesson (8 activities)

Every item below opens free in the course.

A free AQA A-level Maths Year 2 lesson for AQA A-level Mathematics (7357) from OBA School: separating the variables to solve first order differential equations (AQA 7357: H7). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Recognise a separable equation dy/dx = f(x)g(y)
  • Separate the variables and integrate both sides, with one constant
  • Use the laws of logarithms to write a general solution such as y = Aeᵏˣ
  • Find a particular solution from a boundary condition and write y explicitly where possible
  • Use partial fractions, substitution or integration by parts inside a separable equation

Key words

  • Separable: An equation that can be written as dy/dx = f(x)g(y): a function of x times a function of y.
  • Separating the variables: Rearranging so all the y terms are with dy and all the x terms with dx.
  • Arbitrary constant: The single constant from integrating; it can be renamed, for example A = eᶜ.
  • Explicit solution: The solution written as y = ..., rather than an equation linking x and y.

Separating the variables

If dy/dx = f(x)g(y), divide by g(y) and integrate both sides with respect to x. The left-hand side becomes an integral in y. You only need one constant, on the x side.

Key fact: dy/dx = f(x)g(y) ⇒ ∫ 1/(g(y)) dy = ∫ f(x) dx

Worked example: a first separable equation

Find the general solution of dy/dx = 2xy, for y > 0.
∫ 1/y dy = ∫ 2x dx, so ln y = x² + c
y = exp(x² + c) = eᶜ exp(x²). Write A = eᶜ.

Answer: y = A exp(x²)

Worked example: powers of y

Find the particular solution of dy/dx = x/y with y = 3 when x = 0.
∫ y dy = ∫ x dx, so y²/2 = x²/2 + c. At (0, 3): c = 9/2, so y² = x² + 9
y = 3 is positive at the boundary point, so take the positive root.

Answer: y = √(x² + 9)

Exponential solutions and the constant

Equations like dy/dx = ky give ln |y| = kx + c. Taking exponentials, |y| = eᶜ eᵏˣ, so y = Aeᵏˣ where A can be any constant (positive or negative). In a model A is the starting value.

Worked example: using the boundary condition early

Solve dy/dx = 3y given that y = 2 when x = 0.
ln |y| = 3x + c, so y = Ae³ˣ. x = 0: A = 2.

Answer: y = 2e³ˣ

Worked example: a constant term

Solve dy/dx = y + 1 with y = 2 when x = 0.
∫ 1/(y + 1) dy = ∫ 1 dx, so ln |y + 1| = x + c and y + 1 = Aeˣ. x = 0: 3 = A.

Answer: y = 3eˣ − 1

Using the boundary condition and the laws of logarithms

When both sides give logarithms, write the constant as ln k. Then the laws of logarithms combine everything into one logarithm, and you can remove the logs.

Worked example: logarithms on both sides

Solve x(dy/dx) = 2y, x > 0, y > 0, given that y = 12 when x = 2.
∫ 1/y dy = ∫ 2/x dx, so ln y = 2 ln x + ln k = ln (kx²)
y = kx²; x = 2: 12 = 4k, k = 3

Answer: y = 3x²

Worked example: an exponential in both variables

Solve dy/dx = exp(x − y) given that y = 0 when x = 0.
exp(x − y) = eˣ e⁻ʸ, so ∫ eʸ dy = ∫ eˣ dx and eʸ = eˣ + c. At (0, 0): 1 = 1 + c, c = 0.

Answer: eʸ = eˣ, so y = x

Harder integrals inside a separable equation

After separating, either side may need a technique from integration: partial fractions, a substitution, or integration by parts. Do each side carefully, then combine the constants.

Worked example: partial fractions

Find the general solution of (x + 1)(x + 2)(dy/dx) = y for x > −1, y > 0.
∫ 1/y dy = ∫ 1/((x + 1)(x + 2)) dx = ∫ (1/(x + 1) − 1/(x + 2))dx
ln y = ln (x + 1) − ln (x + 2) + ln A = ln (A(x + 1))/(x + 2)

Answer: y = (A(x + 1))/(x + 2)

Worked example: integration by parts

Solve dy/dx = (x cos x)/y given y = 2 when x = 0.
∫ y dy = ∫ x cos x dx, so y²/2 = x sin x + cos x + c. At (0, 2): 2 = 1 + c, c = 1.

Answer: y² = 2x sin x + 2 cos x + 2

Common mistakes

  • Putting the y terms on the wrong side: from dy/dx = y + 1 you integrate 1/(y + 1), not y + 1.
  • Adding a constant on both sides and then not combining them.
  • Writing exp(x² + c) = exp(x²) + eᶜ. It is eᶜ × exp(x²).
  • Forgetting the modulus in ln|y|, or taking the wrong square root when making y the subject.
  • Finding c from the boundary condition before integrating fully.

Revision questions

Try these, then check your answers below each one.

Question 1. Separating the variables in dy/dx = x²y gives (Choose from: ∫ 1/y dy = ∫ x² dx; ∫ 1/x² dy = ∫ y dx; ∫ y dy = ∫ x² dx; ∫ x²y dy = ∫ 1 dx.)

Answer: ∫ 1/y dy = ∫ x² dx

Working: 1/ydy/dx = x², so ∫ 1/y dy = ∫ x² dx.

Question 2. Solve dy/dx = 2y given that y = 3 when x = 0. Find y when x = 1, to 2 decimal places.

Answer: 22.17

Working: ln |y| = 2x + c, y = Ae²ˣ, A = 3. At x = 1: y = 3e² = 22.17.

Question 3. exp(x² + c) = exp(x²) + eᶜ.

Answer: False

Working: False. eˣ² + c) = eˣ²) × eᶜ = Aeˣ²).

Related lessons

Continue in the full course

This lesson is section 13.2 of our free AQA A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.

Continue lesson 13.2 in the free course →

 

 

 

 

 

 

 

bottom of page