Example — yy=exy' - y = e^x

Here p(x)=1p(x)=-1, P(x)=xP(x)=-x, q(x)=exq(x)=e^x. We apply the solution formula: y=ex[exexdx+C]=ex(x+C).y = e^{x}\left[\int e^x\cdot e^{-x}\,dx + C\right] = e^x(x + C).

Check: y=ex(x+C)+ex=ex(x+C+1)y' = e^x(x+C) + e^x = e^x(x+C+1), therefore yy=ex(x+C+1)ex(x+C)=exy'-y = e^x(x+C+1)-e^x(x+C) = e^x. ✓

Topics: Differential equations
Concepts: First-order linear ODE
Skills: Integrating · Solving equations · Using formulae