Let's solve this problem
y′′−y′+2y=2ex:
Second-order linear non-homogeneous differential equation with constant coefficients
A second order linear, non-homogeneous ODE has formed of ay′′+by′+cy=g(x)
The General solution to a(x)y′′+b(x)y′+c(x)y=g(x) can be written as
y=yh+yp
yh is the solution to the homogeneous ODE a(x)y′′+b(x)y′+c(x)y=0
yp the particular solution, is any function That satisfies the non-homogenous equation
Find yh by solving y′′−y′+2y=0; y=e2x(c1cos(27x)+c2sin(27x))
Find yp by solving y′′−y′+2y=2ex: y=ex
The general solution y=yh+yp
y=e2x(c1cos(27x)+c2sin(27x))+ex
Plotting:e2x(c1cos(27x)+c2sin(27x))+exassumingc1=1c2=1
Comments