Differential Equations • Foundations & Qualitative Analysis

Intro to Differential Equations — What Is a Differential Equation? Order, Linearity, and Solutions

Discover how equations involving derivatives model change in the real world.

A changing curve with sigma and variable symbols for differential equations
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

Mathematics has always been the language we use to describe how things change. When Isaac Newton wanted to explain why planets orbit the sun, or when engineers today design the suspension on a car, they all face the same core challenge: the quantity they care about—position, temperature, population—depends on how fast it is changing. A differential equation is an equation that relates a function to its own derivatives, and it turns out to be one of the most powerful tools ever invented for modeling the real world.

Before differential equations existed, scientists could describe static situations—a bridge standing still, a balance scale in equilibrium—but they struggled to describe motion, growth, and decay with precision. The invention of calculus in the late 1600s opened the door: once we had derivatives, we could write equations that captured the rules of change itself.

1687 • Newton's Principia

Isaac Newton published the Principia Mathematica, expressing the laws of motion and gravitation as relationships between position, velocity, and acceleration—essentially the first differential equations.

1690s • Leibniz & the Bernoullis

Gottfried Leibniz developed modern notation for derivatives (dy/dx), while the Bernoulli brothers solved early differential equations related to curves and fluid flow.

1739 • Euler's Systematic Methods

Leonhard Euler introduced systematic techniques for solving differential equations, including the concept of an integrating factor and numerical approximation methods still used today.

1800s • Heat, Waves & Electromagnetism

Fourier used differential equations to model heat conduction. Maxwell wrote his famous equations for electromagnetism, and the field expanded into partial differential equations.

Modern Era • Computation & Modeling

Today, differential equations power weather forecasting, disease modeling, AI training, rocket science, and nearly every branch of engineering and science.

The central question that differential equations address is deceptively simple: If I know the rules governing how something changes, can I figure out the thing itself? For example, if you know that a population grows at a rate proportional to its current size, can you predict the population at any future time? That question—and thousands like it—is exactly what this field was built to answer.

SECTION 2

Core Principles & Definitions

At its heart, a differential equation is simply an equation that contains one or more derivatives of an unknown function. You already know algebraic equations like 2x + 3 = 7, where you solve for a number. In a differential equation, you solve for an entire function—a rule that tells you the output for every input. Let's nail down the key vocabulary you'll need.

1

Differential Equation (DE)

An equation involving an unknown function and one or more of its derivatives. Example: dy/dx = 3x tells you the slope of y at every point x.
2

Order

The order of a DE is the highest derivative that appears. If the equation contains d²y/dx² (a second derivative), it is second-order.
3

Linearity

A DE is linear if the unknown function and all its derivatives appear only to the first power and are not multiplied together. Otherwise, it is nonlinear.
4

Solution

A solution is any function that, when substituted into the DE, makes it a true statement. A general solution contains arbitrary constants; a particular solution has specific values chosen.
5

ODE vs. PDE

An ordinary differential equation (ODE) involves derivatives with respect to one variable. A partial differential equation (PDE) involves partial derivatives with respect to multiple variables.
✦

KEY TAKEAWAY

Think of an algebraic equation as a question: "What number works here?" A differential equation asks a bigger question: "What function works here?" It's like the difference between finding one puzzle piece versus assembling the whole picture. In algebra you find a number; in differential equations you find a curve—an entire story of how something behaves over time or space.

SECTION 3

Visual Explanation — Anatomy of a Differential Equation

The diagram below breaks apart a second-order linear ODE to show you exactly where the concepts of order, linearity, and dependent/independent variables live inside the equation. Study it before reading on—visual anchoring helps the definitions stick.

Anatomy of a Differential Equation3 d²y/dx² + 5 dy/dx − 2y = sin(x)ORDER = 2Highest derivative is d²y/dx²LINEARy and derivatives appearto the 1st power onlyDEPENDENT VARy — the unknown functionINDEPENDENT VARx — the input variableCOEFFICIENTS3, 5, −2 (constants)FORCING FUNCTIONsin(x) — the input/driver
Each colored box highlights a structural component of the equation 3 d²y/dx² + 5 dy/dx − 2y = sin(x). The order is 2 because d²y/dx² is the highest derivative. The equation is linear because y and its derivatives appear only to the first power.

