Worked example
Solve y′ + y = eˣ with y(0) = 0.
Worked solution
- Method and reasoningFor y′ + y = eˣ multiply by the integrating factor eˣ, then apply the initial condition.
- Multiply by the integrating factor eˣ.
- Then (eˣy)′ = e²ˣ.
- Integrating gives eˣy = e²ˣ/2 + C, and C = −.
- Hence y = (eˣ − ˣ)/2.