Differential Calculus
Introduction to Differential Equations
Every topic so far has asked the forward question: given a function, what is its rate of change? A differential equation asks the reverse and far harder question: given information about the rate of change, what is the function? Nearly every quantitative law in physics, chemistry, biology and finance is written as a differential equation, and this topic covers the vocabulary (order, solution, general solution, initial value problem), the two families you can solve by hand in a first course (separable and first-order linear), and the two models they generate most often (exponential growth/decay and Newton's law of cooling).
What a differential equation is, and its order
Definition. An ordinary differential equation (ODE) is an equation relating an unknown function of a single variable to one or more of its derivatives. ("Ordinary" means one independent variable; equations involving partial derivatives in several variables are partial differential equations and are not treated here.)
Definition (order). The order of a differential equation is the order of the highest derivative that actually appears in it. Order is about which derivative, never about what power it is raised to.
| Equation | Order | Comment |
|---|---|---|
| linear (it is ) but not separable: the right side is not a product | ||
| first order; the exponent is the degree, not the order | ||
| linear, constant coefficients | ||
| nonlinear, because of |
Definition (first-order linear). A first-order equation is linear if it can be written as : and occur to the first power only, multiplied by functions of alone, and never inside another function. So and are not linear.
Solutions, general solutions, particular solutions
Definition (solution). A function is a solution of the equation on an interval if has as many derivatives on as the equation requires, and substituting makes the equation a true statement for every in .
The words "on an interval" are part of the definition, not decoration. The function satisfies (indeed ), but only on or on — never on an interval containing , where it is not even defined.
Verifying a proposed solution never requires solving anything: differentiate the candidate as many times as needed, substitute into both sides, and simplify until the two sides are visibly identical. If they are not identical for all in the interval, it is not a solution.
General vs. particular vs. singular. An -th order equation typically has a family of solutions containing arbitrary constants; this family is called the general solution. Fixing the constants gives a particular solution. A solution that cannot be obtained from the family for any value of the constants is a singular solution — separable equations produce these routinely (see below).
Initial value problems
An initial value problem (IVP) is a differential equation together with conditions prescribing (and, for order , its first derivatives) at a single point . The procedure is always: find the general solution first, then substitute the initial data to determine the constants. Imposing the condition before the constant of integration has appeared destroys the whole family.
Theorem (existence and uniqueness, first order). Consider with . If and its partial derivative (with respect to ) are continuous on an open rectangle containing the point , then there is an open interval about on which the problem has exactly one solution.
Both hypotheses matter, and the guarantee is only local. Continuity of alone gives existence but not uniqueness: , is solved both by and by , and here is undefined at .
Theorem (linear equations, stronger). If and are continuous on an open interval containing , then , has a unique solution defined on all of — not merely near .
Separable equations
Form. .
Method (all four steps are compulsory).
- Find the equilibrium solutions first. Every root of gives the constant solution : then and , so both sides vanish.
- On any interval where , divide and integrate: . One constant , on the right-hand side, is enough.
- Solve for if you can; otherwise leave the answer as an implicit relation.
- Check whether the equilibria are recovered by some value of the constant. Some are absorbed into the family; others are genuinely lost and must be listed separately as singular solutions.
Step 1 is the step everyone skips. Dividing by is illegal exactly where , so those solutions can never emerge from step 2.
Why the method is legitimate (it is not "multiplying by "). Suppose , so . Let be an antiderivative of . By the chain rule , so and are two antiderivatives of the same function on an interval and therefore differ by a constant.
The absolute value and the sign-absorbing constant. Integrating gives of the absolute value of , so becomes and then where is any nonzero real. The sign cannot flip partway along, because is continuous and never zero on the interval. Allowing restores the equilibrium , so here the general solution is with arbitrary.
First-order linear equations: the integrating factor
Standard form (mandatory). . If the equation arrives as , divide through by before reading off , and exclude the zeros of from the interval.
Derivation. Look for a nonzero function that turns the left side into an exact derivative:
These agree for every precisely when . That little equation is itself separable: , so and we may take
Any single antiderivative of will do — an extra contributes a factor that cancels from both sides. With this ,
The lives inside the bracket: the term is exactly the general solution of the associated homogeneous equation , and dropping it loses half the answer. Note always, so dividing by is never the illegal step that division by was.
Exponential growth and decay
Theorem. Let be constant and let be an interval. Then on if and only if for some constant .
Proof of the harder direction. Put . Then on , and a function with zero derivative on an interval is constant there. (That last step is the Mean Value Theorem corollary: is differentiable on , hence continuous on every closed subinterval and differentiable on its interior, so . The hypothesis that the domain is an interval is what makes it work.) Hence .
If then . Growth when , decay when .
- Doubling time (): , so .
- Half-life (): , so , equivalently and .
Newton's law of cooling
An object at temperature sitting in surroundings held at the constant temperature changes temperature at a rate proportional to the temperature difference:
Substituting gives , so and
Sanity checks built into the formula: returns ; gives because ; and is the equilibrium solution, recovered when . The same formula models heating when — nothing changes.
| Equation | Name | Method | General solution |
|---|---|---|---|
| direct antidifferentiation | integrate once | ||
| separable | list roots of ; then | implicit relation, plus any lost equilibria | |
| first-order linear | , then | ||
| growth / decay | either method | ||
| Newton cooling | substitute |
Worked example 1 (separable IVP, with a lost solution)
Solve with , and state where the solution is valid.
Step 1 — equilibria. Here , and only at , so is a solution. It fails , so it is not our answer — but keep it in view.
Step 2 — separate and integrate (valid where ):
Step 3 — solve for . Multiply by : . Writing (still arbitrary),
Step 4 — apply the initial condition. , so and
Check. and : identical. Also . Since is never , this solution is valid for all real .
Two remarks. (i) is a singular solution: no value of produces the zero function. (ii) The interval of validity depends on the data, not just on the equation: with instead we get and , valid only on , the largest interval around avoiding .
Worked example 2 (first-order linear IVP)
Solve with , for .
Standard form. Divide by (legal since ):
Integrating factor. for , so .
Multiply and recognise the product rule.
Initial condition. , so and
Check. , so , and . Since and are continuous on , the linear theorem promises this is the unique solution on the whole of , which matches the formula's domain.
Common mistakes
| Wrong | Right |
|---|---|
| "The order of is ." | The order is : the highest derivative present is . Three is the degree. |
| Reading off as , giving . | Put it in standard form first: , so and . |
| . | The constant is inside: . Otherwise the homogeneous part is lost. |
| Carrying a inside the integrating factor, . | Any one antiderivative works; the factor multiplies both sides of and cancels. |
| Dividing by without first solving . | For , dividing by silently discards and , both genuine solutions. |
| Dropping the absolute value: . | It is of the absolute value of ; that is exactly what lets the constant in be negative. |
| Adding a constant on each side, then keeping both. | Two constants collapse into one; write on the right only. |
| Attaching after solving for : from concluding . | The constant enters at the integration step, before you invert: . |
| Newton cooling as . | . Test it: must give and must give . |
| Half-life giving . | ; must be negative for decay. This sign error moves a carbon date by thousands of years. |
| Assuming every initial value problem has exactly one solution. | Only under the hypotheses. , has infinitely many solutions. |
| Quoting a solution without an interval. | with solves the IVP on only; "for all " is false. |
Key terms
- ordinary differential equation
- order of a differential equation
- degree vs. order
- linear first-order equation
- solution on an interval
- verifying a solution by substitution
- general solution
- particular solution
- singular solution
- equilibrium (constant) solution
- initial value problem
- existence and uniqueness theorem
- interval of validity
- separable equation
- loss of solutions by division
- integrating factor
- standard form
- homogeneous equation
- exponential growth and decay
- doubling time
- half-life
- radiocarbon dating
- Newton's law of cooling
- ambient temperature
Practice Problems
(a) State the order of each equation:
(b) Verify that is a solution of for all real , and identify which member of the general solution it is.
Show hint
For (a), look only at which derivative is the highest one present — exponents are irrelevant. For (b), compute the left side and the right side separately and compare; you never need to solve the equation.
Show answer
(a) Orders.
- (i) The only derivative appearing is , so the equation has order .
- (ii) The derivatives present are and ; the highest is , so the order is . The exponent on is the degree of that term and has nothing to do with the order.
- (iii) The highest derivative is , so the order is . (It is also nonlinear, because of .)
(b) Verification. Let .
Left side.
Right side.
The two sides are the same function of , so the equation holds for every real : is a solution on all of the real line.
Which member of the family? Compare with : they agree exactly when . So the given function is the particular solution with , equivalently the one satisfying the initial condition .
Independent check that the whole family works. If then , while . Equal for every , as claimed.
Show that satisfies for all constants and . Then find the particular solution with and .
Show hint
Differentiate twice and substitute. For the second part, note that a second-order equation needs two conditions, and that evaluating at makes the sine and cosine terms very easy to separate.
Show answer
Verification. Let .
Therefore
for every real and every choice of and . Since the equation has order and this family carries exactly arbitrary constants, it is the general solution.
Imposing the initial conditions. Evaluate at , using and :
Particular solution.
Check, independently. With , : , so as required, and . Also , while ; adding gives .
Numerical spot-check at (so ): and , and indeed .
Solve the initial value problem , . State the interval on which your solution is valid, and explain how you chose between the two algebraic possibilities.
Show hint
Separate the variables and integrate. When you undo the square, remember that a solution is a continuous function, so it cannot jump between the positive and negative branches.
Show answer
Equilibria. Write the equation as , so . There is no with , so there are no constant solutions. Note also that the right-hand side is undefined at , so any solution must avoid .
Separate and integrate.
Multiply by and write :
Apply the initial condition. At , , so , giving :
Choose the branch. Solving gives or . A solution must be continuous and must never touch ; since , it is negative at and can never change sign. Hence
Check. Differentiating,
while
They agree, and .
Interval of validity. for every real , and , so never reaches the forbidden value . The solution is valid on all real numbers.
Independent numerical check at : , , and .
Find every solution of . Explain carefully what happens to the constant solution during the separation step. Then solve the two initial value problems and .
Show hint
Before dividing by , ask what happens if is identically zero. Afterwards, check whether that solution reappears for some value of your constant.
Show answer
Step 1 — equilibrium solutions. Here and . Solving gives , so the constant function is a candidate. Verify: the left side is and the right side is . So is a solution.
Step 2 — separate, assuming .
Step 3 — solve for . Exponentiating,
On the interval in question is continuous and never zero, so it keeps a constant sign; removing the absolute value therefore introduces a single fixed sign:
Step 4 — recover the equilibrium. Setting in gives exactly , the solution that division by had excluded. So the equilibrium is absorbed into the family and
describes every solution. (This is the lucky case. It does not always happen — see the equation , where the equilibrium is lost for good.)
Initial condition . Since , , so and
Check: , and . Also .
Initial condition . Now forces , giving the equilibrium
Check: both sides of the equation are . Note that if you had skipped Step 1 and insisted , this initial value problem would have appeared to have no solution at all.
Solve the initial value problem , , using an integrating factor. Then find the maximum value of the solution for .
Show hint
The coefficient of is already constant and the equation is already in standard form, so write down immediately. For the last part, the solution is differentiable everywhere, so use the derivative you already computed.
Show answer
Standard form. The equation is already with and , both continuous on all of the real line.
Integrating factor.
Multiply through.
(The left side is by the product rule: .)
Integrate.
Initial condition. , so :
Check. , so
and .
Maximum for . Set :
There and , so
Since , for , and as , this critical point is the absolute maximum on .
Independent numerical check at : and , difference .
Solve on the interval . Give the general solution, then the particular solution with .
Show hint
The equation is linear but not yet in standard form — the coefficient of must be before you can read off . Expect a negative , and hence a negative power of as the integrating factor.
Show answer
Standard form. Divide by , which is legal because :
Integrating factor.
so
Multiply through and recognise the product rule.
(Indeed , matching the left side exactly.)
Integrate.
General solution: on .
Check. , so
The terms cancel, as they must: is the general solution of the homogeneous equation .
Initial condition .
so
Verify the particular solution independently at : , and . Then . Correct. And .
Interval. and are continuous on , which contains , so the linear existence-uniqueness theorem guarantees this is the unique solution on the whole of .
Carbon- decays exponentially with a half-life of years.
(a) Write the differential equation and find the decay constant . (b) A wooden artefact retains of the carbon- a living tree of the same size would contain. Estimate its age. (c) How long until only remains?
Show hint
Start from the modelling assumption "rate of change is proportional to the amount present", solve it, and use the half-life to pin down before touching parts (b) and (c). Watch the sign of .
Show answer
(a) The model. "The rate of decay is proportional to the amount present" is
whose general solution is with . (Proof: , so is constant on the interval.)
Half-life means :
The sign is negative, as it must be for decay. Equivalently .
(b) Age at . We need :
Numerically and , so
Independent check. half-lives, and . Correct.
(c) Time to . Same computation with :
Independent check. half-lives, and . Correct. (Sanity: three half-lives, years, leaves , so a little more than three half-lives is exactly what we should expect.)
A cup of coffee at is set down in a room held at . Five minutes later its temperature is .
(a) Solve Newton's law of cooling for with these data. (b) At what time does the coffee reach ? (c) What is , and what feature of the differential equation does it correspond to?
Show hint
Newton's law involves the temperature difference, not the temperature; substituting turns it into an equation you already know. Use the five-minute reading to find before answering (b).
Show answer
(a) Set up and solve. Newton's law of cooling with ambient temperature is
Put . Then , so with . Hence
Use the five-minute reading :
Because , the answer has the tidy form
Check: and . Both data are reproduced.
(b) Reaching .
Numerically and , so
Independent check. At : , so . Correct.
(c) Long-run behaviour. Since , as , so
This is the equilibrium solution of the differential equation: setting gives the constant solution . The coffee approaches room temperature asymptotically and never actually reaches it in finite time — consistent with uniqueness, since a solution that touched would have to coincide with the constant solution from then on.
Consider .
(a) Find all equilibrium solutions. (b) Find the general solution for , and determine which (if either) equilibrium is recovered from the family. (c) Solve the initial value problem and describe the behaviour of that solution as .
Show hint
Factor before integrating and use partial fractions. After solving for , test whether each constant solution can be produced by some value of your constant.
Show answer
(a) Equilibria. at and . Both constant functions satisfy the equation: the left side is and the right side is . So and are solutions.
(b) General solution for . Separate:
Partial fractions: since ,
(check: ). Integrating,
with (the sign is fixed because the quotient is continuous and never zero on the interval). Solve for :
Which equilibrium is recovered? Putting gives , so is absorbed into the family. But is not: would force , i.e. , which is impossible. So
is the complete list.
Interval of validity. The formula is only a solution where its denominator is nonzero. If then for every , so that member is defined on the whole real line. If the denominator vanishes at , and the member is really two solutions, one on and one on ; neither extends past the vertical asymptote.
(c) The initial value problem .
so
Check by direct differentiation. With and we have , , so by the quotient rule
Meanwhile
The two agree, and . Since always, the solution is valid on all real numbers.
Behaviour at the ends. As , , so . As , divide top and bottom by : . The solution decreases from the equilibrium level to the equilibrium level , approaching each asymptotically and reaching neither — exactly what uniqueness demands, since crossing would mean two distinct solutions through one point.
Solve the initial value problem
and state the largest interval on which the solution is guaranteed to exist and be unique. Justify the interval.
Show hint
The equation is already in standard form, so compute at once; the right-hand side is designed so that integrates in one step. For the interval, ask where and are continuous.
Show answer
Integrating factor. Here and . Since , work on :
Multiply through.
(The left side is : .)
Integrate.
Initial condition. , so
Check. By the quotient rule,
so
The last two terms cancel exactly, and .
Independent numerical check at . Then and . Also . The sum is , which equals . Correct.
Largest interval. The linear existence-uniqueness theorem requires and continuous on an open interval containing the initial point . Both and are continuous everywhere except at , so the maximal such interval is
and the theorem guarantees a unique solution on all of it. The formula is indeed defined and differentiable throughout . Note that no larger interval is admissible: any interval containing would break continuity of the coefficients, and itself is undefined at .
(a) Prove that if is differentiable on an interval and satisfies there, then for some constant . Name the theorem you use. (b) Deduce that the initial value problem , has exactly one solution. (c) A bacterial culture grows exponentially and doubles in hours. How long does it take to triple?
Show hint
For (a) you cannot just "separate and integrate", because that step assumes . Instead build a single auxiliary function whose derivative you can show is identically zero.
Show answer
(a) The proof. Define
Both factors are differentiable, so by the product rule
for every in , using the hypothesis .
A function whose derivative is zero on an interval is constant there. (This is the standard corollary of the Mean Value Theorem, and its hypotheses do hold here: take any in ; since is differentiable on all of it is continuous on the closed interval and differentiable on the open interval , so the theorem supplies a point in with .) The word "interval" is essential; on a disconnected domain the conclusion fails — a function equal to on one piece of its domain and to on another has zero derivative everywhere without being constant.
Hence for all , and since ,
Note that this argument never divides by , so it covers the zero solution too and shows the family is genuinely complete — there are no singular solutions here.
(b) Uniqueness. Suppose solves on an interval containing with . By part (a), . Evaluating at gives , so is forced: . Conversely that function does satisfy both the equation and the initial condition, since its derivative is . Existence and uniqueness are both established.
(c) Tripling time. Let with in hours. Doubling in hours means
Tripling requires , so
With and ,
Independent check. In hours the number of doubling periods is , and . Correct — and note the answer does not depend on , as an exponential model requires. (Sanity: tripling must take longer than one doubling, hours, and less than two doublings, hours.)
Consider the initial value problem , .
(a) Verify that and are both solutions on all of the real line. (b) Show that separating the variables produces one of them and loses the other, and explain why. (c) Produce infinitely many solutions. (d) Which hypothesis of the existence-uniqueness theorem fails, and which conclusion survives?
Show hint
Part (a) is pure substitution — be careful simplifying for negative . For (c), try gluing the two solutions of part (a) together and check that the join is differentiable.
Show answer
(a) Both are solutions.
The zero function. If then and . Both sides vanish, and .
The cubic. If then . On the other side,
valid for every real because the real cube root of is for negative as well. So everywhere, and . Both functions solve the same initial value problem.
(b) What separation gives. Here , and exactly at , so is an equilibrium — the solution that the next step will destroy. Assuming and separating,
The initial condition gives , so and . The equilibrium is not a member of this family — no constant makes identically zero — so it is a singular solution, lost precisely at the moment we divided by , which is zero at . This is the concrete danger the separable recipe's first step is designed to prevent.
(c) Infinitely many solutions. For each constant define
It is differentiable at : to the left the derivative is ; to the right as ; and the two one-sided difference quotients both tend to , so .
It solves the equation: for both sides are ; for , and ; at , .
It satisfies the initial condition: gives .
Since ranges over , this is an infinite family of distinct solutions to one initial value problem. (Taking recovers ; letting in spirit recovers .)
(d) The failing hypothesis. Write . Then
- is continuous everywhere, including at ;
- but is undefined at and unbounded near it, so is not continuous on any open rectangle containing .
The existence-uniqueness theorem requires continuity of both and ; only the first holds. Consequently the existence conclusion survives (a solution does exist — in fact many), while the uniqueness conclusion fails, exactly as parts (a) and (c) exhibit. Contrast with a linear equation, where continuity of and alone delivers uniqueness on the entire interval.
