DIFFERENTIAL EQUATIONS • FIRST-ORDER DIFFERENTIAL EQUATIONS

Identifying Linear First-Order ODEs

Learn to recognize the structure of linear first-order ordinary differential equations and distinguish them from nonlinear ones.

Historical Context & Motivation

Differential equations have been at the heart of science and engineering for centuries. Whenever we want to describe how something changes — the speed of a falling object, the growth of a population, or the cooling of a cup of coffee — we need an equation that relates a function to its derivative. A differential equation is exactly that: an equation involving an unknown function and one or more of its derivatives. Among all differential equations, the simplest and most useful class is the linear first-order ordinary differential equation (ODE). Before you can solve one, you first need to recognize one when you see it.

1676
Leibniz Introduces dy/dx
Gottfried Wilhelm Leibniz develops the notation dy/dx for derivatives, giving mathematicians a compact language for writing differential equations.
1694
First Linear ODE Solved
Johann Bernoulli and Leibniz exchange letters describing the first systematic method for solving linear first-order ODEs using an integrating factor.
1739
Euler's Systematic Framework
Leonhard Euler classifies differential equations by order and linearity, creating the organizational system we still use today.
1800s
Applications Explode
Scientists like Fourier, Newton, and Maxwell use first-order linear ODEs to model heat transfer, motion, and electrical circuits, demonstrating their broad real-world power.

The central question this lesson addresses is straightforward but critical: given a differential equation, how do you tell whether it is a linear first-order ODE? Once you can classify an equation correctly, you unlock a powerful toolkit of solution methods — but applying the wrong method to a nonlinear equation leads nowhere. Identification is the essential first step.

Core Principles & Definitions

To identify a linear first-order ODE, you need to understand three separate ideas and then combine them. Each word in the name — first-order, ordinary, and linear — describes a specific requirement the equation must satisfy. Let's break them down.

1

Ordinary (vs. Partial)

An ordinary differential equation involves a function of only one independent variable (usually x or t). If the function depends on multiple variables, the equation is partial, not ordinary.
2

First-Order

The order of a differential equation is the highest derivative that appears. A first-order ODE contains dy/dx (or y′) but no y″, y‴, etc.
3

Linear

An equation is linear in y if y and its derivatives appear only to the first power and are never multiplied together. No y², sin(y), eʸ, or y·y′ allowed.
4

Standard Form

A linear first-order ODE can always be rearranged into the standard form: dy/dx + P(x)·y = Q(x), where P and Q are functions of x alone (not y).
KEY TAKEAWAY
Think of linearity like a recipe that only uses plain ingredients. If y is flour, then you're allowed to use "2 cups of flour" (a constant times y) or "add flour" (y appears by itself). But you're not allowed to use "flour squared" (y²) or "flour mixed with its rate of change" (y·y′). Those would make the recipe nonlinear. The functions P(x) and Q(x) are like spices — they can be as complicated as you want, because they involve only x, not y.

Visual Explanation — Decision Flowchart

The following flowchart walks you through the three-question checklist for classifying a differential equation. Start at the top and follow the arrows. If you answer "Yes" to all three questions, the equation is a linear first-order ODE.

Follow the three questions from top to bottom. A "No" at any stage means the equation is not a linear first-order ODE. Only if all three answers are "Yes" do you arrive at the green box.

Notice that Q3 is the trickiest checkpoint. Many students correctly identify the order but stumble on linearity. The key test is simple: look at every place y or y′ appears and ask, "Is it raised to the first power and standing alone (not multiplied by another y or y′)?" If yes, the equation passes. If any term violates this, it's nonlinear.

Mathematical Framework

Now let's formalize what we mean. The general form and the standard form of a linear first-order ODE each give you a template to compare against any equation you encounter.

GENERAL FORM
a(x) · dy/dx + b(x) · y = c(x)
Here a(x), b(x), and c(x) are functions of x only — they must not depend on y. The coefficient a(x) must not be zero (otherwise there is no derivative term and it is not a differential equation).
STANDARD FORM
dy/dx + P(x) · y = Q(x)
Divide the general form by a(x) to get this. Here P(x) = b(x)/a(x) and Q(x) = c(x)/a(x). This is the form used to apply the integrating factor method.