Notice how every piece of the equation has a name and a role. The dependent variable y is the unknown function you are trying to find. The independent variable x is the input (often time or position). The coefficients (3, 5, −2) scale each term, and the forcing function sin(x) is the external input that drives the system. Being able to read an equation this way is the first skill you need in the course.

SECTION 4

Mathematical Framework

Let's formalize the ideas from Section 2 with precise notation. Don't worry—we'll keep things connected to meaning at every step. In all equations below, y is a function of x, and the prime notation y′ means dy/dx.

General Form of an ODE

GENERAL FIRST-ORDER ODE

F(x,y,y′)=0F(x, y, y′) = 0

F is some expression involving the independent variable x, the unknown function y, and its first derivative y′. A first-order ODE contains only the first derivative.

GENERAL SECOND-ORDER ODE

F(x,y,y′,y″)=0F(x, y, y′, y″) = 0

Here y″ = d²y/dx². The presence of the second derivative makes this second-order. The order is always determined by the highest derivative that appears.

Linear vs. Nonlinear

STANDARD LINEAR FORM (2ND ORDER)

a2(x)y″+a1(x)y′+a0(x)y=g(x)a₂(x) y″ + a₁(x) y′ + a₀(x) y = g(x)

A linear ODE has the unknown y and its derivatives appearing to the first power only, each multiplied by functions of x alone (the coefficients a₂, a₁, a₀). The right side g(x) depends only on x.

⚠

Nonlinear Red Flags

An ODE is nonlinear if it contains y², y × y′, sin(y), eʸ, (y′)³, or any product or nonlinear function of the unknown and its derivatives. Example: y″ + y² = 0 is nonlinear because of the y² term.

What Counts as a Solution?

VERIFYING A SOLUTION

Given:y′=2y→Proposedsolution:y=Ce2xGiven: y′ = 2y → Proposed solution: y = Ce²ˣ

If you differentiate y = Ce²ˣ, you get y′ = 2Ce²ˣ = 2y. Since the equation y′ = 2y is satisfied for every value of C, we call y = Ce²ˣ the general solution. Choosing a specific C (e.g., C = 5) gives a particular solution.

SECTION 5

Classifying Differential Equations

When you encounter a differential equation, the first thing to do is classify it. Classification tells you which solving technique to use—just like identifying a type of triangle tells you which formula applies. The flowchart below walks you through the classification process step by step.

Classification Flowchart for Differential EquationsStart: Given equationDoes it contain partial derivatives?YesPDENoIt's an ODE. What is the order?Find the highest derivative → that's the orderIs y (and all its derivatives) to the 1st power only?YesLINEAR ODENoNONLINEAR ODE
Follow the flowchart from top to bottom. First decide ODE vs. PDE, then determine the order by finding the highest derivative, and finally check for linearity.

Quick-Reference Classification Table

EquationTypeOrderLinear?
dy/dx = 3x + 1ODE1stYes
y″ + 4y = 0ODE2ndYes
y′ = y²ODE1stNo (y²)
d³y/dx³ + y′ = eˣODE3rdYes
(y′)² + y = xODE1stNo ((y′)²)
∂u/∂t = k ∂²u/∂x²PDE2ndYes

Classification examples for common differential equations

Notice that the linearity check focuses on how y and its derivatives appear—not on x. An equation like y″ + (sin x) y = x³ is still linear because every term involving y or y″ is to the first power. The coefficients and the right-hand side can be as complicated as they want in x; linearity only cares about the unknown function.

SECTION 6

Worked Example — Verifying a Solution

One of the most common tasks you'll face is checking whether a proposed function actually solves a given differential equation. Let's walk through a complete example with every algebraic step shown.

