DIFFERENTIAL EQUATIONS • PROBLEM-SOLVING & MODELING TOOLS

Classifying ODEs

Learn to identify the type, order, and linearity of ordinary differential equations so you can choose the right solving strategy.

Historical Context & Motivation

If you've ever studied how a ball falls through the air, how a population grows, or how a spring bounces, you've encountered situations described by ordinary differential equations (ODEs). An ODE is an equation that relates an unknown function to its derivatives — essentially, it tells you how something changes. For centuries, mathematicians have realized that not all ODEs are created equal: some are easy to solve, some are incredibly hard, and the first step in tackling any ODE is figuring out what kind of equation you're dealing with. That process is called classification.

1687
Newton's Principia
Isaac Newton published his laws of motion, which naturally led to differential equations. His second law, F = ma, is essentially a second-order ODE linking force to acceleration.
1736
Euler's Systematic Methods
Leonhard Euler began developing systematic techniques for solving different types of ODEs, recognizing that equations needed to be sorted by their properties before a solution method could be chosen.
1739
Integrating Factors & First-Order Equations
Euler introduced the integrating factor method for first-order linear ODEs, demonstrating that classification by order and linearity directly determines the solving strategy.
1800s
Formal Classification Emerges
Mathematicians such as Cauchy and Lipschitz formalized existence and uniqueness theorems, showing that the classification of an ODE determines whether a solution exists and how it behaves.
1900s–Today
Modern Applications
Today, ODE classification is a foundational skill in engineering, physics, biology, and data science. Computers can solve ODEs numerically, but humans still need to classify them to choose the right algorithm.

The central question this lesson addresses is straightforward but essential: Given a differential equation, how do you identify its type, order, degree, and linearity? Mastering this skill is like learning to sort your tools before starting a project — once you know what you're working with, you can pick the right method to solve it.

Core Principles & Definitions

Before you can classify an ODE, you need to understand a few key terms. Think of these as the labels on a filing system — each property narrows down the type of equation and points you toward the right solving technique.

1

ODE vs. PDE

An ordinary differential equation (ODE) involves derivatives with respect to only one independent variable. A partial differential equation (PDE) involves derivatives with respect to two or more independent variables. This lesson focuses exclusively on ODEs.
2

Order

The order of an ODE is the highest derivative that appears in the equation. For example, if the highest derivative is y″ (the second derivative), the equation is second-order.
3

Degree

The degree is the exponent (power) on the highest-order derivative, after the equation has been cleared of fractions and radicals involving derivatives. If y″ is squared, the degree is 2.
4

Linearity

An ODE is linear if the unknown function y and all its derivatives appear only to the first power and are not multiplied by each other. Otherwise, the ODE is nonlinear.
5

Homogeneous vs. Non-Homogeneous

A linear ODE is homogeneous if every term involves y or one of its derivatives (no standalone function of x). If there is an extra function of x alone, the ODE is non-homogeneous.
KEY TAKEAWAY
Classifying an ODE is like sorting mail at a post office. First, you check the destination country (ODE vs. PDE). Then you check the package size (order). Next, you look at the weight class (degree). Finally, you decide if it needs special handling (linear vs. nonlinear). Each label narrows down the delivery route — or in math terms, the solving method.

Visual Classification Flowchart

The flowchart below walks you through the classification process step by step. Start at the top with your differential equation and follow the decision diamonds to arrive at a complete classification. Each path corresponds to a different combination of properties.

Follow the flowchart from top to bottom. First determine if the equation is an ODE (one independent variable) or a PDE. Then identify the order by finding the highest derivative. Finally, check linearity by examining whether y and its derivatives appear only to the first power without being multiplied together.

Notice how the flowchart splits at each decision point. The first fork separates ODEs from PDEs based on the number of independent variables. The second fork determines the order by locating the highest derivative. The third fork checks linearity by asking whether y and all its derivatives appear only to the first power and are never multiplied by each other. The quick-reference examples on the right side of the diagram show how real equations land in different categories.

Mathematical Framework

Now let's formalize the classification criteria with precise mathematical definitions. Understanding the general form of a linear ODE helps you quickly recognize — and classify — any equation you encounter.

