Separable equations can be solved by moving all the $y$'s to one side. An equation like $y' + 2y = 4$ also separates, but $y' + 2y = e^{t}$ does not. Linear first-order equations need one new idea: multiply by a well-chosen function so that the left side becomes the derivative of a product.
Key idea
Why it works
- Divide by the coefficient of $y'$ to reach standard form, and read off $p(t)$.
- Compute $\mu = e^{\int p\,dt}$ (no constant needed).
- Multiply both sides by $\mu$ and write the left side as $(\mu y)'$.
- Integrate both sides (with $+C$), divide by $\mu$, then use the initial condition.
Worked example: Constant coefficients
- $p = 2$, so $\mu = e^{2t}$.
- Multiply: $e^{2t}y' + 2e^{2t}y = (e^{2t}y)'$ $= 4e^{2t}$.
- Integrate: $e^{2t}y = 2e^{2t} + C$, so $y = 2 + Ce^{-2t}$.
- $y(0) = 2 + C = 5$ gives $C = 3$.
Answer: $y = 2 + 3e^{-2t}$. The 2 is the equilibrium; the $3e^{-2t}$ part dies out.
Worked example: Not yet in standard form
- Divide by $t$: $y' + \frac{2}{t}y = 6$, so $p = \frac{2}{t}$.
- $\mu = e^{2\ln t} = t^{2}$.
- Multiply: $(t^{2}y)' = 6t^{2}$, so $t^{2}y = 2t^{3} + C$ and $y = 2t + \frac{C}{t^{2}}$.
- $y(1) = 2 + C = 4$ gives $C = 2$.
Answer: $y = 2t + \frac{2}{t^{2}}$
Worked example: When the forcing matches the decay
- $p = -1$, so $\mu = e^{-t}$.
- Multiply: $(e^{-t}y)' = e^{-t}e^{t} = 1$.
- Integrate: $e^{-t}y = t + C$, so $y = (t + C)e^{t}$.
- $y(0) = C = -1$.
Answer: $y = (t - 1)e^{t}$. The integral produced a factor $t$, a first sign of resonance.
Common mistake