Slope fields and Euler’s method
A differential equation gives the slope of the solution through every point. You can check a proposed solution by substituting it, draw the slopes as a field of short segments and read the shape of every solution at once, or step along them with Euler’s method and say whether the estimate runs high or low.
In this topic
- Taught
- Before the final, flavours A and B
- Questions
- 14
- Total marks
- 36
- Suggested time
- 65 min
- Difficulty
Introductory to Capstone
Show the 4 hardest
Key results
- Checking a solution
For every in the interval considered; one matching point is not enough.
- Linear differential equations
The coefficients may depend on but not on ; an equation that cannot be written this way is nonlinear.
- Euler’s method
For with ; then estimates .
- Concavity from the equation
When is differentiable.
- Euler’s method runs low or high
For and , when every solution through the region the steps cross is concave up (for the first) or concave down (for the second).
Read the theoryUBC Math 100 §11.1 Introducing a new kind of equationUBC Math 100 §11.2 Verifying that a function is a solutionUBC Math 100 §12.1 Linear and nonlinear differential equationsUBC Math 100 §12.2 Slope fieldsUBC Math 100 §12.3 Euler’s method
Worked example
Early in the season an insect population grows at a per-capita rate that falls as the season goes on. With in thousands of insects and in weeks,
Use Euler’s method with two steps of to estimate .
Strategy
Step along the tangent twice. Each step uses the slope at the point it starts from, which needs both the current time and the current population.
Working
First step, from t = 0.
Second step, from t = 1: both t and P have moved on.
For comparison: differentiating shows this formula solves the problem, and the two-step estimate is close to it.
Answer
The answer is about 224 thousand insects.
Check
Over two weeks the per-capita rate averages 0.4, so P grows by a factor of about e0.8 ≈ 2.23, to roughly 223 thousand, close to 224.
Where this goes wrong
Leaving t = 0 in the slope for the second step, which gives 256. By t = 1 the per-capita rate has fallen to 0.4, and the second step must use it.
On the paper
Lay the steps out as a table of , , the slope and the next , state the step size, and round only the final answer.
Leans on
Linear approximation, from Linear approximation
Your turn
A loaf of bread comes out of the oven at 95 °C into a kitchen at 25 °C. Its temperature , in °C after minutes, satisfies . Use one step of Euler’s method with to estimate the temperature after 2 minutes.
Practice questions
5 of the 14, across every level. Open a solution to read the working, or answer the question yourself and it counts towards your progress.
- Introductory1 mark · 2 min
In each equation is an unknown function of . Which one of these differential equations is nonlinear?
Answer this questionStrategy
Try to write each equation as α dy/dt + βy + γ = 0. The coefficients may depend on t but not on y; an equation that cannot be put in this form is nonlinear.
Working
Constant coefficients: linear.
A coefficient that depends on t is allowed: linear.
The et contains no y: linear.
The y² term is not a multiple of y by anything free of y, so this one is nonlinear.
Answer
The answer is dy by dt equals 6 minus 2 y squared.
Check
6 − 2y² is zero at y = √3 and at y = −√3 but not at y = 0, which no linear expression a + by can do.
Where this goes wrong
Calling an equation nonlinear because t appears squared or in an exponential. Linearity is about y alone: t may appear in any form, but y and dy/dt must appear only to the first power.
Leans on
What a differential equation is, from Exponential growth and decay
- Introductory2 marks · 3 min
A drug is given by a steady intravenous drip and cleared by the body at a rate proportional to the amount present, so the amount , in mg after hours, satisfies . For exactly one value of the constant , the function is a solution for every constant . Find .
Answer this questionStrategy
To check a proposed solution, substitute it into both sides of the equation and compare. The exponential terms match for any C; the constant terms match for one value of b only.
Working
The constant b differentiates to 0, and the chain rule brings down −0.4.
Substitute the whole of Q, constant term included.
The exponential terms cancel and leave a condition on b alone. At 20 mg, clearance of 0.4 × 20 = 8 mg/h exactly balances the drip.
Answer
The answer is b equals 20 milligrams.
Check
At Q = 20 mg the drip of 8 mg/h exactly balances clearance of 0.4 × 20 = 8 mg/h, so the amount holds steady there.
Where this goes wrong
Substituting only part of Q into the right-hand side, or losing the 8, so that the constant terms are never compared. Every term of the proposed solution goes into both sides.
Leans on
The derivative of ekt, from The chain rule and logarithms
Try a similar question
Check that solves for every positive constant . Then find the solution with , and give . - Standard3 marks · 5 min
A mass on a frictionless spring is centimetres from equilibrium after seconds, where
Find the positive for which is a solution, use the initial conditions to find and , and give at .
Answer this questionStrategy
Substitute the proposed form into the equation to find which ω works, then let the two initial conditions fix the two constants, one each.
Working
Each differentiation brings out a factor ω by the chain rule.
Take the positive root, as asked.
At t = 0, sin 0 = 0 and cos 0 = 1, so each condition fixes one constant.
Here 5t = π/4, where cos and sin both equal √2/2.
Answer
The answer is 10 root 2 centimetres, about 14.14.
Check
The velocity −50 sin(5t) + 50 cos(5t) is 0 at t = π/20, so the mass is at its furthest point, and √(10² + 10²) ≈ 14.14 is the amplitude.
Where this goes wrong
Setting B = 50 straight from x′(0) = 50. Differentiating sin(5t) brings out a 5, so x′(0) = 5B and B = 10.
Leans on
The chain rule with sine and cosine, from The chain rule and logarithms
- Challenging3 marks · 5 min
Exactly one of these straight lines is itself a solution curve of . Which one?
Answer this questionStrategy
Substitute each line into both sides of the equation. A curve is a solution only if its slope agrees with the field at every point along it.
Working
The two sides agree for every t.
The field is flat along this line but the line climbs, so solutions cross it.
These agree only at t = 0; one matching point is not enough.
They disagree everywhere.
Every other solution has this form (substitute to check), so all solutions approach the line y = 2t − 2.
Answer
The answer is y equals 2 t minus 2.
Check
A line y = mt + c needs m = (2 − m)t − c for every t, which forces m = 2 and c = −2.
Where this goes wrong
Choosing y = 2t, the line where the slopes are zero. Zero slopes there mean solutions are momentarily flat as they cross it; the line itself rises, so it cannot be a solution.
Leans on
The slope of a straight line, from Functions, graphs and inverses
- Capstone5 marks · 10 min
A ball is dropped from rest and falls with air resistance proportional to its speed. Its downward velocity , in m/s after seconds, satisfies
Check that solves the equation for every constant , and choose to match the initial condition. Then estimate with two Euler steps of . Give the Euler estimate minus the true value : positive if Euler overestimates, negative if it underestimates.
Answer this questionStrategy
Verify the family by substitution, let the initial condition choose C, take two Euler steps, and compare at t = 2. Concavity predicts the sign of the difference before any arithmetic.
Working
Both sides agree for every C.
The ball starts from rest and approaches 20 m/s.
Each step uses the slope at the point it starts from.
The true value from the formula.
Positive, as concavity predicts: v″ = −0.5v′ < 0 while the ball speeds up, so Euler’s tangent steps run above the curve.
Answer
The answer is 20 over e minus 5, about 2.36 metres per second: Euler overestimates.
Check
Ten Euler steps of 0.2 give about 13.03 m/s, closer to the true 12.64 m/s but still above it, so the error is positive and shrinks with the step.
Where this goes wrong
Reporting 5 − 20/e, the true value minus the estimate. The sign carries the conclusion: the solution is concave down, so Euler’s estimate is too high and the difference asked for is positive.
Leans on
Equations of the form y′ = a − by, from Exponential growth and decay
Related topics
Needs
Exponential growth and decay
The differential equations y′ = ky and y′ = a − by: half-lives, doubling times, Newton’s law of cooling and inflow and outflow.
11 questions
Leads to
Logistic growth and phase lines
Steady states and their stability from a state-space diagram (phase line), the logistic equation, and harvesting.
11 questions