First-order differential equations
In a minute
A links a function with its derivative, such as . Solving it means finding the function. Three exact methods cover the course: separating the variables, and the . When none works, estimates the answer.
You'll be able to
- Check that a function solves a differential equation, and use a given point to turn the into a .
- Solve equations by separating the variables, including the with partial fractions.
- Solve a with the substitution .
- Solve with an integrating factor.
- Estimate a solution with Euler's method, and say whether the estimate is too big or too small.
Before you start3 quick questions on what this builds on
Revise first: 5.10 Indefinite integration and substitution, 5.15 Extended differentiation and integration and 5.16 Integration by substitution and parts
Differential equations and their solutions
Until now you differentiated a given function. A differential equation turns this round: it tells you about , and you find .
For example, says the gradient is always twice the height. works for any constant , since its derivative is .
To check a solution, differentiate it and substitute into both sides. They must agree for every .
Try it first, then reveal one step at a time.
- The right side depends only on , so integrate both sides with respect to : .
- . This is the .
- Use the point : , so .
- Check: , and when .
Try it first, then reveal one step at a time.
- Differentiate the trial solution: .
- Substitute into the left side: .
- This must equal for every , so .
Separating the variables
Many equations have the form : a function of times a function of . Move every to one side with , and every to the other with . Then integrate each side.
1. Divide and multiply so that and are on the left, and and are on the right.
2. Integrate both sides, and add straight away. One constant is enough: constants on both sides would combine into one.
3. Use the given point to find the constant, then rearrange into the form the question asks for.
Try it first, then reveal one step at a time.
- Separate the variables: .
- Integrate: .
- Undo the log: . So , where is a new constant.
- Use when : , so .
- Check: .
Try it first, then reveal one step at a time.
- Multiply both sides by and by : , so .
- The left side is .
- The right side needs parts, with and , so . This gives , where is the one constant for the whole equation.
- So .
- Use when : , so .
- Multiply by to finish.
The logistic equation
Some quantities grow fast at first and then level off, like a population with limited food. Growth slows to zero as the quantity nears a limit .
Take . While is small, grows almost exponentially. Near , the factor is close to zero, so growth almost stops.
when or . These are equilibrium values. Start between them and rises towards without ever passing it.
The variables separate, but is not a standard integral. Split it into first, as in 5.15:
Try it first, then reveal one step at a time.
- Separate: .
- Split the fraction: .
- Integrate. The derivative of is , so an antiderivative of is . With one constant , this gives .
- Multiply by and combine the logs: . As , the fraction is positive, so .
- At : .
- Make the subject: , so . Then divide the top and bottom by .
As , , so . In general the same steps give , which tends to . Show the working rather than quoting this.
Try it first, then reveal one step at a time.
- Set : .
- Rearrange: , so .
- So , which means .
- Take natural logs. That is about days.
Homogeneous equations
Some equations don't separate, such as . Divide the top and bottom by , though, and it becomes . It depends only on the ratio .
A quick test: every term on the top and bottom has the same total power of and , as in .
Call the ratio , so , where is a function of . The product rule gives :
Substituting gives a separable equation in and . Solve it, then replace by .
Try it first, then reveal one step at a time.
- Write the right side in terms of : .
- Substitute: , so .
- Separate: , so .
- So for a constant . Replace by : , so .
- At , : , so .
Try it first, then reveal one step at a time.
- Divide the top and bottom by : the right side is .
- Substitute: , so .
- Separate: .
- Partial fractions: . Put : . Put : . So the integrand is .
- Integrate. The derivative of is , so the first log gets a minus sign: .
- Combine the logs: , so , where is positive.
- At , , so and are both positive, and is never negative. So the modulus signs can go: .
- Put and multiply the top and bottom by : , so . At : , so .
The integrating factor
A linear first-order equation has the form , where and are functions of only. It usually doesn't separate. Instead, you multiply by a function that turns the left side into one derivative.
Read the product rule backwards: . So turns into one derivative, and .
The factor is in the formula booklet. The method is not:
1. Rearrange to . If has a coefficient, divide the whole equation by it first.
2. Find . You can leave out the constant of integration here.
3. Write . Integrate both sides, with .
4. Divide by . The constant is divided too.
Try it first, then reveal one step at a time.
- Rearrange: , so and .
- The integrating factor is .
- Multiply through: .
- Integrate by parts, as in the warm-up: .
- Multiply by : . At : , so .
Try it first, then reveal one step at a time.
- Divide by first, so that stands alone: . So .
- The integrating factor is . On this interval , so no modulus is needed.
- Multiply through: . Check with the product rule: is times the left side above.
- Integrate: .
- At : , so . Multiply by .
Euler's method
Many differential equations can't be solved exactly, such as . But the equation gives the gradient at every point. So from a known point, take a small step along the tangent: changes by gradient step. Then repeat from the new point.
Here , is the given point and is the constant step length. This is , and the formula is in the booklet.
dy/dx = x + y, y(0) = 1, so the exact solution is y = 2eˣ − x − 1
Steps from x = 0 to x = 1:
The widget uses , , solved exactly above: . Euler gives about with , and with .
Try it first, then reveal one step at a time.
- Here , , and . Two steps take from to . A table of , and keeps it clear.
- Step 1: , so , at .
- Step 2: recalculate the gradient at the new point, using its and its . , so , at .
Too big or too small? Each step follows a tangent. From a point on a curve the tangent lies below the curve, so that step underestimates; on a curve it overestimates (see 5.8). With small steps the estimate stays on the same side, and that is the reason exam questions expect. With a large step it can fail: for , and , Euler gives and then , either side of the true curve.
To find the concavity, differentiate again, treating as a function of as in .
Try it first, then reveal one step at a time.
- Five steps take from to . Write down the rule you will put into the calculator: and .
- Step 1 by hand: , at .
- Steps 2 to 5 on the calculator give , , and . Keep full values and round only at the end.
- Concavity: differentiating again, . Here , so this is positive and the curve is concave up.
- So the tangents lie below the curve, and is an underestimate.
Common mistakes
- Forgetting , or adding it only after rearranging. Add it the moment you integrate, then use the given point to find it.
- Writing as . The constant multiplies, giving .
- Missing a factor from the inside when you integrate. is , and is . Differentiate back to check.
- Finding the integrating factor before dividing through. For , divide by first, so , not .
- In Euler's method, using the new with the old , or reusing the first gradient. Recalculate at the current point every step, and count the steps you need.
Exam tips
- “Solve” with a given point means find the particular solution, in the form the question asks for.
- “Show that” the solution is a given equation: work forwards from the differential equation, and make your last line match the given result.
- On Paper 2, write the Euler rule and the first step before the calculator value, and give the final estimate to 3 s.f.
- For over- or underestimate, link concavity to the tangents: concave up means the tangents lie below the curve.
Key takeaways
Practise this
27 past-paper questions on 5.18 in the AA HL bank, each with a mark scheme and a worked explanation.