Ordinary Differential Equation
Ordinary Differential Equation
A differential equation which does not include any partial derivatives.
See also
Key Formula
an(x)dxndny+an−1(x)dxn−1dn−1y+⋯+a1(x)dxdy+a0(x)y=g(x)
Where:
- x = The single independent variable
- y = The unknown function of x
- dxkdky = The k-th ordinary derivative of y with respect to x
- a0,a1,…,an = Coefficient functions that may depend on x
- g(x) = A known function (the forcing term); if g(x) = 0, the ODE is called homogeneous
- n = The order of the ODE, determined by the highest derivative present
Worked Example
Problem: Verify that y = 3e^(2x) is a solution to the ordinary differential equation dy/dx − 2y = 0.
Step 1: Identify the ODE and note its order. The highest derivative is dy/dx, so this is a first-order ODE.
dxdy−2y=0
Step 2: Compute the derivative of the proposed solution y = 3e^(2x).
dxdy=3⋅2e2x=6e2x
Step 3: Substitute y and dy/dx into the left side of the equation.
6e2x−2(3e2x)=6e2x−6e2x=0
Step 4: The left side equals the right side (0), so the equation is satisfied for all x.
0=0✓
Answer: Since substituting y = 3e^(2x) makes both sides equal, it is indeed a solution to the ODE dy/dx − 2y = 0.
Another Example
Problem: Solve the second-order ODE d²y/dx² + y = 0, which models simple harmonic motion.
Step 1: This is a second-order linear homogeneous ODE with constant coefficients. Write the characteristic equation by replacing d²y/dx² with r² and y with 1.
r2+1=0
Step 2: Solve for r.
r=±i
Step 3: Complex roots r = ±i give the general solution using sine and cosine, where C₁ and C₂ are arbitrary constants.
y=C1cosx+C2sinx
Answer: The general solution is y = C₁ cos x + C₂ sin x, a combination of oscillating functions familiar from physics (springs, pendulums, circuits).
Frequently Asked Questions
What is the difference between an ordinary differential equation and a partial differential equation?
An ordinary differential equation (ODE) involves a function of one independent variable and its ordinary derivatives. A partial differential equation (PDE) involves a function of two or more independent variables and its partial derivatives. For example, dy/dx = 3y is an ODE (one variable x), while ∂u/∂t = k ∂²u/∂x² (the heat equation) is a PDE (two variables t and x).
What does the 'order' of an ODE mean?
The order of an ODE is the highest derivative that appears in the equation. For instance, dy/dx + y = 0 is first-order because the highest derivative is the first derivative, while d²y/dx² + y = 0 is second-order because the highest derivative is the second derivative. The order strongly influences what solution methods apply.
Ordinary Differential Equation (ODE) vs. Partial Differential Equation (PDE)
An ODE has one independent variable, so all derivatives are ordinary (d/dx). A PDE has two or more independent variables, so it involves partial derivatives (∂/∂x, ∂/∂t, etc.). ODEs typically yield solutions that are functions of one variable, while PDEs yield solutions that are functions of multiple variables. ODEs are generally easier to solve and are studied first in most curricula.
Why It Matters
ODEs model countless real-world processes where change depends on a single variable, such as population growth over time, radioactive decay, the motion of a spring, or current in an electrical circuit. Newton's second law (F = ma) is itself an ODE relating force to acceleration (the second derivative of position). Mastering ODEs is essential groundwork for engineering, physics, biology, and economics.
Common Mistakes
Mistake: Confusing the order of an ODE with its degree. Students sometimes call d²y/dx² + y = 0 a 'degree 2' equation.
Correction: The order is the highest derivative present (here, 2nd). The degree is the power to which that highest derivative is raised (here, 1). So this equation is second-order, first-degree.
Mistake: Forgetting the arbitrary constant(s) when writing the general solution.
Correction: A first-order ODE has one arbitrary constant, a second-order ODE has two, and in general an nth-order ODE has n arbitrary constants. Omitting them gives only a particular solution, not the general solution.
Related Terms
- Differential Equation — Broad category that includes both ODEs and PDEs
- Partial Derivative — Derivative type that does NOT appear in an ODE
- Partial Differential Equation — Differential equations with multiple independent variables
- Derivative — Core operation that defines an ODE
- Initial Value Problem — ODE paired with conditions at a starting point
- Separation of Variables — Common technique for solving first-order ODEs
- Linear — Key classification: linear vs. nonlinear ODEs
