Linear ODEs with
Initial Conditions
Learn to solve first-order linear differential equations using integrating factors and apply initial conditions to find unique solutions.
What is an ODE?
An Ordinary Differential Equation (ODE) is an equation that relates a function \( y(x) \) to its derivatives. It describes how a quantity changes with respect to one independent variable.
Why Initial Conditions Matter
A first-order ODE has infinitely many solutions, forming a family of curves. An initial condition such as \( y(x_0) = y_0 \) selects exactly one curve from the family.
The Standard Form
Every first-order linear ODE can be written in standard form by isolating \( \frac{dy}{dx} \):
The Integrating Factor
The key to solving a linear ODE is the integrating factor \( \mu(x) \). It transforms the left side into an exact derivative.
Multiplying both sides of the ODE by \( \mu(x) \) gives:
Why It Works
General vs Particular Solution
Separable vs Linear ODEs
| Separable | Linear (First-Order) | |
|---|---|---|
| Form | \( \frac{dy}{dx} = f(x)\,g(y) \) | \( \frac{dy}{dx} + P(x)\,y = Q(x) \) |
| Method | Separate & integrate | Integrating factor |
| Requirement | RHS must factor as \( f(x) \cdot g(y) \) | \( y \) appears linearly (degree 1) |
| Overlap? | Some ODEs are both separable and linear | |
Step-by-Step Method
Example 1: Constant Coefficient
Example 1: Graph
Example 2: Variable Coefficient
Example 3: Exponential Coefficient
Solution Structure
Common Mistakes
Question 1 of 5
What is the integrating factor for the ODE \( \frac{dy}{dx} + 4y = 8 \)?
Question 2 of 5
Given the general solution \( y = 5 + Ce^{-x} \) and the initial condition \( y(0) = 3 \), what is the value of \( C \)?
Question 3 of 5
For the ODE \( x\frac{dy}{dx} + 2y = x^3 \), what is the first step to apply the integrating factor method?
Question 4 of 5
What is the particular solution to \( \frac{dy}{dx} + y = 0 \) with \( y(0) = 7 \)?
Question 5 of 5
The integrating factor for \( \frac{dy}{dx} - \frac{2}{x}y = x \) (with \( x > 0 \)) is: