Second Order Non-homogeneous Constant Coefficient Differential Equation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
retracell
Messages
22
Reaction score
0

Homework Statement


Find a general solution to [tex]\frac{d^2x}{dt^2}-2\frac{dx}{dt}=1-4t+e^t[/tex]


Homework Equations


None really.


The Attempt at a Solution


I know that a complimentary solution is [tex]x=c_1+c_2e^{2t}[/tex]
But when I try to guess say: [tex]x_p=At+B+Ce^t[/tex] and plug into the DE, I do not get anything to equate to 4t. Do I have to guess a degree higher? And if so, do I include all coefficients such that my guess becomes [tex]x_p=At^2+Bt+C+De^t[/tex]?
 
Physics news on Phys.org
You're right, with a polynomial in the inhomogeneous part of your equation, you should check a degree higher than it. You should include all the coefficients as well, but it turns out C has no constraints (no x(t) part of your differential equation on the L.S.) so you can set it to 0. The rest comes out easily after substituting back into the DE.
 
Great thanks! Worked it out. So I guess I'm going by the fact that because my complementary solution has a constant term, I just multiply (At+B) by t.