Solve first-order differential equations by separating the variables, by the substitution y = vx and with an integrating factor, approximate solutions with slope fields and Euler's method, and build models of growth, cooling and mixing.
Each is in the Maths AA glossary, with every other term in the subject.
The largest population that an environment can support in the long term; in the logistic model every positive solution approaches as time increases.
An equation that relates an unknown function to one or more of its derivatives, such as
With a free account, Augment remembers where you stopped and what you have practiced.
A numerical method that approximates the solution of by short straight steps along the gradient: , .
The family of all solutions of a differential equation, written with an arbitrary constant such as ; a first-order equation has one arbitrary constant in its general solution.
A first-order differential equation that can be written as . The substitution turns it into a separable equation in and .
A known value of the solution at one point, such as when (written ), used to find a particular solution.
The function that multiplies so that the left-hand side becomes the derivative of a product, .
A curve on which a differential equation gives the same gradient everywhere, so all slope-field segments on it are parallel; its equation is .
A first-order differential equation that can be written as , in which and appear only to the first power and are not multiplied together.
A model of limited growth, : growth is close to exponential while is small and slows to zero as approaches the carrying capacity .
The model in which an object's temperature changes at a rate proportional to the difference between and the surrounding temperature : , with .
The one solution of a differential equation that also satisfies a given condition, found by using the condition to fix the arbitrary constant in the general solution.
A method for solving a differential equation that can be written as : integrate both sides, giving .
A diagram of short line segments at the points of a grid, each with gradient equal to the value of given by a differential equation at that point. Solution curves follow the segments.
The constant amount by which increases at each step of a numerical method such as Euler's method.
A differential equation describes how a quantity changes rather than what the quantity is. Many laws of science are stated this way: a population grows at a rate proportional to its size, a hot drink cools at a rate proportional to how much hotter it is than the room, and salt leaves a tank at a rate that depends on how much salt the tank holds. Solving the differential equation turns the rule for the rate of change into a formula for the quantity itself.
First-order differential equations bring together almost every integration technique in the course. They also give a different view of a function: a curve can be described by the gradient it must have at every point, and that description alone is enough to draw it, approximate it numerically or, for several important types of equation, find it exactly.
An equation such as gives directly in terms of . A differential equation instead gives information about the derivative of , and the task is to work back to
Examples of first-order differential equations include ,
The simplest first-order equations have a right-hand side that depends on only. An equation of the form is solved by integrating once,
The variables do not have to be and . In models the independent variable is usually time , and the dependent variable is named after what it measures: for a population, for a temperature, for a mass of salt. The equation
A function is a solution of a differential equation if substituting it, and its derivative, into the equation makes both sides identical for every value of in its domain. Checking a proposed solution needs only differentiation, so it is a useful first step before learning any method of solution.
"Show that" means every step towards the given result must be written down. Here that means differentiating, substituting into the right-hand side, and stating clearly that the two sides agree.
The example shows that one differential equation can have infinitely many solutions, one for each value of . This mirrors the constant of integration in an indefinite integral: integrating loses the information about where the curve starts.
Each value of gives one solution curve. The curves fill the plane without crossing, and the initial condition picks out the one curve that passes through a chosen point. For with
The equation gives the gradient of the solution curve through every point
For , the gradient at is

A solution curve follows the slope field: at every point it is tangent to the segment there. To sketch the solution through a given point, start at that point and move a little way in the direction of the nearby segments, then repeat, in both directions. The curve should run parallel to the segments it passes, never cut across them.
The curves through different points do not cross. If two solution curves met at a point, they would have the same gradient there and would continue together, so for the equations in this course each point lies on exactly one solution curve.
Plotting a slope field point by point is slow. It is quicker to find the curves on which the gradient takes a fixed value.
For , the isoclines
Some features of the equation can be read straight from the field.
Form of the equation | What the slope field shows |
|---|---|
Segments in the same vertical column are parallel; solution curves are vertical translations of each other | |
Many differential equations, such as
Starting at a known point , the gradient there is
The formula is the tangent line approximation from differentiation, , applied once per step. The Euler estimates form a polygon of straight segments that tries to follow the true curve.