Notice two things about these forms. First, y and dy/dx each appear to the first power — no y², no (dy/dx)³. Second, they are never multiplied together — there is no y · (dy/dx) term. These are the defining features of linearity.

What Makes an Equation Nonlinear?

NONLINEAR EXAMPLES
dy/dx + y² = x | y · dy/dx = 3 | dy/dx = sin(y)
The first has y². The second has y multiplied by dy/dx. The third has sin(y), a nonlinear function of y. None of these is linear.
⚠️ Common Mistake
Students sometimes think that a complicated function of x, like sin(x) or eˣ, makes an equation nonlinear. It does not. Linearity only cares about how y and dy/dx appear — the coefficients P(x) and Q(x) can be any function of x whatsoever.

Classification Table & Visual Guide

The best way to build confidence is to see many examples side by side. The table below classifies several equations, and the diagram that follows shows the key structural differences visually.

Classification examples: check order first, then linearity
EquationOrderLinear?Reason
dy/dx + 3y = eˣ1✓ Yesy and y′ to the 1st power; P(x) = 3, Q(x) = eˣ
x²·dy/dx − y = sin(x)1✓ YesDivide by x² to get standard form; coefficients are functions of x only
dy/dx + y² = 01✗ Noy² — y is raised to the 2nd power
y·dy/dx + x = 11✗ Noy is multiplied by dy/dx (product of y and its derivative)
d²y/dx² + dy/dx = x2N/ASecond-order (contains d²y/dx²), so not first-order at all
dy/dx = sin(y)1✗ Nosin(y) is a nonlinear function of y
dy/dx + (tan x)·y = cos(x)1✓ Yestan(x) and cos(x) are functions of x only; y appears linearly
The left panel (green) shows equations that fit the standard form dy/dx + P(x)·y = Q(x). The right panel (red) shows equations that violate linearity. In every red example, the problematic term is labeled with a warning icon.

Worked Example

Let's work through a complete example to practice the identification process. Suppose you are given the equation:

GIVEN EQUATION
x · dy/dx − 4y = x³ · eˣ
Determine whether this is a linear first-order ODE, and if so, write it in standard form.
Is x · dy/dx − 4y = x³ · eˣ a Linear First-Order ODE?
1
Step 1 — Check: Is it ordinary?The equation involves y as a function of a single independent variable x. There are no partial derivatives (∂). So the equation is an ordinary differential equation.
✓ Ordinary — passes Q1
2
Step 2 — Check: Is it first-order?The highest derivative present is dy/dx, which is the first derivative of y. There is no d²y/dx² or any higher derivative.
✓ First-order — passes Q2
3
Step 3 — Check: Is it linear in y?Look at every term involving y or dy/dx. The term x · dy/dx has dy/dx to the first power, multiplied by x (a function of x only). The term −4y has y to the first power with coefficient −4 (a constant). Neither y nor dy/dx is raised to any power other than 1, and they are not multiplied together. The right side, x³ · eˣ, depends only on x.
✓ Linear — passes Q3
4
Step 4 — Write in Standard FormDivide every term by x (assuming x ≠ 0) to isolate dy/dx with a coefficient of 1. We get dy/dx − (4/x) · y = x² · eˣ. Now it matches the standard form dy/dx + P(x) · y = Q(x) with P(x) = −4/x and Q(x) = x² · eˣ.
Standard form: dy/dx − (4/x) · y = x² · eˣ
💡 Pro Tip
Always try to rewrite the equation with dy/dx alone on one side or in the form dy/dx + P(x)·y = Q(x). If you can do this and P(x) and Q(x) involve only x, you've confirmed it's linear. If y shows up somewhere it shouldn't — inside a trig function, raised to a power, or multiplied by dy/dx — it's nonlinear.

Linear vs. Nonlinear — Strengths & Limitations

Why do mathematicians and scientists care so much about distinguishing linear from nonlinear equations? The answer comes down to what tools are available. Linear equations behave predictably and have well-established solution methods, while nonlinear equations can be far more difficult — or even impossible — to solve in closed form.