Verify that y = 3e⁻²ˣ + 2x − 1 is a solution to y′ + 2y = 4x

  1. 1

    Step 1 — Identify the DE and the proposed solution

    The differential equation is y′ + 2y = 4x. This is a first-order linear ODE. The proposed solution is y = 3e⁻²ˣ + 2x − 1. Our goal: substitute this y into the DE and check whether both sides are equal.
  2. 2

    Step 2 — Compute y′

    Differentiate y with respect to x using standard rules. The derivative of 3e⁻²ˣ is 3 × (−2)e⁻²ˣ = −6e⁻²ˣ. The derivative of 2x is 2. The derivative of −1 is 0.
    y′ = −6e⁻²ˣ + 2
  3. 3

    Step 3 — Substitute y and y′ into the left side of the DE

    The left side of the equation is y′ + 2y. Substituting: (−6e⁻²ˣ + 2) + 2(3e⁻²ˣ + 2x − 1). Expand the second term: 6e⁻²ˣ + 4x − 2. Now combine with the first term: −6e⁻²ˣ + 2 + 6e⁻²ˣ + 4x − 2.
    y′ + 2y = 4x
  4. 4

    Step 4 — Compare to the right side

    The right side of the original DE is 4x. Our left side simplified to 4x as well. Since the left side equals the right side for all values of x, the proposed function is indeed a valid solution.
    ✓ y = 3e⁻²ˣ + 2x − 1 is a solution
  5. 5

    Step 5 — Reflect on the result

    Notice that the exponential terms canceled perfectly: −6e⁻²ˣ + 6e⁻²ˣ = 0. This is typical for linear DEs. Also, the constant 3 in front of e⁻²ˣ is an arbitrary constant—changing it would give a different particular solution. The "+ 2x − 1" part is forced by the right side 4x.

SECTION 7

Algebraic Equations vs. Differential Equations

Since you've spent years solving algebraic equations, it's helpful to see exactly how differential equations differ—and where they overlap. The table below highlights the key distinctions side by side.

FeatureAlgebraic EquationDifferential Equation
What you solve forA number (e.g., x = 5)A function (e.g., y = Ce²ˣ)
ContainsVariables and constantsAn unknown function and its derivatives
Solution setUsually finitely many answersOften infinitely many (a family of curves)
VerificationSubstitute the number, check equalityDifferentiate, substitute, check equality
Typical applicationStatic situations (balance, proportion)Dynamic situations (motion, growth, change)

Key differences between algebraic and differential equations

✦

KEY TAKEAWAY

An algebraic equation is like a snapshot—it tells you a single measurement. A differential equation is like a movie—it tells you the rule that generates an entire sequence of measurements over time. Solving a DE means finding the function that "plays" the movie correctly according to the rule.

One important similarity is the idea of initial conditions. In algebra, you sometimes need extra information to pin down a unique answer (like solving a system of equations). In differential equations, you often get a family of solutions (the general solution) and then use an initial condition—such as y(0) = 4—to pick the one specific curve that fits your situation. This is called an initial value problem (IVP).

SECTION 8

Connection to Advanced Topics

Everything you've learned in this lesson—order, linearity, and solution verification—forms the foundation for every technique you'll encounter next. The table below previews how these foundational ideas connect to more advanced methods.

