Differential equations and separation of variables
A differential equation links a function to its rate of change. When dy/dx is a function of x times a function of y, put all the y's on one side and all the x's on the other, take antiderivatives, and you get an implicit formula for the solution. The arbitrary constant gives a whole family of solutions; a starting value picks one. Watch for solutions lost by dividing, and for places where the equation is undefined.
The lecture first corrects a sign from last time: the two constants in the sinxcosx example satisfyc2−c1=21, as on the antiderivatives page (transcript, p. 1). Then it ends the unit on applications of differentiation with a first taste of differential equations, a whole course of their own (18.03), and one method that fits the differentials of the last lecture exactly.
d y over y equals minus x d x which gives log the absolute value of y equals minus x squared over 2 plus c which gives y equals a e to the power minus x squared over 2, end of power
Exponentiating gives ∣y∣=ece−x2/2, so y=±ece−x2/2; together with y=0 (below), that is every constant a, positive, negative or zero (transcript, pp. 2–4). Check by differentiating: dxd(ae−x2/2)=a(−x)e−x2/2=−xy (p. 3). This bell-shaped function is also the normal distribution of probability (p. 3).
Loading graph…
Four members of the family y=ae−x2/2, the solutions of dy/dx=−xy, drawn from the formula. A starting value y(0) picks the member: y(0)=a.
where H(y)=∫dy/g(y) and F(x)=∫f(x)dx, functions of different variables. The separation step is the only clever one, and it works because Leibniz's notation lets you treat differentials like ordinary numbers (p. 3). H(y)=F(x)+c is an implicit equation for y. To make it explicit, invert: y=H−1(F(x)+c). The inverse is often messy, so the implicit form is sometimes left as it is (p. 3). In Example 2, f(x)=−x, g(y)=y, H(y)=ln∣y∣ and F(x)=−x2/2 (transcript, p. 3; the notes, p. 2, print f(x)=x, dropping the minus sign).
The lecture adds three remarks, and then redoes dy/dx=f(x) by separation, as in the first section (transcript, pp. 4–6):
Lost solutions. Dividing by yassumedy=0, so the method misses the boring but genuine solution y=0. Whenever you divide by something, check what happens if it is zero.
One constant is enough. Writing ln∣y∣+c1=−x2/2+c2 gives nothing new: c2−c1 is just one constant.
The constant changes shape. It is additive right after integrating, but after a nonlinear step such as exponentiating it becomes a multiplying constant, and in general it can end up anywhere in the formula.
The family y=ae−x2/2 is the general solution. Extra information about the values, not the rate of change, picks out one member: if y(0)=3, then ae0=3, so y=3e−x2/2 (pp. 5–6). Differential equations in applications usually express a balance, for example between the acceleration and the air resistance of a falling object (p. 6).
Worked example
Half-lives
The amount N of a radioactive isotope obeys dN/dt=−λN, and it halves every 8.0 days. Find N(t), λ, and the fraction left after 24 days.
Separate
dN/N=−λdt, so lnN=−λt+c and N=N0e−λt, where N0=N(0).
Rate
e−λ⋅8.0=21 gives λ=ln2/8.0≈0.0866 per day.
After 24 days
24 days is three half-lives: N/N0=e−3ln2=(21)3=81.
Find curves whose tangent line, at every point, is twice as steep as the ray from the origin to that point (transcript, pp. 7–8; notes, p. 3). The ray to (x,y) has slope y/x, so
Example 3
dxdy=x2y⇒ydy=x2dx⇒ln∣y∣=2ln∣x∣+c⇒y=ax2
In words
d y over d x equals 2 y over x which gives d y over y equals 2 d x over x which gives log the absolute value of y equals 2 log the absolute value of x plus c which gives y equals a x squared
The solutions are parabolas, opening up or down, plus y=0. Check: dy/dx=2ax=2ax2/x=2y/x for every a (p. 8). (The notes' list of examples includes "y=−2y2" where they mean y=−2x2, notes, p. 3.)
A subtlety: the equation is undefined at x=0 (we divided by x). The equation gives no slope there, so the value at x=0 does not fix the solution: a curve can come in along one half-parabola and leave along a different one. Think of the solutions as half-parabolas leaving the origin (pp. 8–9).
Now find the curves that cross all those parabolas at right angles (transcript, pp. 9–10; notes, p. 4). Their slope is the negative reciprocal of the parabola's slope 2y/x:
Example 4
dxdy=−2yx⇒2ydy=−xdx⇒y2=−2x2+c⇒2x2+y2=a2
In words
d y over d x equals minus x over the quantity 2 y, which gives 2 y d y equals minus x d x which gives y squared equals minus x squared over 2 plus c which gives x squared over 2 plus y squared equals a squared
This time not every constant works: c must be positive, so write it as a2. The curves are ellipses, with horizontal semi-axis 2a and vertical semi-axis a: a little wider than they are high (p. 9). (The notes say the ratio of the axes is 2; it is 2, notes, p. 4.)
Solved explicitly, y=±a2−x2/2: an ellipse is not a function, so each solution is a top half or a bottom half. Each one stops at y=0, where x=±2a and the slope −x/(2y) is infinite: the equation itself predicts a vertical tangent there (p. 10). Before, we had to add solutions back; here some constants give none at all.
Worked example
A solution that runs out
Solve dy/dx=y2 with y(0)=1. For which x does the solution make sense?
Separate
dy/y2=dx, so −1/y=x+c. At x=0, y=1 gives c=−1, so y=1−x1.
Check and interpret
dy/dx=(1−x)21=y2. The solution grows faster and faster and becomes infinite at x=1, although the equation itself looks harmless everywhere. So the solution makes sense only for x<1, the interval around the starting point where it stays finite. Separation finds such solutions, but you have to read off where they live.
dy/dx=f(x) is solved by an antiderivative. For dy/dx=f(x)g(y), separate: dy/g(y)=f(x)dx, integrate to H(y)=F(x)+c, and invert if you can.
Example: dy/dx=−xy gives y=ae−x2/2 for every constant a; y(0) fixes a.
One constant is enough, and after exponentiating it multiplies instead of adding.
Dividing can lose solutions (y=0); points where the equation is undefined (x=0, y=0) can make solutions branch or stop; and sometimes not every constant gives a solution.
Geometry: curves whose tangent is twice as steep as the ray from the origin are the parabolasy=ax2; the curves at right angles to them are the ellipsesx2/2+y2=a2.
The constant that labels a solution in a family (y = a e^(−x²/2), y = ax², or a² in the ellipses); in the cosmology note, a(t) is the scale factor of the universe. Say it: “a”.
A tiny change in a variable, such as dx, or the matching change in a function along its tangent line, dy = f′(x) dx. Explained in Differentials and antiderivatives.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
A rule that acts on a function, vector or state and turns it into another one, such as 'take the derivative'. Explained in The chain rule and higher derivatives.
Anything that swings back and forth about a balance point with a restoring force proportional to how far it is pulled away, like a spring. Explained in The harmonic oscillator.
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.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
Of a relation or equation: using only first powers of the unknowns, so doubling the cause doubles the effect and effects simply add. Explained in Solving and rearranging formulas.
Replacing a function near a point by the best-matching expression with squares and products of the small changes, using first and second derivatives. Explained in Linear and quadratic approximations.
Problems in which several quantities change together, and differentiating the equation that links them links their rates of change. Explained in More max–min, and related rates.
If a function is smooth between two points, somewhere between them its slope equals its average slope over the whole interval. Explained in The mean value theorem and inequalities.
The unknown cause of the speeding up of the universe's expansion, acting like an energy of empty space that does not thin out. Explained in Dark energy and the accelerating universe.
A constant term Einstein added to his equations of gravity, equivalent to an energy density of empty space that never changes. Explained in Dark energy and the accelerating universe.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
To be the largest contribution, so that the others hardly matter.
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).