Comparison of linear and nonlinear first-order ODEs
FeatureLinear First-Order ODENonlinear First-Order ODE
Guaranteed solution methodYes — the integrating factor always worksNo — may require special tricks or numerical methods
Superposition principleHolds — solutions can be added togetherDoes not hold
Existence & uniquenessGuaranteed (where P and Q are continuous)Must be checked case by case
Modeling powerGreat for many physical systems (circuits, mixing, decay)Needed for chaotic systems, population models with competition
DifficultyApproachable — standard high school / college topicCan be extremely challenging
KEY TAKEAWAY
Think of a linear ODE like driving on a well-mapped highway — you know exactly where every exit leads, and your GPS (the integrating factor) will always get you to your destination. A nonlinear ODE is more like off-roading without a map: sometimes you find a path, sometimes you don't, and the terrain can surprise you. That's why correctly identifying the equation type is so important — it tells you which tools to reach for.

Connection to Advanced Topics

Once you can identify a linear first-order ODE, you're ready to solve it. But the classification skills you're building now also extend to more advanced equations you'll encounter later. The table below previews how the same ideas scale up.

How today's skills connect to future topics
Concept You Know NowAdvanced Extension
First-order: highest derivative is dy/dxHigher-order: equations with d²y/dx², d³y/dx³, etc. — same linearity test applies
Standard form: dy/dx + P(x)·y = Q(x)Systems of ODEs: multiple equations with multiple unknowns, written in matrix form
Integrating factor methodVariation of parameters and Laplace transforms for higher-order linear ODEs
Linearity: y to the 1st power onlyBernoulli equations: dy/dx + P(x)·y = Q(x)·yⁿ — a clever substitution reduces them to linear form

An especially useful extension is the Bernoulli equation, which looks nonlinear because of the yⁿ term on the right side. However, a substitution v = y1−n transforms it into a linear first-order ODE. Recognizing that an equation is "almost linear" in this way relies on the same pattern-matching skills you're developing right now. The ability to classify equations accurately is a skill that will serve you throughout calculus, physics, and engineering.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the equation dy/dx = 5y − 2 is linear, but the equation dy/dx = 5y² − 2 is not. What specific feature of y changes between the two?
PROBLEM 2BASIC CALCULATION
Determine whether the equation 2·dy/dx + 6x·y = cos(x) is a linear first-order ODE. If it is, rewrite it in standard form dy/dx + P(x)·y = Q(x) and identify P(x) and Q(x).
PROBLEM 3INTERMEDIATE
Classify each of the following equations as (a) linear first-order ODE, (b) nonlinear first-order ODE, or (c) not first-order. Justify each answer. (i) dy/dx + eˣ·y = x² (ii) (dy/dx)² + y = 3 (iii) d²y/dx² − y = 0 (iv) dy/dx = y·ln(x) + 7
PROBLEM 4APPLIED
A tank initially contains 100 liters of pure water. Brine containing 3 grams per liter of salt flows in at 5 liters per minute. The well-mixed solution flows out at 5 liters per minute. If A(t) is the amount of salt (in grams) at time t, the situation is modeled by: dA/dt = 15 − (5A)/100. Is this a linear first-order ODE? Write it in standard form and identify P(t) and Q(t).
PROBLEM 5CRITICAL THINKING
A student claims that the equation dy/dx + x·y = y² is linear because the left side matches the standard form dy/dx + P(x)·y = Q(x) with P(x) = x and Q(x) = y². Is the student correct? Explain your reasoning and discuss what type of equation this actually is.

Lesson Summary

A linear first-order ODE is a differential equation that involves only one independent variable (ordinary), has a highest derivative of dy/dx (first-order), and features y and dy/dx only to the first power — never squared, inside trig or exponential functions, or multiplied together (linear). Every linear first-order ODE can be written in standard form: dy/dx + P(x)·y = Q(x), where P(x) and Q(x) are functions of x alone.

To classify an equation, apply the three-question checklist: (1) Is it ordinary? (2) Is the highest derivative first-order? (3) Does y appear linearly? A "No" at any stage means the equation does not qualify. Remember that complicated functions of x in the coefficients — such as sin(x), eˣ, or x³ — do not break linearity. Only the behavior of y and its derivatives matters. Mastering this identification step is the gateway to the integrating factor method and a wide range of real-world applications in science and engineering.

Varsity Tutors • Differential Equations • Identifying Linear First-Order ODEs