First-order linear equations
Objective. Use integrating factors with initial conditions.
- 1. Learn
- 2. Worked example
- 3. Practice
- 4. Feedback
- 5. Continue
Learn: the key idea
A first-order linear equation has the form dy/dx + P(x)y = Q(x), solved using an integrating factor μ(x) = e^∫P(x)dx that turns the left side into d/dx(μy). Multiply through by μ, integrate both sides, then divide by μ to isolate y, applying the initial condition to fix the constant. For dy/dx + y = x with μ = e^x, the equation becomes d/dx(e^x y) = xe^x, integrate by parts to get e^x y = xe^x − e^x + C. This method works even when the equation is not separable, provided it stays linear in y.
Worked example
Solve the first-order linear equation dy/dx + 2y = 4 with y(0) = 5.
- 1Integrating factor: μ = e^(2x)
- 2Form d/dx(e^(2x)y) = 4e^(2x)
- 3Integrate: e^(2x)y = 2e^(2x) + C
- 4Use y(0)=5: C=3, so y = 2 + 3e^(−2x)
Answer: y = 2 + 3e^(−2x)
Concept mastery
Based on your past attempts at this lesson — the question types to practise again come first.
Complete a practice set to see your concept breakdown here.
Practice
Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.
Start practisingCommon mistake. Forgetting to multiply the right-hand side Q(x) by the integrating factor as well as the left side; both sides must be multiplied by μ(x) before integrating, or the solution is wrong.
Your progress
Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.
0 of 5 steps complete
Your place saves automatically as you read.