In November 2021 Nepal’s census counted 29,164,578 people, and the National Statistics Office worked out that between the last two censuses the population had grown by 0.92% a year. That figure is not a number of people. It is a rate: every year the population adds 0.92% of whatever it is at the time, so the more people there are, the faster it grows.
Unit 12 used that rate to find how fast Nepal was growing on census day. Here is this unit’s question: if the rate held, how long would Nepal take to double? 100 ÷ 0.92 gives 109 years, but that treats the growth as a fixed number of people a year, and it isn’t. A rule that says how fast something changes, in terms of what it is now, is a differential equation; this unit is about turning such a rule into the quantity itself. The answer comes at the end of 14.3.
Census figures: National Statistics Office, National Population and Housing Census 2021.
14.1 Differential equation, order and degree
A rule for how fast
Most laws of nature are not about what a quantity is but about how fast it changes:
- a radioactive sample loses atoms at a rate proportional to the number it has: Grade 12: Grade 12 Physics, Radioactivity;
- a cup of tea cools at a rate proportional to how much hotter it is than the room: ;
- a weight on a spring is pulled back with a force proportional to how far it is stretched: .
Each is an equation for an unknown function (N(t), T(t), x(t)), and it contains that function’s derivatives. An equation that contains the derivatives of an unknown function is a differential equation. When the unknown is a function of one variable, as in all of these, it is an ordinary differential equation, the only kind in this course.
Order and degree
The order of a differential equation is the order of the highest derivative in it. The degree is the power of that highest derivative, once the equation has been made a polynomial in its derivatives: free of roots and fractions of them. If it can’t be made one (a derivative inside a sine, a logarithm or an exponential), its degree is not defined.
The degree of is:
Pick an answer to see why.
Solutions: a family of curves
A solution of a differential equation is a function that makes it true. Integration always brings a constant, so a first-order equation has a whole family of solutions with one arbitrary constant C, its general solution; an equation of order n has n of them. One extra fact, such as the value of y at one x (an initial condition), picks out one member, a particular solution.
The picture is worth having. A first-order equation gives the slope at every point of the plane: draw a short dash with that slope at each point, a direction field. A solution is a curve that follows the dashes everywhere; through each point runs one of them.
From a family of curves to its equation
The road also runs the other way. Given a family of curves with arbitrary constants, find the differential equation they all satisfy: differentiate as many times as there are constants, then eliminate the constants. A family with n independent constants gives an equation of order n, the same count as above, read backwards.
14.2 Differential equations of first order and first degree
A first-order, first-degree equation has only , to the power 1. Solved for it, it reads
For example, is the same as (x + y) dx − (x − y) dy = 0. Either form will do; each method below starts from the one that suits it.
No single method solves every such equation. This course has four, one for each shape:
| Type | It looks like | First move |
|---|---|---|
| Separable (14.3) | everything in y with dy, in x with dx | |
| Homogeneous (14.4) | put y = vx | |
| Linear (14.5) | , P, Q functions of x | multiply by |
| Exact (14.6) | M dx + N dy is the differential of a function | test |
An equation can be of more than one type ( is separable, homogeneous and linear); then use the easiest.
is:
Pick an answer to see why.
14.3 Differential equations with separable variables
The method
An equation is separable if it can be written with all the y’s on one side with dy and all the x’s on the other with dx:
Then integrate both sides: , one constant for both.
Why is this allowed, when is not a fraction? Let G′ = g and F′ = f.
- The equation says .
- By the chain rule, , so .
- So G(y) − F(x) has derivative 0: it is a constant, and G(y) = F(x) + C.
Splitting dy from dx is shorthand for these three steps. The integrals are those of Grade 11 Unit 19 and Unit 13.
Decay and growth
Growth is the same equation with the sign turned: if a quantity grows at a rate proportional to itself, with k > 0, then , and it doubles every , whatever its size.
Cooling
Isaac Newton found that a hot body cools at a rate proportional to how much hotter it is than its surroundings (Newton’s law of cooling; it holds well when the difference is not too large and the air is still or the draught steady):
where is the temperature of the surroundings and k > 0 depends on the body (its size, surface and what it is made of).
A substitution that makes it separable
An equation of the form isn’t separable as it stands, but putting v = ax + by + c makes it so.
The general solution of is:
Pick an answer to see why.
Back to Nepal’s population
The answer: about 75 years, not 109. If the population grows by a fixed fraction k of itself each year, , and so .
- The census of 22 June 2011 counted 26,494,504 people and that of November 2021 counted 29,164,578, about 10.4 years later. So , and : the 0.92% a year the National Statistics Office reports, which it works out with this same exponential formula.
- The population doubles when : 75 years.
The rule “100 ÷ rate” is wrong because the growth compounds: each year’s new people have children of their own. (The quick rule for doubling at r% is 70 ÷ r, since .)
The answer is only as good as the rule. Nepal’s rate has not held: from 2001 to 2011 it was 1.35% a year. At that rate the 2021 census would have found about 30.5 million, some 1.3 million more than it did; the rate itself is falling, as fewer children are born to each family and many people work abroad. A differential equation predicts well when its rule is right, and the first thing to check, when a prediction fails, is the rule.
14.4 Homogeneous differential equations
Homogeneous functions
A function f(x, y) is homogeneous of degree n if
for every t > 0: scaling both variables scales it by a fixed power. So is homogeneous of degree 2, of degree 1, and of degree 0; is not homogeneous, since its terms have different degrees.
A differential equation is homogeneous if f and g are homogeneous of the same degree. Then has degree 0, and taking (for x > 0) gives : the right side depends only on ,
It describes a field of slopes that is the same all along each line through the origin.
The substitution y = vx
- Put y = vx, where v is a new function of x.
- By the product rule, .
- The equation becomes , that is : separable.
- Solve it, then put back.
The shape of a torch’s mirror
A torch, a car’s headlight and a satellite dish share one shape for a reason. Put the bulb at the origin O, and ask for a mirror that sends every ray from O out parallel to the X-axis. Take a point P(x, y) of the mirror with y > 0, and write there.
- Let the tangent at P make the angle θ with the X-axis, so tan θ = p, and let OP make the angle , so .
- The reflected ray is parallel to the X-axis, so it makes the angle θ with the tangent. The ray from O makes the angle with it.
- The law of reflection says the two angles are equal: , so .
- So (the double-angle formula), that is , a quadratic in p.
- Its roots are . The angle lies between 0° and 90°, so p > 0: the root with +.
(multiply top and bottom by ). The second form is homogeneous with x as the unknown function of y, so put x = vy.
Which of these differential equations is homogeneous?
Pick an answer to see why.
14.5 Linear differential equations
The form and the integrating factor
A first-order equation is linear in y if y and appear only to the first power and are never multiplied together:
where P and Q are functions of x alone (or constants). Its left side is almost the derivative of a product. The trick is to multiply by a function R(x) that makes it exactly one:
- We want (product rule).
- That needs , a separable equation: , .
- So (one such R is enough; no constant needed). It is called the integrating factor, IF.
- Multiplied by it, the equation reads ; integrate both sides:
The integrating factor of (x > 0) is:
Pick an answer to see why.
A capacitor charging
A capacitor of capacitance C is joined to a battery of emf E through a resistor R Grade 11: Grade 11 Physics, Capacitors. The charge Q on it flows in as a current , and the battery’s emf is shared between the resistor and the capacitor: . So
a linear equation for Q(t). Such RC circuits set the timing in electronics: how long a camera’s flash takes to be ready again, or how fast a heart pacemaker’s capacitor charges between beats.
Linear in x
Sometimes an equation is not linear in y but becomes linear when x is treated as the unknown function of y:
14.6 Exact differential equations
When the left side is a differential
is exactly the change in : by the product rule, . So the equation says that does not change, and its solution is , a family of level curves of the function , as contour lines on a map are level curves of height.
An equation M dx + N dy = 0 is exact if its left side is the differential of some function u(x, y). Then its solution is u(x, y) = C.
Partial derivatives, and the test
To test for this you need one new idea. For a function u(x, y) of two variables, the partial derivative is its derivative with respect to x, with y held constant; holds x constant. For : (y a constant multiplier) and . A small change in both variables changes u by
the total differential, as above.
The test. M dx + N dy = 0 is exact if and only if
Why it is needed:
- If the equation is exact, then and (comparing with du).
- So is u differentiated by x, then by y; is u differentiated by y, then by x.
- For the functions met in this course the order doesn’t matter (a theorem of higher mathematics, taken without proof), so the two are equal.
That the test is also enough (equal partial derivatives always come from some u) is taken without proof too.
The method. For an exact equation,
The first integral gets every term of u with an x in it; terms in y alone have , so they are found from N. Check by finding du.
Some groupings to know on sight: x dy + y dx = d(xy), , .
For which value of k is exact?
Pick an answer to see why.
Exercise
Choose the correct option
The order and degree of are:
Pick an answer to see why.
The integrating factor of , P and Q functions of x, is:
Pick an answer to see why.
The order and degree of are:
Pick an answer to see why.
The general solution of is:
Pick an answer to see why.
Putting y = vx in gives:
Pick an answer to see why.
Which of these equations is exact?
Pick an answer to see why.
The general solution of is:
Pick an answer to see why.
A substance decays by , with t in days. Its half-life is about:
Pick an answer to see why.
The curve through (1, 3) whose slope at every point is 2x is:
Pick an answer to see why.
At every point P of a curve the slope of the tangent is twice the slope of OP, O the origin. If the curve passes through (1, 2), it is:
Pick an answer to see why.
In a room at 20 °C, a cup of milk cools from 80 °C to 50 °C in 10 minutes. By Newton’s law of cooling, it then cools from 50 °C to 35 °C in:
Pick an answer to see why.
Short questions
- a.Find the order and degree of i. ; ii. . (2 marks)
- b.Show that is a solution of for all constants A and B. Why can it be the general solution? (3 marks)
Answer
- a.Solve , and find the solution with y = 1 when x = 0. (3 marks)
- b.Solve sin x cos y dx + cos x sin y dy = 0. (2 marks)
Answer
Solve , x > 0. (5 marks)
Hint
Answer
Solve , , and find the solution through (0, 2). (5 marks)
Answer
Show that is exact, and solve it. (5 marks)
Answer
The Chernobyl accident of 1986 spread cesium-137, whose half-life is 30.04 years, over much of Europe. The amount N in the soil decays by .
- a.Solve the equation and find . (2 marks)
- b.What fraction of the 1986 cesium-137 is still there in 2026? (1 mark)
- c.In about which year will 10% be left? (2 marks)
Answer
Milk boiled to 100 °C is left in a kitchen at 25 °C. After 5 minutes it is at 85 °C. How long after boiling will it have cooled to 50 °C? (5 marks)
Answer
At every point P(x, y) of a curve, with x > 0 and y > 0, the slope of the tangent equals the slope of OP plus the reciprocal of that slope. The curve passes through (1, 1). Find its equation. (5 marks)
Hint
Answer
- a.Does represent a homogeneous differential equation? Give the reason. (1 mark)
- b.Solve it, for x > 0 and y < x. (4 marks)
Hint
Answer
Solve , y > 0, in two ways: a. as a linear equation in x; b. as an exact equation. (5 marks)
Answer
Long questions
A 100 μF capacitor charged to 12 V is joined across a 20 kΩ resistor.
- a.Write the differential equation for the charge Q as it discharges, and solve it. (3 marks)
- b.How long does the voltage take to fall to 6 V? (2 marks)
- c.The empty capacitor is now charged from a 12 V battery through the same resistor. Solve with Q(0) = 0, and find how long it takes to reach 90% of its full charge. (3 marks)
Answer
Nepal’s census counted 23,151,423 people in 2001 and 26,494,504 in 2011, ten years later. Take the growth to follow .
- a.Find k from these two counts. (2 marks)
- b.Predict the population at the 2021 census, 10.4 years after that of 2011, and compare with the count, 29,164,578. (2 marks)
- c.Find k again from the counts of 2011 and 2021, and say what has changed. (2 marks)
- d.At the rate of c., in about which year would Nepal reach 35 million? (2 marks)
Answer
Project work
Using what you learned
Our own questions of the kind IOE’s Section B sets: solving a first-order equation and using the solution, in two or three steps.
The solution of (x > 0) with y = 1 at x = 1 is:
Pick an answer to see why.
The solution of with y = 3 at x = 0 is:
Pick an answer to see why.
The general solution of is:
Pick an answer to see why.
The general solution of is:
Pick an answer to see why.
A curve passes through (0, 1), and at every point (x, y) on it the slope of the tangent is x + y. The curve is:
Pick an answer to see why.
Printable PDFs
- Study notes 2 pages
- Worksheet 4 pages Answer key
- Harder practice questions 1 page Answer key
Practice every question in the book, and keep track of the ones you miss →
Where these facts come from
- Nepal’s population, 29,164,578 on the census day of 25 November 2021, its growth of 0.92% a year for 2011–2021 and 1.35% for 2001–2011, and that these are annual exponential growth rates (the opening, 14.3, Question 12): National Statistics Office, National Population and Housing Census 2021, National Report (2023), its Key Results and the table “Inter-censal population changes (1911–2021 A.D.)”, read November 2026; fewer children and young people going abroad for work as the reasons the rate fell (14.3): The Kathmandu Post, “Nepal is ageing as children’s share in population shrinks”, 25 March 2023, as read for Unit 12; the 2011 count, 26,494,504 on the census day of 22 June 2011, its increase of 3,343,081 over the decade, its rate of 1.35% a year, and the 2001 count, 23,151,423 (14.3, Question 12): Central Bureau of Statistics, National Population and Housing Census 2011, National Report (2012), its Major Highlights, the table of census populations 1911–2011 and section 8, read November 2026.
- Iodine-131’s half-life, 8.02 days, and its use to treat an overactive thyroid (Example 4); cesium-137’s half-life, 30.04 years, and its spread from Chernobyl (Question 6): Wikipedia, “Iodine-131” and “Cesium-137”, read November 2026; the decay law: Grade 12 Physics, Unit 24.
- Newton’s law of cooling, published anonymously as “Scala graduum caloris” in the Philosophical Transactions (1701) (14.3): Wikipedia, “Newton’s law of cooling”, read November 2026; the method checked against OpenStax, Calculus Volume 2, 4.3 “Separable Equations” (CC BY 4.0).
- Leibniz’s separation of variables and reduction of homogeneous equations (1691) and his method for linear equations (1694), and Euler’s condition for exact equations (14.3): W. E. Boyce and R. C. DiPrima, Elementary Differential Equations, section 1.4, “Historical Remarks”.
- RC circuits and the time constant RC (14.5): OpenStax, University Physics Volume 2, 10.5 “RC Circuits”; their uses in camera flashes and cardiac pacemakers: OpenStax, College Physics 2e, 21.6 “DC Circuits Containing Resistors and Capacitors” (both CC BY 4.0).
- The parabolic reflector: rays from the focus leave parallel to the axis (14.4): Wikipedia, “Parabolic reflector”.
- Definitions and methods checked against OpenStax, Calculus Volume 2, Chapter 4 (CC BY 4.0).
- The unit’s items: CDC, Secondary Education Curriculum 2078, Mathematics, Grades 11–12, 6.3 and learning outcome 6.6; the marks and the model questions: CDC, Specification Grid 2078, Mathematics (Mat. 402), Grade 12, and Model question 2080; IOE, BE/BArch Entrance Syllabus 2083, Mathematics 5.4.
Found a mistake? Please tell us.
