Worked example Differentiation
Differential equations worked example
In one sentence
6 worked examples on Differential equations, each solved step by step.
Last checked Source: Differential equations Source: Differential equations qualifications.pearson.com (opens in a new tab)
Differential equations for your study of A-level maths: where it comes from and what it covers.
Related pages include Gradient of exponential functions, Laws of logarithms, The functions e^x and ln x and Friction.
Points to check
- Forgetting the constant of integration before substituting the condition.
- Writing ln y = a x² (missing the 1/2).
Worked examples
Example 1
Problem
Solve dy/dx = 1/2y given that y = 4 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate the variables: (1/y) dy = k dx.
-
2 Integrate: ln|y| = 1/2x + c.
-
3 Exponentiate: y = Ae^(1/2x) with A = e^c.
-
4 Use y = 4 at x = 0: A = 4, so y = 4e^(1/2x).
Answer
y = 4e^(1/2x)
Example 2
Problem
Solve dy/dx = 2y given that y = 3 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate the variables: (1/y) dy = k dx.
Why: Put all y terms with dy and x terms with dx.
-
2 Integrate: ln|y| = 2x + c.
Why: Integrate both sides.
-
3 Exponentiate: y = Ae^(2x) with A = e^c.
Why: Absorb the constant.
-
4 Use y = 3 at x = 0: A = 3, so y = 3e^(2x).
Why: The initial condition fixes A.
Answer
y = 3e^(2x)
Example 3
Problem
Solve dy/dx = 4xy given that y = 2 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate: (1/y) dy = 4x dx.
-
2 Integrate: ln y = 2x² + c.
-
3 So y = Ae^(2x²); at x = 0, A = 2.
-
4 y = 2e^(2x²).
Answer
y = 2e^(2x²)
Example 4
Problem
Solve dy/dx = −y given that y = 10 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate the variables: (1/y) dy = k dx.
-
2 Integrate: ln|y| = −x + c.
-
3 Exponentiate: y = Ae^(−x) with A = e^c.
-
4 Use y = 10 at x = 0: A = 10, so y = 10e^(−x).
Answer
y = 10e^(−x)
Example 5
Problem
Solve dy/dx = 3y given that y = 5 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate the variables: (1/y) dy = k dx.
-
2 Integrate: ln|y| = 3x + c.
-
3 Exponentiate: y = Ae^(3x) with A = e^c.
-
4 Use y = 5 at x = 0: A = 5, so y = 5e^(3x).
Answer
y = 5e^(3x)
Example 6
Problem
Solve dy/dx = 2xy given that y = 1 when x = 0.
Solution, step by step
Try it yourself first, then open a step to see why it works.
-
1 Separate: (1/y) dy = 2x dx.
Why: The right side depends only on x.
-
2 Integrate: ln y = x² + c.
Why: Integrate x to x²/2.
-
3 So y = Ae^(x²); at x = 0, A = 1.
Why: Substitute the condition.
-
4 y = 1e^(x²).
Why: State the particular solution.
Answer
y = 1e^(x²)
Practise for free
Test yourself with exam-style questions and see why each answer is right or wrong.
More worked examples
-
Derivatives of functions worked example
6 worked examples on Derivatives of functions, each solved step by step.
-
Differentiate simple functions worked example
6 worked examples on Differentiate simple functions, each solved step by step.
-
Differentiation in context worked example
8 worked examples on Differentiation in context, each solved step by step.
-
Equation of a circle worked example
8 worked examples on Equation of a circle, each solved step by step.
-
Geometric sequences and series worked example
8 worked examples on Geometric sequences and series, each solved step by step.
-
Gradient of exponential functions worked example
8 worked examples on Gradient of exponential functions, each solved step by step.
-
Graphs of trigonometric functions worked example
8 worked examples on Graphs of trigonometric functions, each solved step by step.
-
Integrate standard functions worked example
7 worked examples on Integrate standard functions, each solved step by step.