Water flows into a tank through one pipe and out through another. At any moment you can read the water level and how fast it is changing, but neither number by itself tells you the level ten minutes from now. What the physics supplies is a rule for the rate of change, and the level over time is a function that has to obey that rule. This lesson sets up the words used to describe such equations, from ordinary and partial to order, linearity and the two meanings of homogeneous, and shows how to check that a proposed function really is a solution.
Key terms
Differential equation
Definition A differential equation is an equation that relates an unknown function to one or more of its derivatives, and possibly to the independent variable and to known functions. The unknown function is the function the equation is solved for, so the answer is a whole function rather than a number. A solution on an interval is a function that has every derivative appearing in the equation at each point of and makes the equation true at every point of .
In plain words The equation is a rule that the unknown function and its rates of change must obey everywhere on an interval. Solving it means finding functions that follow the rule, and checking a candidate means substituting it into the equation.
Example Take the equation for an unknown function , where . The candidate has derivative by the chain rule, and is also , so
holds for every real . The same function has . As a model of decay it would be used for , but as a mathematical solution it works on the whole real line. The candidate fails. Its derivative is , while , and the two agree only at . Agreement at a single point is not agreement on an interval, so is not a solution.
Ordinary and partial differential equations
Definition An ordinary differential equation, or ODE, is a differential equation whose unknown function or functions depend on a single independent variable, so only ordinary derivatives such as and appear. A partial differential equation, or PDE, involves an unknown function of two or more independent variables together with some of its partial derivatives. For a function , the partial derivative is the rate of change in while is held fixed, and is the rate of change in while is held fixed.
In plain words Count the inputs of the unknown function. One input, often time, gives an ODE. Several inputs, such as position and time, give a PDE, and each partial derivative says which input moves while the others stay put.
Example A falling object has height at time , measured upward, and . Its velocity is and its acceleration is , so ignoring air resistance it obeys the ODE , where is the gravitational acceleration. The temperature at position along a thin rod at time depends on two inputs, and a standard model for it is the heat equation
with a constant diffusivity . It is a PDE, and both of its derivatives come from the same function .
Order of an equation
Definition The order of a differential equation is the order of the highest derivative of the unknown function that appears in it. For a PDE it is the highest total order of the partial derivatives that appear. The power to which a derivative is raised has no effect on the order, so the order of an equation is a different thing from the degree of a polynomial.
In plain words Look for the derivative taken the most times. How often the unknown has been differentiated sets the order, while squares or cubes of terms say nothing about it.
Example For with , the equation is first order, even though it contains a square and a cube. The equation is second order, even though every term appears only to the first power. The heat equation above is second order, because appears. An equation of order usually needs pieces of starting data to single out one solution, such as a starting position and a starting velocity for a second-order equation of motion.
Dependent and independent variables
Definition In an equation for an unknown function , the input is the independent variable and the output is the dependent variable, since its value depends on the chosen . A parameter is a constant that specifies the model, such as a mass, a damping coefficient or a cross-sectional area. It stays fixed while varies, though it may differ from one version of the model to another. Primes always mean derivatives with respect to the independent variable, so that variable has to be named, as in or .
In plain words The independent variable is the input you choose, often time. The dependent variable is the quantity you track. Parameters are the fixed settings of the model.
Example Return to the tank. Let be the water level in meters at time in minutes, let and be the volume flow rates in cubic meters per minute, and let the tank have a constant cross-sectional area in square meters. A change in volume spread over the area changes the level by that volume divided by , so
Both sides are measured in meters per minute. Here is the independent variable, is the dependent variable and is a parameter. If the outflow through a drain at the bottom depends on the level, for example with a constant , the equation still has the single dependent variable , but it becomes nonlinear.
Linear and nonlinear equations
Definition An ODE of order for is linear if it can be written as
that is, , where , the coefficients and the right side are given functions of alone, and is not the zero function. An equation that cannot be written this way is nonlinear. Coefficients may vary with , but and its derivatives may not appear to powers other than the first, in products with each other or inside other functions. A PDE is linear when it has the same form in and its partial derivatives, with coefficients that depend only on the independent variables.
In plain words In a linear equation the unknown and its derivatives enter in the simplest possible way, each multiplied by a known function of the independent variable and then added up. Linearity is a property of the equation, not of the graphs of its solutions.
Example The equations and are linear, and so is the heat equation. The cosine in the second one is a known coefficient, because it depends only on . The equations , and are nonlinear, because the unknown sits inside a cosine, is squared, or multiplies its own derivative. Linear does not mean that the solution graphs are straight lines. The curve solves the linear equation , since .
Homogeneous and nonhomogeneous linear equations
Definition A linear equation as above is homogeneous if its right side is zero for every in the interval, and nonhomogeneous if is not the zero function there. The function is called the forcing term or input. For a homogeneous linear equation the zero function is a solution, and if and are solutions, then so is for all constants and . For a nonhomogeneous one the zero function is not a solution, and the difference of two solutions solves the homogeneous equation with the same left side.
A second, unrelated meaning applies to first-order equations with . Such an equation is called homogeneous when its right side depends only on the ratio , so that for . An equation of this kind can be nonlinear.
In plain words For a linear equation, homogeneous means that nothing drives the system from outside. In the ratio sense, it means the slope stays the same when and are scaled by the same nonzero factor. When you meet the word, ask which of the two structures is meant.
Example The equation is homogeneous. Its solutions include the zero function, and sums and multiples of them have the same form. The equation is nonhomogeneous, and the zero function fails it, because does not vanish on any interval. The two meanings can disagree. The equation
is homogeneous in the ratio sense, with . Written as the linear equation , it is nonhomogeneous, because its forcing term is . The equation is homogeneous in the ratio sense and nonlinear.
Check yourself
- Classify the equation for and the equation for , where and . For each, say whether it is ordinary or partial, give its order, and say whether it is linear.
Show the answer
The first is an ODE, because depends only on . Its highest derivative is , so it is third order. It is linear, with coefficients and and forcing term , and since the forcing term is not zero it is nonhomogeneous.
The second is a PDE, because depends on and and partial derivatives appear. Its highest derivative is second order, and the term makes it nonlinear.
- A classmate says that is second order because of the square, and that is nonlinear because it contains a sine. Here . Correct both claims.
Show the answer
The highest derivative in is , so the equation is first order. The square does not change the order. It makes the equation nonlinear, which is a separate property.
In the sine is a coefficient that depends only on , and and appear to the first power, so the equation is linear, first order and homogeneous. By contrast, the equation is nonlinear, because there the unknown is inside the sine.
- Check that and both solve . Is a solution? Which equation does solve?
Show the answer
For the derivative is , and . For the derivative is , and adding gives . Both are solutions on the whole real line.
The sum gives , which is not , so the sum is not a solution. Each solution already produces the forcing term , so together they produce . That is the practical meaning of nonhomogeneous.
The difference gives , so it solves the homogeneous equation . For that equation sums of solutions do work. If and solve it, then splits into plus , which is .