Course contentsShow
← Mathematics
Lesson 2320 of 3,12148. Ordinary Differential EquationsFree lesson

Solving Homogeneous First-Order Linear ODEs

Solve dy/dx + P(x)y = 0 using separation of variables to find y = Ce^(-∫P(x)dx).

Solving Homogeneous First-Order Linear ODEs

What You'll Learn

You'll learn how to solve any homogeneous first-order linear ODE using separation of variables to obtain an explicit, general solution.

The Core Idea

A homogeneous first-order linear ODE has the standard form:

dy/dx + P(x)y = 0

Notice the right side is zero—that's what makes it homogeneous. The function P(x) can be any function of x.

The beauty of this equation is that it's always separable. Here's how to solve it:

Step-by-Step Solution Process

1. Rearrange to separate variables:

dy/dx = -P(x)y

2. Divide both sides by y (assuming y ≠ 0):

(1/y) dy/dx = -P(x)

3. Rewrite in differential form:

(1/y) dy = -P(x) dx

4. Integrate both sides:

∫(1/y) dy = ∫-P(x) dx
ln|y| = -∫P(x) dx + C₁

5. Exponentiate to solve for y:

|y| = e^(-∫P(x)dx + C₁) = e^(C₁) · e^(-∫P(x)dx)

6. Absorb constants:

Since e^(C₁) is just a positive constant and we can include ±1 from the absolute value, we write:

y = Ce^(-∫P(x)dx)

where C is an arbitrary constant (can be positive, negative, or zero).

Why This Works

Think of it as "unwinding" the differential equation. The equation tells you how y changes with x, and integration reconstructs y from that rate of change—like finding distance from velocity.

Key Takeaway: Any homogeneous first-order linear ODE dy/dx + P(x)y = 0 has the general solution y = Ce^(-∫P(x)dx), found by separating variables and integrating.