The characteristic equation k2−3k−4=0 of the homogeneous differential equation y′′−3y′−4y=0 is equivalent to (k+1)(k−4)=0, and hence has the roots k1=−1, k2=4. Since p(x)=−2 is a particular solution, we conclude that the general solution of
y′′−3y′−4y=8 is y=C1e−x+C2e4x−2.
Let us verify that the general solution satisfies the equation. It follows that y′=−C1e−x+4C2e4x, y′′=C1e−x+16C2e4x. Therefore,
C1e−x+16C2e4x−3(−C1e−x+4C2e4x)−4(C1e−x+C2e4x−2)=C1e−x+16C2e4x+3C1e−x−12C2e4x−4C1e−x−4C2e4x+8=8.
Consequently, y=C1e−x+C2e4x−2 indeed is the general solution of the differential equation
y′′−3y′−4y=8.
Comments