Introduction to Differential Equations
Understand the fundamentals of differential equations, their classification and solution methods, and how they model real‑world physical and biological systems.
Summary
Read Summary
Flashcards
Save Flashcards
Quiz
Take Quiz
Quick Practice
What is the general definition of a differential equation?
1 of 24
Summary
Introduction to Differential Equations
What is a Differential Equation?
A differential equation is a mathematical equation that relates an unknown function to one or more of its derivatives. In other words, it's an equation involving a function and how that function changes.
The key insight is this: differential equations describe the rate of change of a quantity. They tell us how fast something is changing, and how that rate of change depends on the quantity itself and possibly on other variables (like time or position).
For example, the equation $\frac{dy}{dt} = 2y$ relates a function $y(t)$ to its derivative $\frac{dy}{dt}$. This particular equation says: "the rate at which $y$ changes is proportional to $y$ itself."
What Does It Mean to Solve a Differential Equation?
Solving a differential equation means finding a function (or family of functions) that satisfies the given relationship.
When we solve $\frac{dy}{dt} = 2y$, we're looking for function(s) $y(t)$ such that when we take the derivative, we get exactly $2y$. It turns out that $y(t) = Ce^{2t}$ (for any constant $C$) is a solution—try differentiating it and you'll see that $\frac{d}{dt}(Ce^{2t}) = 2Ce^{2t} = 2y$. ✓
The word "family" is important: differential equations typically have many solutions, differing by constants. We'll see later how to pin down a specific solution using additional information.
Types of Differential Equations
Ordinary vs. Partial Differential Equations
There are two main types of differential equations, distinguished by how many independent variables appear:
Ordinary Differential Equations (ODEs) involve an unknown function of a single independent variable. For instance, $y(t)$ might depend only on time $t$, or $y(x)$ might depend only on position $x$. The derivatives are written as ordinary derivatives like $\frac{dy}{dt}$ or $y'$.
Partial Differential Equations (PDEs) involve a function of multiple independent variables, and we take partial derivatives with respect to those variables. For example, $\frac{\partial u}{\partial t} + \frac{\partial u}{\partial x} = 0$ involves a function $u(t,x)$ that depends on both time and space.
This course focuses on ordinary differential equations. PDEs are more complex and typically studied in advanced courses. The mathematical framework for ODEs—their solutions, their behavior, and methods for solving them—is the foundation you need.
Classification of Ordinary Differential Equations
Once we know we're dealing with an ODE, we classify them further in two important ways: by order and by linearity.
Order of an ODE
The order of a differential equation is the highest derivative that appears in the equation.
A first-order ODE contains only the first derivative $y'$ (or $\frac{dy}{dt}$). Example: $y' + 2y = t$
A second-order ODE contains the second derivative $y''$ (or $\frac{d^2y}{dt^2}$). Example: $y'' + 3y' + 2y = 0$
Order matters because it tells you something important: a first-order ODE needs one piece of additional information to have a unique solution, and a second-order ODE needs two pieces of information. We'll explore this more in the next section.
Linearity of an ODE
An ODE is linear when:
The unknown function $y$ and all its derivatives appear only to the first power
They are not multiplied together
Linear equations look like: $y'' + 3y' + 2y = e^t$ or $y' + 5y = \sin(t)$
Nonlinear equations have products or powers, like: $y' = y^2$ or $yy'' + y' = 1$
Linear ODEs are much easier to solve systematically, and we have powerful general methods for them. Nonlinear ODEs are often more difficult and may require specialized techniques.
Homogeneous vs. Non-Homogeneous Linear ODEs
For linear equations specifically, we make one more distinction based on what's on the right-hand side:
A homogeneous linear ODE has zero on the right-hand side: $y'' + 4y = 0$ or $y' + 2y = 0$
A non-homogeneous linear ODE has a non-zero term on the right: $y'' + 4y = \cos(t)$ or $y' + 2y = e^t$
This distinction matters because we solve them differently. For non-homogeneous equations, we typically find the solution to the homogeneous version first, then add a particular solution to the non-homogeneous part.
Initial and Boundary Conditions
Why Additional Information is Needed
A differential equation by itself typically has infinitely many solutions (a family of solutions). For example, $\frac{dy}{dt} = 3y$ has solution $y(t) = Ce^{3t}$ for any constant $C$. To pin down which particular solution we want, we need additional information.
This is where initial conditions or boundary conditions come in.
Initial-Value Problems
An initial-value problem provides the value(s) of the function (and possibly its derivatives) at a single point, usually at the start of an interval.
For a first-order ODE, we need one initial condition: $$y(t0) = y0$$
This tells us the value of $y$ at some starting time $t0$. This single condition uniquely determines the constant $C$ in the general solution.
Example: Solve $\frac{dy}{dt} = 3y$ with $y(0) = 2$.
The general solution is $y(t) = Ce^{3t}$. The initial condition gives us $y(0) = Ce^0 = C = 2$, so the unique solution is $y(t) = 2e^{3t}$.
For a second-order ODE, we need two initial conditions. A common form is: $$y(t0) = y0 \quad \text{and} \quad y'(t0) = v0$$
The first tells us the position (or value of $y$) at time $t0$, and the second tells us the velocity (or rate of change) at that same point. These two pieces of information uniquely determine the two constants in the general solution.
Boundary-Value Problems
A boundary-value problem provides values of the function at two or more distinct points in the domain—typically at the boundaries of an interval.
For example: Find $y(x)$ satisfying $y'' + y = 0$ with $y(0) = 0$ and $y(\pi) = 1$.
Here we know the value of $y$ at $x=0$ and at $x=\pi$, but not information about the derivative. This is often used in spatial problems (like the temperature distribution along a rod) rather than time-evolution problems.
A practical note: Initial conditions are more common in introductory courses because they model how systems evolve over time starting from known initial states. Boundary-value problems are more specialized.
Classic Examples of Differential Equations
These examples appear frequently because they model real-world phenomena and are tractable to solve. Knowing them helps you recognize patterns.
Exponential Growth and Decay
One of the most important models is: $$\frac{dy}{dt} = ky$$
where $k$ is a constant (positive for growth, negative for decay).
This equation says: the rate of change of $y$ is proportional to $y$ itself. This describes:
Population growth (or decline)
Radioactive decay
Charging or discharging of a capacitor
Cooling of a hot object
The general solution is: $$y(t) = Ce^{kt}$$
If $k > 0$, the solution grows exponentially. If $k < 0$, it decays to zero. The constant $C$ is determined by an initial condition like $y(0) = y0$.
Newton's Law of Cooling
When an object at temperature $T$ sits in an environment at temperature $T{\text{env}}$, the object's temperature changes according to: $$\frac{dT}{dt} = k(T{\text{env}} - T)$$
The rate of cooling is proportional to the temperature difference. As the object cools and $T$ approaches $T{\text{env}}$, the difference gets smaller, so the cooling slows down. Eventually the object reaches ambient temperature and stops changing.
Simple Harmonic Motion
A mass attached to a spring (with no damping and no external force) follows: $$m\frac{d^2x}{dt^2} + kx = 0$$
where $m$ is the mass, $k$ is the spring stiffness, and $x$ is the displacement from equilibrium.
Dividing by $m$ and defining $\omega^2 = k/m$, this becomes: $$x'' + \omega^2 x = 0$$
This is a second-order linear homogeneous ODE. Its general solution is: $$x(t) = A\cos(\omega t) + B\sin(\omega t)$$
The object oscillates with angular frequency $\omega$. The constants $A$ and $B$ are determined by two initial conditions: initial position $x(0)$ and initial velocity $x'(0)$.
Alternatively, you might see this solution written as $x(t) = C\cos(\omega t + \phi)$ for amplitude $C$ and phase $\phi$.
Methods for Solving Ordinary Differential Equations
The general strategy for solving ODEs depends on their type. Here are the main techniques:
Separation of Variables
This method works for first-order ODEs that can be written in the form: $$\frac{dy}{dt} = f(t) \cdot g(y)$$
where the right side is a product of a function of $t$ and a function of $y$.
The idea is to "separate" the variables: rearrange to get all $y$ terms on one side and all $t$ terms on the other, then integrate both sides.
Example: $\frac{dy}{dt} = 3ty$
Separate: $\frac{dy}{y} = 3t \, dt$
Integrate: $\ln|y| = \frac{3t^2}{2} + C1$
Solve for $y$: $y = Ce^{3t^2/2}$
This method is straightforward but only works when you can actually separate the variables. Many equations can't be separated.
Integrating Factor for Linear First-Order Equations
When you have a first-order linear equation of the form: $$y' + p(t)y = q(t)$$
you can multiply both sides by an integrating factor $\mu(t) = e^{\int p(t) dt}$. This transforms the left side into the derivative of a product, making the equation easy to integrate.
This method is systematic and always works for this form of equation—even when separation of variables won't work.
Characteristic Equation for Constant-Coefficient Linear Equations
For linear equations with constant coefficients—like $y'' + 3y' + 2y = 0$—we use the characteristic equation method.
The idea: assume a solution of the form $y = e^{rt}$, substitute into the equation, and solve for $r$. This converts the differential equation into an algebraic equation (the "characteristic equation") in $r$.
For a second-order equation like $y'' + 3y' + 2y = 0$, you get: $$r^2 + 3r + 2 = 0$$
Solving gives $r = -1$ or $r = -2$, so the general solution is: $$y(t) = C1 e^{-t} + C2 e^{-2t}$$
This method is powerful for homogeneous constant-coefficient equations. For non-homogeneous equations, you find the solution to the homogeneous part this way, then add a particular solution.
<extrainfo>
Laplace Transforms
Laplace transforms are particularly useful for linear ODEs when initial conditions are given and the equation has piecewise or discontinuous forcing functions. The Laplace transform converts a differential equation into an algebraic equation, which is often easier to solve. You then take the inverse transform to get back to the original domain. While this is a legitimate and sometimes elegant method, it's typically introduced after the fundamental techniques above.
</extrainfo>
<extrainfo>
Applications and Importance
Differential equations are the language of science and engineering because they naturally describe how systems change:
Mechanical systems: spring-mass systems, pendulums, oscillators
Electrical systems: circuits with resistors, capacitors, and inductors
Thermal systems: heat diffusion, cooling, and temperature dynamics
Biological systems: population dynamics, disease spread, chemical kinetics
Control systems: feedback mechanisms in engineering applications
When you can set up the differential equation that governs a system and solve it, you can predict the system's behavior, design it better, or understand why it behaves the way it does. This is why differential equations are so fundamental to science and engineering.
</extrainfo>
Flashcards
What is the general definition of a differential equation?
A relationship between an unknown function and one or more of its derivatives.
What does a differential equation typically describe in terms of change?
How the rate of change of a quantity depends on the quantity itself and potentially the independent variable.
What is the goal when solving a differential equation?
Finding a function or family of functions that satisfies the given relationship.
What characterizes an ordinary differential equation (ODE) regarding its variables?
It involves an unknown function of only a single independent variable (e.g., $t$ or $x$).
How is the order of an ordinary differential equation determined?
By the highest derivative that appears in the equation.
What defines a first-order ordinary differential equation?
It contains only the first derivative $y'$ (where $y$ is the unknown function).
What defines a second-order ordinary differential equation?
It contains the second derivative $y''$ (where $y$ is the unknown function).
What two conditions must be met for an ordinary differential equation to be considered linear?
The unknown function and its derivatives appear only to the first power.
The unknown function and its derivatives are not multiplied together.
When is a linear ordinary differential equation classified as homogeneous?
When the right-hand side of the equation is zero (e.g., $y'' + 4y = 0$).
When is a linear ordinary differential equation classified as non-homogeneous?
When the right-hand side of the equation is not zero (e.g., $y'' + 4y = \cos(t)$).
What characterizes a partial differential equation (PDE)?
It involves several independent variables and partial derivatives of the unknown function.
What information does an initial-value problem provide to solve a differential equation?
Values of the unknown function and its derivatives at a specific point.
How many initial conditions are required to determine a unique solution for a first-order ODE?
One single condition (e.g., $y(t0) = y0$, where $y$ is the function and $t0$ is the initial time).
How many initial conditions are required to determine a unique solution for a second-order ODE?
Two conditions (e.g., $y(t0) = y0$ and $y'(t0) = v0$).
What information does a boundary-value problem provide to solve a differential equation?
Values of the unknown function at two or more distinct points in the domain.
What is the differential equation used to model exponential growth or decay?
$\frac{dy}{dt} = ky$ (where $y$ is the quantity, $t$ is time, and $k$ is a constant).
What is the general solution to the exponential growth/decay equation $\frac{dy}{dt} = ky$?
$y(t) = Ce^{kt}$ (where $C$ is a constant determined by an initial condition).
What differential equation represents Newton's Law of Cooling?
$\frac{dT}{dt} = k(T{\text{env}} - T)$ (where $T$ is object temperature and $T{\text{env}}$ is ambient temperature).
What is the standard form of the differential equation for simple harmonic motion?
$x'' + \omega^2 x = 0$ (where $x$ is position and $\omega$ is angular frequency).
What is the general solution for the simple harmonic motion equation $x'' + \omega^2 x = 0$?
$x(t) = A\cos(\omega t) + B\sin(\omega t)$ (where $A$ and $B$ are constants).
When can the separation of variables method be used to solve a first-order ODE?
When the equation can be written as a product of a function of the unknown variable and a function of the independent variable.
What form of linear first-order equation is solved using the integrating factor method?
$y' + p(t)y = q(t)$ (where $y$ is the unknown function and $p, q$ are functions of $t$).
What is the purpose of the characteristic equation method in differential equations?
To solve linear equations with constant coefficients by converting them into an algebraic polynomial.
In which scenario are Laplace transforms particularly useful for solving linear ODEs?
When equations involve piecewise or discontinuous forcing functions and initial conditions are given.
Quiz
Introduction to Differential Equations Quiz Question 1: An ordinary differential equation involves an unknown function of how many independent variables?
- A single independent variable (correct)
- Several independent variables
- No independent variable
- Infinitely many independent variables
Introduction to Differential Equations Quiz Question 2: Which differential equation represents Newton’s law of cooling?
- dT/dt = k (T_env − T) (correct)
- dT/dt = k T
- d²T/dt² = −k T
- dT/dt = −k (T_env + T)
Introduction to Differential Equations Quiz Question 3: What does solving a differential equation involve?
- Finding a function (or family) that satisfies the given relationship (correct)
- Determining the maximum value of the unknown function
- Calculating the integral of the unknown function over its domain
- Identifying the independent variable that makes the equation linear
Introduction to Differential Equations Quiz Question 4: When is a linear ordinary differential equation called homogeneous?
- When the right‑hand side of the equation is zero (correct)
- When all coefficients are constant
- When the equation contains only first‑order derivatives
- When the unknown function is multiplied by its derivative
Introduction to Differential Equations Quiz Question 5: What standard form must a linear first‑order ODE have for the integrating factor method to apply?
- \(y' + p(t)\,y = q(t)\) (correct)
- \(y'' + p(t)\,y = q(t)\)
- \(y' = p(t)\,y + q(t)\)
- \(y' + p(y)\,t = q(t)\)
Introduction to Differential Equations Quiz Question 6: A second‑order ordinary differential equation contains which highest‑order derivative?
- \(y''\) (correct)
- \(y'\)
- \(y'''\)
- It contains no derivatives
Introduction to Differential Equations Quiz Question 7: How many independent initial conditions are required to uniquely determine the solution of a first‑order ODE?
- One (correct)
- Two
- Three
- None
Introduction to Differential Equations Quiz Question 8: The characteristic‑equation method is used to solve linear ODEs that have what property?
- Constant coefficients (correct)
- Variable coefficients
- Nonlinear terms
- Integral terms
Introduction to Differential Equations Quiz Question 9: The order of an ordinary differential equation is determined by which of the following?
- The highest derivative that appears in the equation (correct)
- The number of independent variables
- The degree of the unknown function
- The number of terms containing the unknown function
Introduction to Differential Equations Quiz Question 10: A linear ordinary differential equation is classified as non‑homogeneous if:
- The right‑hand side of the equation is not zero (correct)
- All terms are multiplied by the unknown function
- The coefficients are all constant
- The equation contains only derivatives of even order
Introduction to Differential Equations Quiz Question 11: A boundary‑value problem requires the solution to satisfy conditions at:
- Two or more distinct points in the domain (correct)
- A single point only
- All points in the domain
- No specific points; only an overall integral condition
Introduction to Differential Equations Quiz Question 12: The general solution of \(\displaystyle \frac{dy}{dt}=k\,y\) can be written as:
- \(y(t)=C\,e^{k t}\) (correct)
- \(y(t)=k t + C\)
- \(y(t)=C\,e^{t/k}\)
- \(y(t)=C\sin(k t)\)
Introduction to Differential Equations Quiz Question 13: What is the general solution of \(x'' + \omega^{2} x = 0\)?
- \(x(t)=A\cos(\omega t)+B\sin(\omega t)\) (correct)
- \(x(t)=C e^{\omega t}\)
- \(x(t)=A e^{\omega t}+B e^{-\omega t}\)
- \(x(t)=C\cosh(\omega t)+D\sinh(\omega t)\)
Introduction to Differential Equations Quiz Question 14: What is the purpose of providing an initial or boundary condition for an ODE?
- It selects a single solution from the family of possible solutions (correct)
- It changes the order of the differential equation
- It eliminates the need to solve the differential equation
- It determines the coefficients of the equation
Introduction to Differential Equations Quiz Question 15: In most introductory mathematics courses, which type of differential equation receives primary emphasis?
- Ordinary differential equations (correct)
- Partial differential equations
- Integral equations
- Difference equations
Introduction to Differential Equations Quiz Question 16: Which statement correctly describes a first‑order ordinary differential equation?
- It contains only the first derivative of the unknown function (correct)
- It includes second‑order derivative terms
- It involves derivatives up to third order
- It contains no derivative terms, only algebraic expressions
Introduction to Differential Equations Quiz Question 17: What two mathematical entities are connected by a differential equation?
- An unknown function and its derivatives (correct)
- A constant and its integral
- Two independent variables without derivatives
- A function and its Laplace transform
Introduction to Differential Equations Quiz Question 18: The differential equation \(\displaystyle\frac{dy}{dt}=k\,y\) is commonly used to model which kind of process?
- Exponential growth or decay (correct)
- Simple harmonic motion
- Linear drift without feedback
- Quadratic acceleration
Introduction to Differential Equations Quiz Question 19: What feature must be present in an equation for it to be classified as a partial differential equation?
- Partial derivatives with respect to at least two independent variables. (correct)
- Only ordinary derivatives with respect to a single variable.
- A derivative of first order only.
- No derivative terms, only algebraic expressions.
Introduction to Differential Equations Quiz Question 20: For a first‑order ordinary differential equation, an initial‑value problem requires specifying which of the following?
- The value of the unknown function at a specific point (correct)
- Both the function and its first derivative at that point
- The value of the second derivative at that point
- No condition; the solution is unique without it
Introduction to Differential Equations Quiz Question 21: What is the general solution of the differential equation $x'' + \omega^{2} x = 0$?
- $x(t)=A\cos(\omega t)+B\sin(\omega t)$ (correct)
- $x(t)=A e^{\omega t}+B e^{-\omega t}$
- $x(t)=A\cosh(\omega t)+B\sinh(\omega t)$
- $x(t)=A\,\omega t + B$
Introduction to Differential Equations Quiz Question 22: If an ODE can be written as $\displaystyle\frac{dy}{dx}=g(x)\,h(y)$, which expression correctly separates the variables?
- \displaystyle\frac{1}{h(y)}\,dy = g(x)\,dx (correct)
- h(y)\,dy = g(x)\,dx
- dy = g(x)\,h(y)\,dx
- \displaystyle\frac{dy}{h(y)} = \frac{dx}{g(x)}
Introduction to Differential Equations Quiz Question 23: Which statement about ordinary differential equations is true in the context of engineering applications?
- They are used to model mechanical, electrical, and thermal systems (correct)
- They are exclusively used for modeling chemical reaction networks
- They cannot describe any time‑dependent physical behavior
- They are only applicable to static equilibrium problems
Introduction to Differential Equations Quiz Question 24: Which of the following equations is a linear ordinary differential equation?
- y' + 3y = sin t (correct)
- y' + y² = 0
- y·y' + 2y = 0
- y'' + sin(y) = 0
An ordinary differential equation involves an unknown function of how many independent variables?
1 of 24
Key Concepts
Types of Differential Equations
Differential equation
Ordinary differential equation (ODE)
Partial differential equation (PDE)
Linear differential equation
Homogeneous linear differential equation
Non‑homogeneous linear differential equation
Problem Types
Initial‑value problem
Boundary‑value problem
Solution Techniques
Separation of variables
Integrating factor
Characteristic equation
Laplace transform
Definitions
Differential equation
A mathematical equation that relates an unknown function to its derivatives.
Ordinary differential equation (ODE)
An equation involving a function of a single independent variable and its ordinary derivatives.
Partial differential equation (PDE)
An equation involving a function of several independent variables and its partial derivatives.
Initial‑value problem
A differential equation together with specified values of the unknown function (and possibly its derivatives) at a particular point.
Boundary‑value problem
A differential equation together with conditions specifying the values of the unknown function at the boundaries of the domain.
Linear differential equation
A differential equation in which the unknown function and its derivatives appear only to the first power and are not multiplied together.
Homogeneous linear differential equation
A linear differential equation whose right‑hand side is zero.
Non‑homogeneous linear differential equation
A linear differential equation with a non‑zero forcing term on the right‑hand side.
Separation of variables
A method for solving first‑order differential equations that can be written as a product of a function of the unknown variable and a function of the independent variable.
Integrating factor
A technique for solving linear first‑order differential equations by multiplying the equation by a specially chosen function.
Characteristic equation
An algebraic equation obtained from a constant‑coefficient linear differential equation whose roots determine the form of the solution.
Laplace transform
An integral transform used to convert linear differential equations into algebraic equations, facilitating their solution.