For with , the exact solution is
The calculation is clearest in a table with one row per step. Work with the unrounded values throughout and round only the final answer.
For more than a few steps, a graphic display calculator (GDC) or a spreadsheet does the repetition. On a spreadsheet, put and in the first row; each new row adds to the previous and computes
Each Euler step follows a tangent, and the error made in one step depends on how far the curve bends away from its tangent over a distance . Reducing reduces the error in each step, at the cost of needing more steps. For the equation
Step length | Number of steps | Euler estimate of | Error |
|---|---|---|---|
0.5 | 2 | 0.5 | 0.236 |
0.25 | 4 | 0.632813 | 0.103 |
0.1 | 10 | 0.697357 | 0.0384 |
0.05 | 20 | 0.716972 | 0.0188 |
0.01 | 100 | 0.732065 | 0.00369 |
Halving the step length roughly halves the error, and dividing it by 10 divides the error by about 10. The error is approximately proportional to , so Euler's method improves steadily but slowly. More accurate numerical methods exist and are used by GDCs and software, but they rest on the same idea of building the curve from its gradient.
The sign of the error depends on the concavity of the solution curve. A curve that is concave up lies above its tangents, so Euler's method underestimates. A curve that is concave down lies below its tangents, so Euler's method overestimates. The concavity can be found from the differential equation itself: for , differentiating gives
A differential equation is separable when the right-hand side can be written as a function of multiplied by a function of :
Dividing by and writing gives
By the chain rule (or the substitution rule of 5.16), the left-hand side is . The equation becomes
with everything involving on one side and everything involving on the other.
The steps are:
Rearrange so that all of (with ) is on one side and all of (with ) is on the other.
Integrate both sides, writing one constant on the
One constant is enough: constants on both sides, , combine into a single constant
The most important separable equation states that a quantity changes at a rate proportional to its size:
Separating, , so
Since is any positive constant and may be positive or negative, the two cases combine as , where
This explains why exponential functions model so many processes (2.9): any quantity whose rate of change is proportional to its current size must change exponentially.
Separable equations can lead to any of the standard integrals, including those of 5.15 (HL). The right-hand side often has to be factorised or split, using laws of exponents, before the variables can be separated.
The next equation does not look separable until the exponential is split with the law
Some equations that are not separable become separable after a change of variable. An important class has a right-hand side that depends only on the ratio .
For example,
Writing , so that with
The differential equation becomes
which is separable in and :
After integrating, replace by to return to the original variables.
The integral in sometimes needs partial fractions (1.11), as in the next example.
A large class of equations that are neither separable nor homogeneous can be solved by a different method.
"Linear" refers to : both and appear only to the first power and are never multiplied together or placed inside another function. The equations
The left-hand side resembles the result of the product rule. The idea is to multiply the whole equation by a function chosen so that the left-hand side becomes exactly the derivative of the product
The two sides match if . This is a separable equation for , with solution
Any one such function works, so no constant of integration is needed in the exponent.
The method:
Write the equation in standard form, so that the coefficient of is . Read off and
The expression almost always simplifies, using and
The constant of integration must be added before dividing by the integrating factor. In the last example it becomes the term , which is part of every solution; adding after the division gives , which does not satisfy the differential equation.
The integral may need integration by parts (5.16). The next example solves, with an integrating factor, the equation whose slope field and family of solutions opened the subtopic.
Some equations can be solved by more than one method. The equation , for instance, is separable and also linear. Checking the forms in order saves time.
The equation can be written as | Method |
|---|---|
Integrate directly | |
A model is often stated in words. "The rate of change of " is , "is proportional to" introduces a constant , and a decreasing quantity has a negative rate of change.
Every model rests on assumptions. Exponential growth assumes unlimited resources, so it cannot hold for long; the cooling model assumes the surroundings stay at a fixed temperature; mixing models assume the tank is stirred so that the concentration is the same throughout. Commenting on whether these assumptions are reasonable is part of interpreting a model.
A hot object in a cooler room loses heat faster when the temperature difference is larger. The simplest model states that the rate of cooling is proportional to this difference.
The equation is separable. With ,
so . At ,
The temperature difference decays exponentially, and approaches the room temperature without reaching it. The equation is also linear, so an integrating factor gives the same result.
Exponential growth cannot continue for ever: food, space or other resources run out. The logistic model adds a factor that slows growth as the population approaches a maximum.
When is small, the bracket is close to and : growth is nearly exponential. As

