Question
Question: Find the general solution of $y''-y=2e^x-10\sin(x)$, using the method of undetermined coefficients....
Find the general solution of y′′−y=2ex−10sin(x), using the method of undetermined coefficients.

The general solution is y(x)=c1ex+c2e−x+xex+5sin(x).
Solution
-
Complementary Solution (yc): Solve the homogeneous equation y′′−y=0. The characteristic equation is m2−1=0, which has roots m=±1. Therefore, the complementary solution is yc(x)=c1ex+c2e−x.
-
Particular Solution (yp): We find a particular solution for each term on the right-hand side of the non-homogeneous equation y′′−y=2ex−10sin(x).
-
For 2ex: Since ex corresponds to a root of the characteristic equation (m=1), we use the form yp1(x)=Axex. Substituting this into the equation yields A=1, so yp1(x)=xex.
-
For −10sin(x): Since ±i are not roots of the characteristic equation, we use the form yp2(x)=Bsin(x)+Ccos(x). Substituting this into the equation yields B=5 and C=0, so yp2(x)=5sin(x).
The particular solution is the sum of these: yp(x)=yp1(x)+yp2(x)=xex+5sin(x).
-
-
General Solution: The general solution is the sum of the complementary and particular solutions: y(x)=yc(x)+yp(x)=c1ex+c2e−x+xex+5sin(x).