Linear ODE y' = ay + b: the one-formula solution
Any first-order linear ODE with constant coefficients solves in 30 seconds with this formula. Bonus: initial condition.
The theorem
For the ODE (, constants), solutions are:
with a constant.
Break it into 2 pieces
General solution = homogeneous solution + constant particular solution.
- Homogeneous โ
- Particular (constant ): solve , so
- Total:
Special case:
If , equation becomes and . Exponential growth/decay.
Finding with an initial condition
A condition like "" or "" pins down .
Example: solve with .
- General: .
- Condition: , so .
- Unique: .
Verification
Always plug back in: , and . โ
Real applications
- Capacitor charging:
- Newtonโs cooling:
- Malthusian growth ():
Common mistakes
- Confusing and .
- Forgetting the particular solution: alone works only if .
- Sign error on .
Solve y' = 2y โ 10 with y(0) = 3.
Mini-quiz
Question 1 / 3General solution of y' = 4y?