The growth rate is a quadratic in with roots
The logistic equation is separable. Using partial fractions,
Rewriting the equation as and integrating, for
Solving for gives the logistic function
and . As ,
In a mixing problem a substance, such as salt, flows into and out of a tank of liquid. The amount of the substance changes at the rate it comes in minus the rate it goes out:
The rate in is the inflow rate multiplied by the concentration of the incoming liquid. Assuming the tank is well mixed, the rate out is the outflow rate multiplied by the concentration in the tank, , where is the volume of liquid at that moment.
When the flows in and out are equal, the volume is constant. For a tank holding 200 litres of pure water, into which brine containing kg of salt per litre flows at 4 litres per minute while the mixture flows out at 4 litres per minute,
This is separable (or linear). Separating gives , and with the solution is
When the flows differ, the volume changes and depends on , which usually makes the equation linear but not separable.
Differential equations often appear as long questions that combine a method of solution with Euler's method, a slope field or a model. The two questions that follow show typical structures; the first allows a GDC and the second does not.
I can verify that a function satisfies a differential equation, and explain the difference between a general solution and a particular solution.
I can calculate gradients on a slope field, find isoclines and equilibrium solutions, and sketch a solution curve through a given point.
I can apply Euler's method by hand and with a GDC or spreadsheet, and explain how the step length and the concavity of the solution affect the error.
I can solve a separable differential equation, handling the constant of integration correctly when logarithms and exponentials are involved.
I can recognise a homogeneous equation and solve it with the substitution .
I can write a linear equation in standard form, find its integrating factor and solve it.
I can choose a suitable method for a given first-order differential equation.
I can form a differential equation from a description, solve it, and interpret the solution for exponential growth and decay, Newton's law of cooling, logistic growth and mixing.
27 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Consider the differential equation , where when .
Write down the value of when .
1 mark
The solution curve of the differential equation passes through the origin. Find an expression for
A bowl of soup is placed in a room where the temperature is a constant C. The temperature of the soup, C, at time minutes after it is served is modelled by the differential equation
One of 40 short multiple-choice questions on 5.18. Pick an answer to see why it's right or wrong.
The diagram shows the exact solution of , (solid) and Euler's method with (dashed). Why is the Euler estimate of too large?

The entries of the mathematics: analysis and approaches formula booklet that 5.18 uses. Each opens in the explained booklet.
Differentiate the proposed solution.
Substitute into the right-hand side of the differential equation.
Both sides equal for every , whatever the value of , so
The right-hand side depends on only, so integrate directly.
This is the general solution. Use the initial condition , to find .
The particular solution is .
Segments in the same horizontal row are parallel; solution curves are horizontal translations of each other |
for a constant | Every segment on the line is horizontal, and is a constant (equilibrium) solution |
undefined (for example a zero denominator) | No segment, or vertical segments, where the gradient is undefined |
(a) Calculate the gradient of the slope field at the points , , and .
(b) Describe the isoclines of the differential equation.
(c) Sketch the solution curve that passes through .
(a) Substitute each point into .
(b) The isocline with gradient is , that is
(c) Each isocline is a line through the origin, and the segment on it has gradient , which is the negative reciprocal of the line's gradient . Every segment is therefore perpendicular to the line joining it to the origin, which is the property of a tangent to a circle centred at the origin. The solution curves are circles centred at

