First-order linear equations and integrating factors
A first-order linear equation is linear in y and y′: a(x)y′ + b(x)y = c(x), homogeneous if the right side is zero. Its standard linear form is y′ + p(x)y = q(x), and the sign of p matters. Such equations model conduction (Newton's law of cooling, dT/dt = k(T_e − T)), diffusion, mixing, radioactive decay and bank interest. They can always be solved: multiply both sides by the integrating factor u = e^(∫p dx), which turns the left side into (uy)′, then integrate. With constant k the temperature is T = e^(−kt)∫k T_e e^(kt) dt + Ce^(−kt): a steady-state part plus a transient that dies away because k > 0, so in the long run the initial condition does not matter.
After two lectures without solving a single equation, 18.03 now solves one of the most important kinds: the first-order linear equation, important because it can always be solved and because it turns up in many models (transcript, p. 1). With separation of variables it is one of the two basic methods.
like a linear equation a1y1+a2y2=c in two variables. If the right side is zero it is homogeneous (p. 2). Dividing by a(x) gives the standard linear form (p. 2):
The equation could also be written in the general first-order form y′=−p(x)y+q(x), but this course always uses the linear form: getting the sign of p wrong gives disastrously wrong answers (pp. 2–3).
Linear equations model temperature and concentration (conduction and diffusion), mixing, radioactive decay, bank interest, and some motion problems such as a rocket (transcript, pp. 3–4).
Conduction. A metal box with partly insulated walls sits in a water bath at temperature Te; its inside has temperature T. Heat flows in by conduction at a rate proportional to the temperature difference, Newton's law of cooling (pp. 4–6):
Newton's law of cooling
dtdT=k(Te−T)
In words
d capital T over d t equals k the quantity capital T sub e minus capital T
Write the difference this way round so that the conductivityk is positive: if the outside is warmer, T must rise (p. 6). An initial conditionT(0)=T0 completes the problem (p. 6).
Diffusion. The same equation with concentrations: a salt solution of concentration C inside a semi-permeable membrane, in a bath of concentration Ce, gives dC/dt=k1(Ce−C) (pp. 6–7). One equation handles both situations: that is the power of the method (pp. 7–8). In standard linear form the cooling law is dT/dt+kT=kTe, and if both k and Te are allowed to vary with time it is a general linear equation (p. 8).
No arbitrary constant is needed: one integrating factor is enough (p. 11). The method (pp. 11–12): put the equation in standard linear form; find u; multiply both sides by u; then integrate, uy=∫uqdx+C. The common mistakes: not using the standard form, and forgetting to multiply the right side q by u (pp. 13–14).
Example 1.xy′−y=x3. In standard form y′−x1y=x2, so u=e−lnx=1/x (pp. 12–13). Multiplying both sides, x1y′−x21y=x, and the left side is (xy)′, which is worth checking with the product rule (pp. 12–13). Integrating, y/x=2x2+C, so (p. 13)
(On x>0, where lnx is defined. Mattuck hesitates between x3 and x2 on the right of the original equation; his working, with x2 in the standard form, belongs to x3, used here.)
Example 2.(1+cosx)y′−(sinx)y=2x. In standard form p=−sinx/(1+cosx), whose integral is ln(1+cosx), so u=1+cosx, and multiplying by u gives back the original equation (pp. 13–14). That is not wasted work: the left side is now known to be ((1+cosx)y)′ (p. 15). So (1+cosx)y=x2+C, and with y(0)=1, C=2 (p. 15):
Example 2
y=1+cosxx2+2
In words
y equals the quantity x squared plus 2, all over the quantity 1 plus cos x
valid on −π<x<π: the solution blows up at x=±π, where 1+cosx=0.
Constant coefficients: steady state and transient#
For the cooling law with constant k, T′+kT=kTe; note the k on the right, which units demand (transcript, p. 16). The integrating factor is ekt, so (ektT)′=kTeekt and (pp. 16–17)
Solution of the cooling law
T=e−kt∫kTe(t)ektdt+Ce−kt
In words
capital T equals e to the power minus k t the integral of k capital T sub e (t) e to the power k t d t plus capital C e to the power minus k t
With an initial value it is cleaner to use a definite integral from 0 to t, so that C=T0 (p. 17). Because k>0, the term Ce−kt dies away as t→∞: it is the transient. What remains is the steady-state solution, the same whatever the initial temperature: in the long run the initial condition makes no difference (pp. 17–18).
Loading graph…
Newton's law of cooling with Te=20 °C and k=0.05 per minute, computed from T=20+(T0−20)e−kt: whatever the starting temperature, the transient (T0−20)e−kt dies away and T approaches the steady state 20 °C.
Worked example
A cooling cup of coffee
Coffee at 90 °C stands in a room at 20 °C and obeys Newton's law with k=0.05 per minute. Find T(t), the temperature after 20 minutes, and when it reaches 40 °C.
Solve
T′+0.05T=0.05×20. With u=e0.05t: (e0.05tT)′=e0.05t, so e0.05tT=20e0.05t+C and T=20+Ce−0.05t. T(0)=90 gives C=70.
Numbers
T(20)=20+70e−1≈45.8 °C. T=40 when e−0.05t=2/7, t=ln(3.5)/0.05≈25.1 minutes.
A differential equation with only the first derivative, in which the unknown and its derivative appear only to the first power, never multiplied together.
A way to solve a differential equation by putting everything with one variable on one side, the rest on the other, and integrating both sides. Explained in The rocket equation.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.
How easily something flows through a material: electric current, for electrical conductivity, or heat, for thermal conductivity. Explained in Current, resistance and DC circuits.
The state of a system at the starting time, such as its position and speed, which picks out one solution of its equation. Explained in Introduction to first-order systems.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
The integral of a function between two limits, a single number: the area under the graph between them, with parts below the axis counted negative. Explained in Definite integrals and Riemann sums.
A condition that no longer changes with time, or for a driven system the lasting motion left once start-up effects die away. Explained in Driven oscillators and resonance.
In maths, to grow without limit; to become infinite.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).