SECTION 1
Historical Context & Motivation
Imagine you know that a car is accelerating at a specific rate, but you also know exactly where the car started. With both pieces of information, you can predict the car's exact position at any future time. This is precisely the idea behind solving a differential equation with an initial condition. The equation tells you how something changes, and the initial condition pins down where the story begins.
For centuries, mathematicians and scientists have been fascinated by equations that describe rates of change. From tracking the motion of planets to modeling how populations grow or how substances decay, ordinary differential equations (ODEs) have served as the backbone of scientific prediction. The development of techniques for solving these equations — especially first-order linear ones — unfolded gradually across the 17th, 18th, and 19th centuries.
1676 • Leibniz and Newton Lay the Foundations
1694 • Leibniz Solves Linear First-Order ODEs
1739 • Euler Develops the Integrating Factor
1800s • Initial Value Problems in Physics
The key question that this lesson addresses is: when you solve a differential equation, you typically get a family of solutions containing an arbitrary constant. How do you determine the one specific solution that matches a particular real-world scenario? The answer lies in applying an initial condition — a known value of the function at a specific point.
SECTION 2
Core Principles & Definitions
Before diving into the solving technique, let's establish the key ideas and vocabulary you need. A first-order linear ODE is a differential equation involving the first derivative of an unknown function y(x), where both y and dy/dx appear to the first power — no squares, no products of y with dy/dx, and no other nonlinear operations. When paired with an initial condition, the problem is called an initial value problem (IVP).
Standard Form
General Solution
Initial Condition
Integrating Factor
Particular Solution
KEY TAKEAWAY
SECTION 3
Visualizing the Family of Solutions
To build intuition, consider the differential equation dy/dx + y = 2. Its general solution is y = 2 + Ce−x. Different values of C produce different curves that all satisfy the ODE. The diagram below shows several of these curves. Notice how they all share the same long-term behavior — approaching y = 2 — but they start at different heights depending on C.
In the diagram above, each colored curve is one member of the solution family. Without an initial condition, you cannot tell which curve describes your system. The moment you specify a starting value — such as y(0) = 3 — you pick out exactly one curve from the entire family. That is the power of the initial value problem: it transforms an infinite family into a single, definite answer.
SECTION 4
Mathematical Framework — The Integrating Factor Method
The standard technique for solving a first-order linear ODE is the integrating factor method. Here is the complete framework, broken into the equations you need to know.
STANDARD FORM
P(x) is the coefficient of y, and Q(x) is the right-hand side. The coefficient of dy/dx must be 1 — if it isn't, divide the entire equation by whatever multiplies dy/dx.
INTEGRATING FACTOR
μ(x) is a special multiplier that transforms the left side of the equation into the derivative of a product. You do not need a constant of integration here — any antiderivative of P(x) works.
KEY IDENTITY
After multiplying both sides of the ODE by μ(x), the left side collapses into the derivative of the product μ(x) · y. This is what makes the method work — now you can integrate both sides directly.
GENERAL SOLUTION
C is the arbitrary constant that gets determined by the initial condition. This formula gives every possible solution to the ODE.
The Roadmap
SECTION 5
The Solving Process — Step by Step
The flowchart below maps out each decision point in the solving process. Follow the arrows from top to bottom — each box represents one action you take, and the final box is your answer.
The most common mistake students make is forgetting to put the equation into standard form before identifying P(x). For example, if you're given 2·(dy/dx) + 6y = 10, you must first divide everything by 2 to get dy/dx + 3y = 5. Only then is P(x) = 3. Another common pitfall is including a "+ C" in the integrating factor exponent — you don't need it there because any single antiderivative works.
SECTION 6
Worked Example
Let's solve a complete initial value problem step by step. We will work through every detail so you can see the method in action.
Solve dy/dx − 2y = 4, with y(0) = 1
- 1
Step 1 — Write in Standard Form
The equation is already in the form dy/dx + P(x)·y = Q(x). Comparing: dy/dx + (−2)·y = 4, so P(x) = −2 and Q(x) = 4.P(x) = −2, Q(x) = 4 - 2
Step 2 — Compute the Integrating Factor
The integrating factor is μ(x) = e^(∫P(x) dx) = e^(∫(−2) dx) = . We don't include a constant of integration here.μ(x) = - 3
Step 3 — Multiply Both Sides by μ(x)
Multiply through: · dy/dx − · y = . The left side is the derivative of the product: d/dx[ · y] = . You can verify this by applying the product rule to · y.d/dx[ · y] = - 4
Step 4 — Integrate Both Sides
Integrating: · y = ∫ dx = 4 · (−1/2) · + C = − + C. Remember to include the constant C on this step.· y = − + C - 5
Step 5 — Solve for y
Divide both sides by , which is the same as multiplying by : y = −2 + . This is the general solution.General solution: y = −2 + - 6
Step 6 — Apply the Initial Condition y(0) = 1
Substitute x = 0 and y = 1: 1 = −2 + C· = −2 + C. Solving: C = 3. Therefore the particular solution is y = −2 + .Particular solution: y = −2 + - 7
Verification
Check the ODE: dy/dx = , and −2y = −2(−2 + ) = 4 − . So dy/dx − 2y = + 4 − = 4 ✓. Check the IC: y(0) = −2 + 3(1) = 1 ✓.Both checks pass — the solution is correct.
SECTION 7
Strengths, Limitations, and Common Pitfalls
The integrating factor method is powerful, but like any technique, it has its sweet spots and its boundaries. The table below summarizes the key strengths and limitations you should keep in mind.
| Aspect | Strengths | Limitations |
|---|---|---|
| Applicability | Works for every first-order linear ODE, regardless of what P(x) and Q(x) are. | Does not work for nonlinear equations (e.g., dy/dx = y², or terms like y·(dy/dx)). |
| Systematic nature | Follows a clear, repeatable algorithm — no guessing or creative tricks required. | The integrals ∫P(x) dx and ∫μQ dx may be difficult or impossible to evaluate in closed form. |
| Uniqueness | When combined with an initial condition, the method always produces exactly one particular solution. | If the initial condition is outside the interval where P(x) and Q(x) are continuous, uniqueness may fail. |
| Setup | Only basic calculus operations are needed: differentiation and integration. | Forgetting to rewrite in standard form (coefficient of dy/dx equal to 1) is a very common error. |
Strengths and limitations of the integrating factor method
KEY TAKEAWAY
SECTION 8
Connection to Higher-Order and Advanced Topics
The ideas you've learned here — standard form, integrating factors, and initial conditions — serve as the foundation for virtually everything that comes next in differential equations. Understanding first-order linear IVPs prepares you for higher-order equations, systems, and even partial differential equations.
| Feature | First-Order Linear IVP | Second-Order Linear IVP |
|---|---|---|
| Equation form | dy/dx + P(x)y = Q(x) | d²y/dx² + P(x)dy/dx + R(x)y = Q(x) |
| Number of ICs needed | 1 condition: y(x₀) = y₀ | 2 conditions: y(x₀) = y₀ and y'(x₀) = y₁ |
| Constants in general solution | 1 arbitrary constant (C) | 2 arbitrary constants (C₁, C₂) |
| Solving method | Integrating factor | Characteristic equation, variation of parameters, or undetermined coefficients |
| Key application | Exponential growth/decay, mixing problems, simple circuits | Springs, oscillations, RLC circuits |
Comparison of first-order and second-order linear IVPs
Notice the pattern: the order of the equation equals the number of initial conditions you need and the number of arbitrary constants in the general solution. A third-order equation would require three ICs, and so on. The principle of matching initial conditions to constants is a thread that runs through all of differential equations. Mastering the first-order case gives you a template for tackling everything that follows.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A first-order linear ODE has the standard form dy/dx + P(x)·y = Q(x). To solve it, you compute the integrating factor μ(x) = e^(∫P(x) dx), multiply both sides of the ODE by μ(x), recognize that the left side becomes d/dx[μ·y], and integrate. This yields the general solution containing one arbitrary constant C.
An initial condition of the form y(x₀) = y₀ transforms the problem into an initial value problem (IVP). By substituting the initial condition into the general solution, you determine the unique value of C and obtain the particular solution — the one specific curve from the solution family that passes through the given starting point. Always verify your answer by checking it satisfies both the original ODE and the initial condition.