Differential Equations Basics


Differential Equations Basics

Michael
Hello, everyone, and welcome. Today we are building the basic ideas behind differential equations. These equations are important because they express general laws of nature and apply to physical, biological, social, economic, and other dynamical systems.

Maria
A famous starting point is Newton's effort to describe the motion of particles. The key idea is that if we identify the important quantities in a system and how quickly they change, we can often express their relationship mathematically as a differential equation.

Michael
Suppose y equals f of t, so y is a function of the independent variable t. The change in y with respect to t is represented by the derivative dy over dt. A differential equation relates variables such as t and y to one or more derivatives, such as dy over dt or d-squared-y over dt-squared.

Maria
So, in general, a differential equation is a relation involving independent variables, dependent variables, and first or higher-order derivatives. If t is independent and y is dependent, then any relation involving t, y, y-prime, y-double-prime, and so on can be a differential equation.

Michael
The first major classification depends on the number of independent variables. With exactly one independent variable, we have an ordinary differential equation, or ODE. With more than one independent variable, we have a partial differential equation, or PDE.

Maria
For an ODE, imagine that f of t is defined on an open interval I, say from a to b. The equation involves t, f of t, and one or more ordinary derivatives of f. The derivatives are ordinary derivatives because there is only one independent variable.

Michael
Here are several ODE examples. First, dy over dt equals alpha y, where alpha is a positive real constant. Second, d-squared-y over dt-squared equals g. Third, dy over dt equals 3y-squared sine of t plus y. And fourth, m times d-squared-y over dt-squared equals mg minus alpha dy over dt.

Maria
Each example represents a different kind of relationship. The first can model population growth at rate alpha. The second can describe a particle falling under gravity, with g representing gravitational force. The third can represent a particular type of particle motion.

Michael
The fourth equation adds a physical effect that the second equation ignores: air resistance. In m times y-double-prime equals mg minus alpha y-prime, the term alpha y-prime represents a frictional force due to air, assumed to be proportional to the particle's velocity. If alpha is zero, the fourth equation reduces to the second.

Maria
That example shows why forming the equation carefully matters. The equation can provide useful information about a system, but only if important factors, such as gravity or friction, have been incorporated into the model.

Michael
Next is the order of a differential equation. The order is the order of the highest derivative appearing in the equation. So dy over dt equals alpha y is first order, because the highest derivative is y-prime.

Maria
The equation y-double-prime equals g is second order. The equation dy over dt equals 3y-squared sine of t plus y is first order, while m y-double-prime equals mg minus alpha y-prime is second order, even though it also contains a first derivative. We always look for the highest derivative.

Michael
Now let's contrast ODEs with PDEs. In a PDE, the dependent variable depends on more than one independent variable, so we use partial derivatives. For example, let u be a function of time t and two spatial coordinates, x and y.

Maria
Because u depends on t, x, and y, derivatives such as partial u over partial t and partial-squared-u over partial x-squared appear. The partial derivative measures change with respect to one independent variable while the others are treated as part of the function's variable setting.

Michael
Three important PDEs are the following. First, partial-squared-u over partial x-squared plus partial-squared-u over partial y-squared equals zero. Second, k times the sum of those two second spatial derivatives equals partial u over partial t. Third, k times that same spatial sum equals partial-squared-u over partial t-squared.

Maria
These are classical equations with wide applications in fluid dynamics, theoretical physics, and related fields. The first is Laplace's equation, the second is the two-dimensional heat equation, and the third is the two-dimensional wave equation. They are called two-dimensional here because the spatial variables are x and y.

Michael
For the rest of the basic discussion, we focus on ordinary differential equations. An ODE of order n can be written implicitly as F of t, y, y-prime, y-double-prime, and continuing through y to the n equals zero. Here, y to the n means the nth derivative of y with respect to t.

Maria
More formally, F is a smooth function of n plus 2 variables: t, y, and the derivatives from y-prime through y to the n. The function F creates a relation among all of them. But because the equation is implicit, one written equation can sometimes represent several possible differential equations.

Michael
Consider y-prime cubed minus 3t-squared y-prime-squared plus 3y y-prime equals zero. Every term contains y-prime, so we can factor it as y-prime times the quantity y-prime-squared minus 3t-squared y-prime plus 3y equals zero.

Maria
That gives y-prime equals zero, or the quadratic expression equals zero. Solving the quadratic gives y-prime equals 3t-squared plus or minus the square root of 9t to the fourth minus 12y, all divided by 2. So the original relation describes three possible first-order differential equations: one from y-prime equals zero and two from the quadratic.

Michael
To avoid that ambiguity, we usually assume the equation is solved for its highest derivative. For an nth-order equation, the normal, or canonical, form is y to the n equals g of t, y, y-prime, continuing through y to the n minus 1. This form represents a single differential equation rather than a collection of possibilities.

Maria
That brings us to the definition of a solution. A function phi of t is a solution on an interval I if two conditions hold. First, phi is defined and n times differentiable on I, so all the derivatives required by the equation exist.

Michael
Second, phi must satisfy the differential equation for every t in that interval. It is not enough for the equation to work at one isolated point. If either differentiability or satisfaction of the equation throughout the interval fails, phi is not a solution on that interval.

Maria
The main goal in studying an ODE is usually to find the unknown dependent variable explicitly in terms of t. An explicit solution might be written using elementary functions, including polynomials, trigonometric functions, exponentials, or combinations of these.

Michael
When an explicit formula cannot be found, we may instead seek an implicit relation between t and y. If that is also not available, analytical methods can still help us study the behavior or qualitative properties of solutions without writing down an exact formula.

Maria
Before solving an equation, it is useful to classify it. One classification depends on the dependent variable and distinguishes linear from nonlinear equations. Another depends on the conditions imposed: prescribed initial conditions produce an initial value problem, or IVP, while prescribed boundary conditions produce a boundary value problem, or BVP.

Michael
For linearity, consider the normal form y to the n equals g of t, y, y-prime, through y to the n minus 1. The equation is linear when g is linear in the dependent-variable arguments and their derivatives. We do not need to ask whether g is linear in t, because t is the independent variable.

Maria
For example, y-prime plus k y equals zero is linear, because y-prime and y appear linearly. The equation y-prime equals y-squared is nonlinear because y appears squared. But expressions can sometimes look deceptively simple, so an operator test gives a reliable method.

Michael
For a second-order example, define L of y as y-double-prime plus p of t times y-prime plus q of t times y. An operator L is linear if, for all functions x and y and all constants alpha and beta, L of alpha x plus beta y equals alpha L of x plus beta L of y. If that identity fails, the operator and the corresponding differential equation are nonlinear.

Maria
Take y-prime plus the absolute value of y equals zero. Define L of y as y-prime plus absolute value of y. The derivative part behaves linearly, but the absolute-value term does not generally satisfy absolute value of alpha x plus beta y equals alpha absolute value of x plus beta absolute value of y.

Michael
Therefore L does not satisfy the linearity condition for all possible functions and constants. The equation y-prime plus absolute value of y equals zero is nonlinear. Similarly, y-prime-squared plus y equals zero is nonlinear because the derivative is squared.

Maria
In contrast, y-prime plus k y equals zero and y-prime plus a of t times y equals b of t are linear, assuming the stated coefficient functions are appropriate, such as continuous functions on the interval. The distinction is not just terminology; it affects the methods available.

Michael
Linear differential equations have several general methods for finding solutions. Nonlinear equations are usually much more difficult, and there is no single general method that solves all of them. The particular nonlinearity determines how the equation must be handled.

Maria
That is why, for nonlinear equations, approximate solutions and qualitative analysis are especially useful. Instead of always seeking an exact explicit formula, we may study properties and behavior of the solutions using analytical methods.

Michael
So the main map is this: differential equations relate variables and their derivatives; one independent variable gives an ODE, while several give a PDE. We classify ODEs by order, by whether they are linear or nonlinear, and by whether the problem has initial or boundary conditions.

Maria
And a valid solution must be sufficiently differentiable and satisfy the equation at every point of its interval. With those foundations in place, later work can develop existence, uniqueness, solution methods, and related properties for ordinary differential equations before moving on to partial differential equations.

Ask anything
We've read this whole study set, so questions about it get the best answers.