01 / 21

Identifying Linear
First-Order ODEs

Learn to recognize the standard form of a linear first-order ordinary differential equation and distinguish it from nonlinear counterparts.

Differential Equations

What Is an ODE?

An Ordinary Differential Equation (ODE) is an equation that relates an unknown function \( y(x) \) to its derivatives with respect to a single independent variable \( x \).

The order of an ODE is the highest derivative that appears. A first-order ODE involves only \( \frac{dy}{dx} \) (or \( y' \)), never \( y'' \), \( y''' \), etc.

What Does "Linear" Mean?

A first-order ODE is linear if both \( y \) and \( \frac{dy}{dx} \) appear only to the first power and are not inside nonlinear functions such as \( \sin(y) \), \( e^y \), or \( y^2 \).

✓ Linear
\( y \) and \( y' \) appear to the first power, multiplied only by functions of \( x \).
✕ Nonlinear
\( y^2 \), \( (y')^3 \), \( \sin(y) \), \( yy' \), or \( e^y \) appear anywhere in the equation.

Why Identification Matters

Correctly identifying an ODE as linear unlocks a powerful toolkit: integrating factors, superposition, and guaranteed existence/uniqueness theorems. Nonlinear equations require entirely different strategies.

Integrating Factor
A systematic method that always solves linear first-order ODEs.
Superposition
Solutions can be added together, a property exclusive to linear equations.
Uniqueness
Under mild conditions, linear ODEs have exactly one solution through each initial point.

The Standard Form

Every linear first-order ODE can be written in standard form:

Here \( P(x) \) and \( Q(x) \) are functions of \( x \) alone (they may be constants). The coefficient of \( \frac{dy}{dx} \) must be exactly 1. If it isn't, divide through to make it 1.

Anatomy of the Standard Form

\( \frac{dy}{dx} \;+\; P(x)\,y \;=\; Q(x) \)
Derivative term
(coefficient = 1)
\( P(x) \) multiplies \( y \)
(function of \( x \) only)
Forcing function
(function of \( x \) only)
Linear in \( y \): no \( y^2 \), no \( \sin(y) \), no \( yy' \)

Linear vs Nonlinear

Linear Nonlinear
Power of \( y \) \( y^1 \) only \( y^2, y^3, \sqrt{y}, \ldots \)
Power of \( y' \) \( (y')^1 \) only \( (y')^2, (y')^{1/2}, \ldots \)
Products No \( y \cdot y' \) \( y \cdot y' \) appears
Transcendental No \( \sin(y), e^y, \ln(y) \) \( \sin(y), e^y, \ln(y) \)
Solving method Integrating factor Varies (separation, etc.)

The General Form

Sometimes a linear first-order ODE appears in general form with a non-unit leading coefficient:

To convert to standard form, divide every term by \( a(x) \):

How to Identify: Step-by-Step

1
Locate the highest derivative. If it is \( \frac{dy}{dx} \) (or \( y' \)), the ODE is first-order.
2
Check the power of \( y' \). It must appear to exactly the first power: no \( (y')^2 \), no \( \sqrt{y'} \).
3
Check the power of \( y \). It must appear to exactly the first power: no \( y^2 \), no \( \frac{1}{y} \).
4
Scan for products and transcendentals. No \( y \cdot y' \), no \( \sin(y) \), \( e^y \), or \( \ln(y) \).
5
Rearrange to standard form. Write as \( y' + P(x)\,y = Q(x) \). If successful, it is linear.

Example 1: Straightforward Case

1
Order: Highest derivative is \( y' \) → first-order ✓
2
Power of \( y' \): Appears as \( (y')^1 \) → ✓
3
Power of \( y \): Appears as \( y^1 \) → ✓
4
Standard form: \( y' + \underbrace{(-2)}_{P(x)}\,y = \underbrace{\sin(x)}_{Q(x)} \) → Linear ✓

Example 2: Needs Rearranging

1
Order: Highest derivative is \( y' \) → first-order ✓
2
Linearity: \( y' \) and \( y \) both appear to the first power. No products \( yy' \), no \( y^2 \). → linear ✓
3
Divide by \( x^2 \): \( y' + \frac{3}{x}\,y = \frac{e^x}{x^2} \)
4
Result: \( P(x) = \frac{3}{x} \), \( Q(x) = \frac{e^x}{x^2} \) → Standard form ✓

Example 3: Nonlinear Trap

1
Order: Highest derivative is \( y' \) → first-order ✓
2
Power of \( y \): The term \( y^2 \) means \( y \) appears to the second power → Fails linearity ✕
3
Conclusion: This is a nonlinear first-order ODE (specifically, a Riccati equation).

Tricky Classifications

✓ \( y' + e^x\,y = x^3 \)
Linear. The \( e^x \) multiplies \( y \), not inside \( y \). Here \( P(x) = e^x \).
✕ \( y' + e^y = x \)
Nonlinear. The \( e^y \) is a transcendental function of \( y \).
✓ \( y' = -\frac{y}{x} + \ln(x) \)
Linear. Rewrite: \( y' + \frac{1}{x}\,y = \ln(x) \). The \( \ln \) is applied to \( x \), not \( y \).
✕ \( y' = y\,\ln(y) \)
Nonlinear. The product \( y\,\ln(y) \) is nonlinear in \( y \).

Decision Flowchart

Given ODE
Highest derivative = \( y' \) ?
Not 1st-order No Yes
\( y \) and \( y' \) each to first power only?
Nonlinear No Yes
No \( yy' \), \( \sin(y) \), \( e^y \), \( \ln(y) \), etc.?
Nonlinear No Yes Linear First-Order ODE ✓

Common Mistakes

✕ Confusing \( f(x) \) with \( f(y) \)
Seeing \( \sin(x) \) or \( e^x \) and calling the ODE nonlinear. Linearity is about \( y \), not \( x \). Terms like \( \sin(x)\,y \) are perfectly linear.
✕ Missing hidden products
An equation like \( y\,\frac{dy}{dx} = x \) looks simple but the product \( y \cdot y' \) makes it nonlinear.
✕ Forgetting to normalize
Seeing \( 2y' + 4y = 8 \) and panicking. Just divide by 2: \( y' + 2y = 4 \). Still linear.

Quick Reference Table

Equation Linear? Reason
\( y' + 3y = x^2 \) Yes \( P(x) = 3,\; Q(x) = x^2 \)
\( y' + y^2 = 0 \) No \( y^2 \) is nonlinear
\( xy' - y = e^x \) Yes Divide by \( x \): standard form
\( y' = \sin(y) \) No \( \sin(y) \) is transcendental in \( y \)
\( y' + (\tan x)\,y = \cos x \) Yes \( P(x) = \tan x,\; Q(x) = \cos x \)
\( (y')^2 + y = x \) No \( (y')^2 \) is nonlinear

Question 1 of 5

Which of the following is a linear first-order ODE?

Question 2 of 5

Consider the ODE: \( 3x\,\frac{dy}{dx} - 6y = x^3 \). What are \( P(x) \) and \( Q(x) \) in standard form?

Question 3 of 5

Why is \( \frac{dy}{dx} = y\,\ln(y) \) classified as nonlinear?

Question 4 of 5

Which term makes the ODE \( y'' + 3y' - y = \cos(x) \) not a first-order equation?

Question 5 of 5

The equation \( \frac{dy}{dx} + (\sin x)\,y = 0 \) is: