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.

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

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.

SECTION 2

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.

SECTION 3

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.

Start: Given an equationQ1: Is the function of one variable?(No partial derivatives like ∂y/∂t)YesNoPDEQ2: Is the highest derivative y′ (first)?(No y″, y‴, or higher)YesNoHigherQ3: Are y and y′ to the 1st power only?(No y², y·y′, sin(y), eʸ, ln(y), etc.)Coefficients may depend on x but NOT on y.YesNoNonlinearLinear First-Order ODE ✓dy/dx + P(x)·y = Q(x)
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.

SECTION 4

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)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)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+y2=x∣y⋅dy/dx=3∣dy/dx=sin(y)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.

SECTION 5

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.

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

Classification examples: check order first, then linearity

Linear vs. Nonlinear: Spotting the Difference✓ LINEARdy/dx + P(x)·y = Q(x)dy/dx + 3y = eˣP(x) = 3, Q(x) = eˣx²·y′ − y = sin(x)÷x² → P(x) = −1/x², Q(x) = sin(x)/x²dy/dx + (tan x)·y = cos xP(x) = tan x, Q(x) = cos xPattern: y and y′ to the 1st powerCoefficients are functions of x onlyNo products of y and y′✗ NONLINEARViolates at least one linearity ruledy/dx + y² = 0⚠ y² — power ≠ 1y · dy/dx + x = 1⚠ y·y′ — product of y and its derivativedy/dx = sin(y)⚠ sin(y) — nonlinear function of yPattern: y or y′ raised to a power ≠ 1Or y appears inside sin, cos, eʸ, ln, etc.Or y is multiplied by y′
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.

SECTION 6

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=x3⋅exx · 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. 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. 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. 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. 4

    Step 4 — Write in Standard Form

    Divide 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.

SECTION 7

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.

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

Comparison of linear and nonlinear first-order ODEs

✦

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.

SECTION 8

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.

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

How today's skills connect to future topics

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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?
Show answer
In the first equation, y appears to the first power (5y), which satisfies the linearity requirement. In the second equation, y is raised to the second power (5y²), which violates linearity. The standard form dy/dx + P(x)·y = Q(x) requires that y and dy/dx each appear to the first power only. Rewriting the first equation: dy/dx − 5y = −2, which matches the standard form with P(x) = −5 and Q(x) = −2. The second equation cannot be written in this form because y² is a nonlinear term in y.

Question 2: BASIC 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).
Show answer
Yes, this is a linear first-order ODE. The highest derivative is dy/dx (first-order). The dependent variable y appears only to the first power, and dy/dx appears only to the first power. They are not multiplied together. The right side, cos(x), depends only on x. To put it in standard form, divide every term by 2: dy/dx + 3x·y = cos(x)/2. Therefore P(x) = 3x and Q(x) = cos(x)/2.

Question 3: INTERMEDIATE

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
Show answer
(i) Linear first-order ODE. The term eˣ·y has y to the first power with coefficient eˣ (a function of x only). Standard form: dy/dx + eˣ·y = x², so P(x) = eˣ and Q(x) = x². (ii) Nonlinear first-order ODE. Although the highest derivative is dy/dx (first-order), it is raised to the second power: (dy/dx)². Linearity requires dy/dx to appear only to the first power. (iii) Not first-order. The highest derivative is d²y/dx², making this a second-order equation. (iv) Linear first-order ODE. Rewrite as dy/dx − ln(x)·y = 7. Here y appears to the first power, and ln(x) is a function of x only. P(x) = −ln(x), Q(x) = 7.

Question 4: APPLIED

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).
Show answer
Yes, this is a linear first-order ODE. The dependent variable is A(t), and the independent variable is t. The highest derivative is dA/dt (first-order). A appears to the first power in the term −(5A)/100 = −A/20, and it is not multiplied by dA/dt. To write the standard form, rearrange: dA/dt + (1/20)·A = 15. Comparing with dy/dx + P(x)·y = Q(x), we have P(t) = 1/20 (a constant) and Q(t) = 15 (also a constant). This is actually a special case — a linear first-order ODE with constant coefficients — and it models the classic mixing problem in differential equations.

Question 5: CRITICAL 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.
Show answer
The student is incorrect. The standard form dy/dx + P(x)·y = Q(x) requires that Q(x) depend only on x, not on y. Here the right side is y², which is a nonlinear function of the dependent variable y. You cannot treat y² as Q(x) because Q must be a function of x alone. This equation is actually a Bernoulli equation of the form dy/dx + P(x)·y = Q(x)·yⁿ with n = 2. While the left side looks linear, the presence of y² on the right side makes the overall equation nonlinear. The student's mistake highlights a common error: checking only part of the equation for linearity. You must examine every term — on both sides of the equals sign — and verify that y and dy/dx each appear only to the first power throughout the entire equation.

SUMMARY

Lesson Summary

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