This LessonWhat Comes Next
Identifying first-order linear ODEsSolving them with integrating factors and separation of variables
Identifying second-order linear ODEsThe characteristic equation method and undetermined coefficients
Recognizing nonlinear ODEsQualitative analysis, phase portraits, and numerical methods (Euler's method)
General vs. particular solutionsInitial value problems (IVPs) and boundary value problems (BVPs)
ODE vs. PDE distinctionThe heat equation, wave equation, and Laplace's equation in multivariable calculus

How today's concepts lead to future topics

Don't worry if those future topics sound intimidating right now. The classification skills you practiced today will serve as your compass throughout the course. Every time you see a new differential equation, your first move will always be the same: determine the type, order, and linearity—and from there, the right solving strategy will follow naturally.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain in your own words: what is the key difference between solving an algebraic equation and solving a differential equation? What kind of answer do you get in each case?
Show answer
When you solve an algebraic equation, you find a specific number (or a few numbers) that satisfy the equation. When you solve a differential equation, you find an entire function—a rule that works for every value of the independent variable. For example, solving x + 3 = 7 gives x = 4, but solving y′ = 2y gives y = Ce²ˣ, which is a whole family of exponential curves depending on the constant C.

Question 2: BASIC CALCULATION

Classify the following differential equation by type (ODE or PDE), order, and linearity: d²y/dx² − 3 dy/dx + 2y = 7
Show answer
This is an ODE because it involves ordinary derivatives with respect to one variable, x. The order is 2 because the highest derivative is d²y/dx² (the second derivative). It is linear because y and its derivatives (y′ and y″) both appear to the first power only, with constant coefficients (1, −3, and 2). The right-hand side is the constant 7, which is a valid forcing function in a linear ODE. Classification: second-order, linear ODE.

Question 3: INTERMEDIATE

Verify that y = sin(2x) is a solution to the differential equation y″ + 4y = 0.
Show answer
First, compute y′ = 2cos(2x) and y″ = −4sin(2x). Now substitute into the left side of the DE: y″ + 4y = −4sin(2x) + 4sin(2x) = 0. Since the left side equals the right side (0) for all values of x, y = sin(2x) is indeed a valid solution. Note that y = cos(2x) would also work—the general solution is y = C₁sin(2x) + C₂cos(2x), and our function is the particular case C₁ = 1, C₂ = 0.

Question 4: APPLIED

A population P grows at a rate proportional to its current size, with a proportionality constant k = 0.03 per year. Write a differential equation modeling this situation. Classify it. Then verify that P(t) = P₀e0.03te^{0.03t} is a solution, where P₀ is the initial population.
Show answer
The phrase "rate proportional to its current size" translates to dP/dt = 0.03P. This is a first-order, linear ODE (P appears to the first power). To verify the solution, differentiate: dP/dt = P₀ × 0.03 × e0.03te^{0.03t} = 0.03 × P₀e0.03te^{0.03t} = 0.03P. The left side (dP/dt) equals the right side (0.03P), so the proposed function works. The constant P₀ represents the population at time t = 0, which is the initial condition that selects one particular solution from the general family.

Question 5: CRITICAL THINKING

Consider the two equations: (A) y″ + y = 0 and (B) y″ + y² = 0. Both are second-order ODEs. Explain why (A) is linear and (B) is nonlinear. Then consider: if y₁ and y₂ are both solutions to (A), is y₁ + y₂ also a solution? What about for equation (B)? Explain why this matters.
Show answer
Equation (A) is linear because y and y″ both appear to the first power with no products of y terms. Equation (B) is nonlinear because of the y² term—y appears raised to the second power. For equation (A): if y₁ and y₂ are solutions, then y₁″ + y₁ = 0 and y₂″ + y₂ = 0. Adding: (y₁ + y₂)″ + (y₁ + y₂) = (y₁″ + y₂″) + (y₁ + y₂) = (y₁″ + y₁) + (y₂″ + y₂) = 0 + 0 = 0. So y₁ + y₂ is also a solution—this is the superposition principle for linear equations. For equation (B), (y₁ + y₂)² ≠ y₁² + y₂², so the sum of two solutions is generally NOT a solution. This is exactly why linearity matters: it allows us to build complex solutions from simpler ones, a technique that breaks down for nonlinear equations.

SUMMARY

Lesson Summary

Summary

A differential equation is an equation that relates an unknown function to its derivatives. Unlike algebraic equations that yield numbers, DEs yield functions as solutions. The order of a DE equals the highest derivative present: if d²y/dx² appears, it's second-order. A DE is linear when the unknown function and all its derivatives appear to the first power only, with no products of y terms. Otherwise it is nonlinear.

The general solution of a DE contains arbitrary constants and represents an entire family of curves. A particular solution arises when an initial condition pins down those constants. To verify a solution, differentiate it, substitute into the DE, and confirm both sides are equal. These classification and verification skills form the bedrock for every solving method you will learn next.

Varsity Tutors • Differential Equations • Intro to Differential Equations — What Is a Differential Equation? Order, Linearity, and Solutions