The curve through is the upper half of the circle , for
where the constant is the step length. Each value approximates .
Here , , . Five steps of take from to . Each row uses .
So (4 d.p.).
The exact solution with this initial condition is , so
(a) Use Euler's method with to estimate .
(b) Repeating the method with gives . An accurate numerical value is to 4 decimal places. Comment on the two estimates.
(a) Four steps of take from to . Use , keeping unrounded values on the GDC.
So (3 s.f.).
(b) Both estimates are smaller than the accurate value. Reducing the step length from to reduces the error from about to about : a smaller step length gives a better estimate. The estimates are too small because the solution curve is concave up (its gradient
Use any initial condition to find .
Rearrange to make the subject if possible, and state any restriction on the domain.
Separate the variables: multiply both sides by .
Integrate both sides, with one constant.
Use : , so . Multiply by
Solving for gives
This is the upper semicircle that the slope field suggested. The solution stops at , where and the differential equation is undefined.
The right-hand side is a function of multiplied by a function of . Separate.
Integrate both sides. The left-hand side is a standard integral giving .
Use : , so
The solution is valid while
Rewrite the right-hand side as a product: . Multiply both sides by .
Integrate both sides.
Use :
Since for all , the solution is valid for all real .
Divide the numerator and denominator by to show the equation is homogeneous.
Substitute , so that
Separate the variables and integrate.
Return to using , and multiply by
Use , : , so
Since at the initial point, take the positive root:
(a) Show that the substitution transforms the equation into .
(b) Hence find in terms of .
(a) Divide by : . With , , so
which is the given result.
(b) Separate the variables.
Split into partial fractions:
Exponentiate, writing .
At , , so
The solution is valid for , the interval containing on which it is defined.
Multiplying the equation by gives , so
Find the integrating factor and simplify it.
Multiply through by and write the left-hand side as .
Integrate both sides, including .
Divide by to make the subject, then use any initial condition.
The equation is in standard form with and . The integrating factor is
Multiply through by . The left-hand side becomes the derivative of .
Integrate both sides.
Use : , so
Divide by to reach standard form.
So and
Multiply through by .
Integrate both sides.
Here . Since for ,
Multiply through by .
Integrate both sides.
Multiply by .
Use : , so and
Integrate the right-hand side by parts, with and .
So . Divide by .
This is the family verified at the start of the subtopic.
Separate the variables |
Substitute , then separate |
Integrating factor |
None of these | Slope field or Euler's method |
(a) , where is the constant of proportionality.
(b) , where . The minus sign shows that decreases, so that itself is positive.
(c) , where
(c) Comment on the temperature of the coffee after a long time.
(a) With and , the solution is . Use .
(b) Solve , using the unrounded value of .
(c) As , , so . The coffee approaches room temperature but, according to the model, never quite reaches it.
where is the growth rate for small populations and is the carrying capacity, the largest population the environment can support in the long term.
(a) Write down the carrying capacity of the lake.
(b) Show that .
(c) Find the time when the population reaches 9000 fish.
(d) Find the greatest rate of increase of the population, and the time at which it occurs.
(a) , so the carrying capacity is fish.
(b) Separate the variables, using . The equation is , so
At , :
which is the given result.
(c) Solve .
(d) The rate is greatest when :
which is 1200 fish per year. This happens when , so
(b) Solve the differential equation to find in terms of .
(c) Find the mass of salt in the tank after 100 minutes.

(a) The volume increases by litre per minute, so . Salt enters at kg per minute and leaves at kg per minute.
(b) The equation is linear with . The integrating factor is
Multiply through and integrate.
At , :
(c) At :
(b) Use Euler's method with a step length of hours to estimate the amount of the drug in the body after 1 hour.
(c) Solve the differential equation to find in terms of .
(d) Hence explain why the estimate in part (b) is greater than the exact value.
(e) Find the time it takes for the amount of the drug to reach 90% of its long-term value.
(a) The amount increases at 6 mg per hour from the drip and decreases at mg per hour by removal, so .
(b) Use with , .
So mg.
(c) Separate the variables, for .
At , :
(d) is decreasing, so
(e) As , mg. Solve :
with when .
(a) Show that the substitution transforms the differential equation into
(b) Hence show that the solution satisfies .
(c) Hence find in terms of , and state the largest set of values of for which the solution is valid.
(a) Divide by and write the right-hand side in terms of .
With ,
which is the given result.
(b) Separate the variables.
The numerator is the derivative of the denominator, so
At , : , so
which is the given result.
(c)
The equation needs (it was divided by ), and the square root needs . The solution through
Apply Euler's method, with , to estimate the value of at .
3 marks
use of (M1)
: A1
:
Note: Accept .
5 marks
where is a positive constant and . When the soup is served, its temperature is C.
By solving the differential equation, show that .
4 marks
After 5 minutes, the temperature of the soup is C. Find the value of .
2 marks
Find the time it takes for the soup to cool to C.
2 marks
0 | 0 | 1 | 0.9 |
1 | 0.1 | 0.9 | 0.82 |
2 | 0.2 | 0.82 | 0.758 |
3 | 0.3 | 0.758 | 0.7122 |
4 | 0.4 | 0.7122 | 0.68098 |
0 | 1 | 3 | 2 | 3.5 |
1 | 1.25 | 3.5 | 2.17945 | 4.04486 |
2 | 1.5 | 4.04486 | 2.35475 | 4.63355 |
3 | 1.75 | 4.63355 | 2.52657 | 5.26519 |