top of page

11.10 Solving Differential Equations

A-level Maths Year 2 · Edexcel 9MA0 · Chapter 11: Integration

A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: separating the variables to find general and particular solutions of first order differential equations. 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 first order differential equation with separable variables
  • Separate the variables and integrate both sides
  • Find a general solution, including one written with an arbitrary constant A
  • Use a boundary condition to find a particular solution
  • Check a solution by differentiating

Key words

  • Differential equation: An equation containing a derivative, such as dy/dx = 6x²y.
  • Separable: It can be written as dy/dx = f(x)g(y): a function of x times a function of y.
  • General solution: The family of all solutions, with an arbitrary constant.
  • Particular solution: The one solution that also satisfies a given condition, such as y = 2 when x = 0.
  • Boundary condition: The extra piece of information used to find the constant.

Separating the variables

If dy/dx = f(x)g(y), collect everything with y on one side and everything with x on the other, then integrate both sides. You only need one constant of integration.

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

Worked example: a general solution

Find the general solution of dy/dx = 6x²y, for y > 0.
Separate: ∫ 1/y dy = ∫ 6x² dx, so ln y = 2x³ + c
y = e^(2x³ + c) = eᶜ × e^(2x³). Write A = eᶜ.

Answer: y = Ae^(2x³)

Writing the constant as ln A is often neater: ln y = 2x³ + ln A gives y = Ae^(2x³) straight away.

Families of solution curves

Each value of the constant gives a different curve. The general solution is a family of curves; a boundary condition picks out one of them.

Worked example: a family of circles

Solve dy/dx = −x/y, and find the curve through (1, 2).
∫ y dy = ∫ −x dx, so y²/2 = −x²/2 + c, so x² + y² = k
Through (1, 2): k = 1 + 4 = 5

Answer: x² + y² = 5, a circle with centre O and radius √5

Particular solutions

Substitute the boundary condition as soon as you have integrated, while the equation is still simple. Then rearrange to make y the subject if you can.

Worked example: with a trigonometric function

Solve dy/dx = y cos x, given that y = 2 when x = 0.
∫ 1/y dy = ∫ cos x dx, so ln y = sin x + c
x = 0, y = 2: ln 2 = 0 + c, so ln y = sin x + ln 2, and ln y/2 = sin x

Answer: y = 2e^(sin x)

Worked example: with a trigonometric function of y

Solve dy/dx = cos ² y, given that y = π/4 when x = 0.
∫ sec ² y dy = ∫ 1 dx, so tan y = x + c
tan π/4 = 1 = 0 + c, so c = 1

Answer: tan y = x + 1, or y = arctan (x + 1)

Checking a solution

You can always check by differentiating your answer and substituting into the differential equation.

Worked example: verifying

Check that y = 2e^(sin x) satisfies dy/dx = y cos x.
By the chain rule, dy/dx = 2e^(sin x) × cos x = y cos x. And at x = 0, y = 2e⁰ = 2.

Answer: it satisfies both the equation and the condition

Common mistakes

  • Not separating fully: an x left on the y side (or y on the x side) means you cannot integrate.
  • Adding a constant on both sides. One constant, on the x side, is enough.
  • Writing y = e^(2x³) + c from ln y = 2x³ + c. The constant becomes a factor: y = Ae^(2x³).
  • Finding c after rearranging badly. Substitute the condition straight after integrating.
  • Forgetting the modulus in ln |y| when y could be negative.

Revision questions

Try these, then check your answers below each one.

Question 1. Which shows the variables in dy/dx = x²y correctly separated? (Choose from: ∫ 1/y dy = ∫ x² dx; ∫ y dy = ∫ x² dx; ∫ x²y dy = ∫ dx; ∫ 1/x² dy = ∫ y dx.)

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

Working: Divide by y: ∫ 1/y dy = ∫ x² dx.

Question 2. What is the general solution of dy/dx = 3y? (Choose from: y = Ae³ˣ; y = e³ˣ + c; y = 3eˣ + c; y = Ae^(x/3).)

Answer: y = Ae³ˣ

Working: y = e³ˣ + c) = Ae³ˣ.

Question 3. Is y = 4e^(−x²) a solution of dy/dx = −2xy?

Answer: Yes

Working: Yes: dy/dx = 4e^(−x²) × (−2x) = −2xy.

Related lessons

Continue in the full course

This lesson is section 11.10 of our free 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. Go to the full A-level Maths Year 2 course.

 

 

 

 

 

 

 

bottom of page