GENERAL NTH-ORDER LINEAR ODE
aₙ(x) · y⁽ⁿ⁾ + aₙ₋₁(x) · y⁽ⁿ⁻¹⁾ + … + a₁(x) · y′ + a₀(x) · y = g(x)
Here, y⁽ⁿ⁾ denotes the nth derivative of y with respect to x. The functions a₀(x), a₁(x), …, aₙ(x) are called the coefficients and may depend on x. The function g(x) on the right side is the forcing function. If g(x) = 0, the ODE is homogeneous; otherwise it is non-homogeneous.
FIRST-ORDER LINEAR ODE
y′ + P(x) · y = Q(x)
This is the standard form for a first-order linear ODE. P(x) is the coefficient of y, and Q(x) is the forcing function. When Q(x) = 0, the equation is homogeneous.
SECOND-ORDER LINEAR ODE WITH CONSTANT COEFFICIENTS
a · y″ + b · y′ + c · y = g(x)
When the coefficients a, b, and c are constants (not functions of x), the equation is called a constant-coefficient ODE. These are among the most common and most solvable types.
⚠️ Linearity Check
An ODE is nonlinear if any of the following appear: (y raised to a power other than 1), y · y′ (y multiplied by its own derivative), sin(y) (y inside a nonlinear function), or (y′)² (a derivative raised to a power). The coefficients, however, can be any function of x and the equation can still be linear.

A key insight is that linearity is about the unknown function y and its derivatives, not about the independent variable x. The equation y′ + x² · y = eˣ is linear because y and y′ both appear to the first power. The coefficient x² and the forcing function eˣ can be whatever they want — linearity only cares about how y shows up.

Detailed Classification Breakdown

Let's bring all the classification properties together in one place. The table below shows several example ODEs and their full classification. Study the patterns — after a bit of practice, you'll be able to classify most equations at a glance.

Classification of sample ODEs by order, degree, linearity, and homogeneity
EquationOrderDegreeLinear?Homogeneous?
y′ + 2y = 011YesYes
y″ + 3y′ − y = sin(x)21YesNo
y′ = y²11No (y²)N/A
(y″)² + y = 022No ((y″)²)N/A
y‴ − 2y′ + y = eˣ31YesNo
x²y″ + xy′ + y = 021YesYes
y · y′ + x = 011No (y · y′)N/A
This classification map organizes ODEs into two main families — linear and nonlinear — and further subdivides them by sub-properties. The order spectrum at the bottom shows how the order of an ODE relates to typical physical applications.

The classification map above reveals a critical pattern: linear ODEs are generally easier to solve because there are well-established, systematic methods for them (integrating factors, characteristic equations, variation of parameters). Nonlinear ODEs require more creativity — sometimes they can be transformed into linear ones, but often they require numerical methods or specialized techniques. Understanding which camp your equation falls into saves you time and frustration.

Worked Example: Classifying an ODE

Let's walk through the complete classification of a differential equation step by step. Consider the equation:

EQUATION TO CLASSIFY
x² · y″ + 3x · y′ − 5y = cos(x)
We need to determine: (1) ODE or PDE, (2) order, (3) degree, (4) linearity, and (5) homogeneity.
Full Classification
1
Step 1 — ODE or PDE?Look at the derivatives in the equation. We see y″ and y′, both of which are derivatives of y with respect to a single variable x. There are no partial derivatives (like ∂y/∂t). Since all derivatives are with respect to one independent variable, this is an ODE.
Classification: ODE ✓
2
Step 2 — Determine the OrderScan the equation for all derivatives of y: we see y″ (second derivative) and y′ (first derivative). The highest derivative present is y″, which is the second derivative.
Order: 2 (second-order)
3
Step 3 — Determine the DegreeThe degree is the power (exponent) on the highest-order derivative. Here, y″ appears to the first power — it is not squared, cubed, or under a radical. The equation is already in polynomial form with respect to its derivatives.
Degree: 1
4
Step 4 — Check LinearityFor linearity, check whether y, y′, and y″ all appear to the first power and are never multiplied by each other. In x² · y″ + 3x · y′ − 5y = cos(x), each term involving y has y (or one of its derivatives) to the first power only. The coefficients x² and 3x are functions of x, not y, so they don't affect linearity. There are no products like y · y′ or terms like y². This equation is linear.
Linear ✓
5
Step 5 — Check HomogeneitySince the equation is linear, we can check homogeneity. Look at the right-hand side: g(x) = cos(x). Because g(x) ≠ 0, there is a nonzero forcing function.
Non-homogeneous (because g(x) = cos(x) ≠ 0)
6
Step 6 — Coefficient TypeAs a bonus classification, note that the coefficients x² and 3x are functions of x, not constants. This makes it a variable-coefficient ODE, specifically a Cauchy–Euler equation.
Final: 2nd-order, degree 1, linear, non-homogeneous, variable-coefficient ODE

