Almost every quantitative law in science says something about a rate of change rather than about a value, so the thing it pins down is a function and not a number.
Ernest Rutherford and Frederick Soddy found in 1902 that a radioactive sample loses atoms at a rate proportional to how many it still has. That sentence is not a formula for the number of atoms. It is a constraint linking the unknown function to its own derivative, , and the work of extracting from it is what this course is about. Newton's second law is the same kind of statement, one derivative further along: force is mass times acceleration, and acceleration is the second derivative of position, so every mechanical problem arrives as a constraint on and rather than as a recipe for .
This lesson assumes the derivative rules and definite integration from the previous course, and nothing else. It sets up the vocabulary, then shows the one thing that can always be done to a differential equation even when it cannot be solved.
A law of change is an equation for a curve
A differential equation is an equation relating an unknown function to one or more of its derivatives. A solution is a function that satisfies it on some interval, and the word "some" is doing real work there, as the end of the lesson shows.
The distinction from ordinary algebra is worth making slowly, because it is where beginners lose their footing. Solving produces two numbers, and , and checking them is arithmetic. Solving produces a family of functions, for every constant , and checking one is differentiation. The unknown lives in a space of functions, so the answer is a curve, or rather infinitely many curves, one through every point of the plane.
We restrict to ordinary differential equations, where the unknown depends on one variable, almost always time. If the unknown depends on several variables, the derivatives are partial and the equation is a partial differential equation: the heat equation and the wave equation are the standard examples, and they need machinery beyond this course. Everything here is one independent variable, which is enough for mechanics, circuits, chemical kinetics and population models.
Order, linearity, and why the labels stick
Two labels decide which method will work, so they are worth fixing before any method exists.
The order is the highest derivative that appears. is first order. The spring equation is second order. Order is not a matter of taste: it counts how much information you must supply to select one solution out of the family, and it is why a projectile needs both a launch position and a launch velocity while a decaying sample needs only its starting mass.
An equation is linear if the unknown and its derivatives appear only to the first power, never multiplied together, and never inside a function like or a square root. The general linear equation of second order is
where the coefficients may be any functions of at all. Linearity is a statement about how enters, not about how enters: is linear, and is not. If is zero the linear equation is called homogeneous, and if not, the term is the forcing.
Linear equations are the ones with a complete theory, because solutions can be added: if and both solve a homogeneous linear equation, so does . Try that on . With and , both genuine solutions, the sum satisfies nothing at all. Nonlinear equations lose superposition, and with it most of the algebra, which is why the second half of this course spends its effort on reading nonlinear solutions rather than writing them.
Verifying a solution
Checking a candidate needs no theory: differentiate it, substitute, and see whether the two sides agree for every in the interval, not just at one point.
Example. Show that solves , and find and .
Differentiating, and . Substituting,
The terms give and the terms give , so the left side is identically zero and the candidate is a solution. At , and .
Now you. Show that solves for every pair of constants, and find and in terms of and .
Answer
and . The coefficient is and the coefficient is , so the equation holds for any and . At , and .
Verification is cheap and solving is expensive, which is a lopsidedness worth exploiting. Guessing a form, substituting it, and letting the equation fix the constants is a legitimate and heavily used method, and it is exactly how the constant-coefficient theory later in this course is built.
Why solutions come in families
The simplest differential equation is , whose solution is an antiderivative of . There is never exactly one: antiderivatives differ by a constant, so the answer is a family , and that single arbitrary constant is the residue of everything the equation does not know. The equation constrains the slope at every instant and says nothing about where the curve starts.
That generalises. An equation of order has a general solution carrying arbitrary constants, and a particular solution is one member of the family with the constants fixed. The count matches the order because integrating times introduces constants, and it is the reason order is the first thing to identify.
To select a member you supply extra data. An initial value problem gives the value of the function and of its first derivatives at one instant . For a second order equation that is a position and a velocity, which is precisely the state Newtonian mechanics says determines a trajectory. Supplying data at two different instants instead, such as and , makes it a boundary value problem, which behaves quite differently: such problems can have no solution or infinitely many, and this course stays with initial conditions.
Example. The general solution of is , which you can check by substituting. Solve the initial value problem with and , and give the amplitude of the resulting oscillation.
Setting in gives . Differentiating, , so and . The particular solution is . Combining the two terms into a single sinusoid gives amplitude , so the motion runs between and .
Now you. For the same equation, solve the initial value problem with and , and give the amplitude.
Answer
, and gives . So , with amplitude .
Building the equation from the words
Most of the difficulty in applying this subject is not solving the equation but writing it down, and writing it down is always the same move: express the rate of change of the quantity as the sum of everything adding to it minus everything removing it.
Take the decay law. In one year a radiocarbon sample loses a fixed fraction of whatever it has, so , and the constant is fixed by the measured half-life of years for carbon-14. Setting in the solution gives per year. That number then dates anything organic: a sample holding per cent of its original carbon-14 has been dead for years.
Take a falling body with air resistance. Gravity pulls down with force , drag opposes motion with a force that at everyday speeds is close to proportional to , and Newton's law assembles them into
first order, nonlinear because of the square, and already interesting before it is solved: whenever reaches the derivative vanishes and the speed stops changing. That terminal speed is , read off the equation itself without any solving. A skydiver in a spread posture has near m, giving m s⁻¹, or about km h⁻¹, which is the figure the sport quotes.
Take a mixing tank. Brine at kilograms per cubic metre enters at cubic metres per minute, the tank holds cubic metres and is stirred so its concentration is uniform, and the outflow matches the inflow. The salt mass changes at the rate it enters minus the rate it leaves, : first order and linear, and the model for every stirred reservoir from a chemical reactor to a lake.
Direction fields: the family without the formula
Here is the move that makes an unsolvable equation useful. A first order equation hands you the slope of the solution at every point of the plane before you know any solution. Draw a short segment of that slope at each of a grid of points and you have a direction field: solutions are exactly the curves that stay tangent to it everywhere, and the eye assembles them from the picture.
Consider . At the point , the slope is . On the line every slope is zero, so solutions crossing that line do so horizontally. Above it slopes are negative and below it positive, so every solution is pushed towards the line from both sides. The line itself is nearly a solution: trying gives and , so it is a solution exactly. The picture says that whatever a solution does early on, it ends up hugging , and this is right: the general solution turns out to be , and the term dies.
A curve on which the slope takes one fixed value is an isocline, and sketching a few is the fast way to draw a field by hand. For the isoclines are the straight lines , one per slope .
Example. For , find the slope at , at and at , and say what a solution starting at does.
The slopes are , then , then exactly . Since does not involve , the slope depends only on the height, so each horizontal line carries a single slope. The lines and carry slope zero and are constant solutions. Between them the slope is positive, so a solution starting at rises, and since it can never cross the constant solution at , it approaches from below without reaching it. Above slopes are negative, so those solutions fall to as well.
Now you. For , give the slope at , and , and say what happens to a solution starting at .
Answer
The slopes are , and . The constant solution is , and a solution starting at has negative slope, so it falls, slowing as it goes, and approaches from above without crossing it.
What is actually solvable
An honest course says early what its methods will not reach. Almost every differential equation you can write down has no solution expressible in elementary functions. is about as simple as an equation gets, and its solutions require Bessel functions; pulls in the error function immediately. This is not a gap in the textbooks. It is the same fact as most integrals having no elementary antiderivative, since integration is the special case .
So the subject has three tools rather than one, and they will be used throughout. Exact solution, where a formula exists and is worth having. Qualitative analysis, which reads the long-term behaviour off the equation itself, as the terminal speed and the direction field did above. Numerical solution, which produces a table of values to whatever accuracy is paid for. A good answer often uses all three: the numerics give the curve, the qualitative argument says the curve is believable, and the exact solution of a simplified version says what controls it.
Solutions also have limited lifetimes. with has the solution , which is perfectly well behaved near and infinite at , even though the equation itself shows no sign of trouble there. A differential equation is a local statement, and asking where its solutions stop existing is a real question, taken up in a later lesson.
The next step is the first class of equations that yields completely. When the right side factors into a function of times a function of , the variables can be separated and both sides integrated, which turns the decay law, the cooling law and the logistic curve into three lines of calculus each.