Linear vs. Nonlinear: Strengths & Limitations

The most consequential classification decision is whether an ODE is linear or nonlinear. This single property determines the arsenal of techniques available to you, the behavior of solutions, and even whether a closed-form (exact) solution is possible. The table below highlights the key differences.

Comparison of linear and nonlinear ODEs
PropertyLinear ODEsNonlinear ODEs
Superposition principleYes — sums of solutions are also solutions (for homogeneous equations)No — cannot simply add solutions together
Solving methodsWell-established: integrating factors, undetermined coefficients, variation of parametersCase-by-case: separation of variables, substitution, or numerical methods
Existence & uniquenessSolutions are generally guaranteed to exist and be unique under mild conditionsSolutions may not exist, may blow up in finite time, or may not be unique
Solution behaviorPredictable: exponential growth/decay, oscillationsCan exhibit chaos, solitons, and other complex behavior
Real-world accuracyOften an approximation of a more complex (nonlinear) realityOften a more faithful model of real-world phenomena
KEY TAKEAWAY
Think of linear ODEs as highways with clear road signs — there's a well-marked route to the solution. Nonlinear ODEs are more like off-road trails: sometimes you find a path, sometimes you need a GPS (numerical methods), and sometimes the terrain is genuinely uncharted. Classifying your ODE is essentially checking whether you're on a highway or a trail before you start driving.

Connection to Advanced Topics

Once you can classify ODEs, you're ready to connect classification to the broader world of differential equations. In advanced courses, classification extends to systems of ODEs, partial differential equations (PDEs), and even stochastic differential equations (SDEs). The skills you're building now — identifying order, linearity, and structure — carry directly into these more advanced settings.

How ODE classification connects to advanced topics
Concept NowAdvanced ExtensionWhere You'll See It
Order of a single ODESystems of first-order ODEs (any higher-order ODE can be rewritten as a system)Linear algebra, phase-plane analysis
Linear vs. nonlinearLinearization around equilibrium points to analyze stabilityPhysics, engineering, ecology models
Constant vs. variable coefficientsPower series solutions, Bessel functions, Legendre polynomialsQuantum mechanics, heat conduction
ODE (one variable)PDE (multiple variables): wave, heat, and Laplace equationsFluid dynamics, electromagnetism, finance

The most important takeaway is that classification is not just an academic exercise. Engineers designing bridges, scientists modeling disease spread, and programmers writing physics engines all begin by classifying the differential equations that govern their systems. The classification tells them which algorithms to use, how accurate the results will be, and what kind of behavior to expect.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the equation y′ + x³ · y = eˣ is classified as linear, even though the coefficient x³ is not a constant. What does linearity actually depend on?
PROBLEM 2BASIC CALCULATION
Classify the following ODE by order, degree, and linearity: 3y″ − 7y′ + 2y = 0.
PROBLEM 3INTERMEDIATE
Classify each of the following and explain your reasoning: (a) y″ + y · y′ = x, (b) (y‴)² + y = sin(x), (c) y⁽⁴⁾ − 3y″ + y = 0.
PROBLEM 4APPLIED
A spring-mass system with damping and an external driving force is modeled by m · y″ + c · y′ + k · y = F₀ · cos(ωt), where m, c, k, F₀, and ω are constants, and y represents displacement. Fully classify this ODE and explain what each classification property tells you about the physical system.
PROBLEM 5CRITICAL THINKING
Consider the equation y′ = sin(y). This is a nonlinear ODE because y appears inside the sine function. However, if y is very small (close to zero), we can approximate sin(y) ≈ y. Write the linearized version of this ODE, classify it fully, and discuss when the linearization is a good approximation and when it breaks down.

Lesson Summary

Classifying an ODE is the essential first step in solving it. You identify whether the equation is an ODE or PDE based on the number of independent variables. Next, you determine the order (the highest derivative present) and the degree (the power on that highest derivative). You then check linearity by verifying that y and all its derivatives appear only to the first power and are never multiplied together — remembering that the coefficients can be any function of x. For linear ODEs, you further check whether the equation is homogeneous (g(x) = 0) or non-homogeneous (g(x) ≠ 0), and whether it has constant or variable coefficients.

Each classification property points you toward a specific solving strategy. Linear ODEs benefit from the superposition principle and systematic techniques, while nonlinear ODEs often require specialized methods or numerical approaches. Mastering classification ensures you never waste time applying the wrong technique — you'll always know exactly which toolbox to open.

Varsity Tutors • Differential Equations • Classifying ODEs