# 2nd order differential equation: undetermined coefficients

dmoney123

y''-y=t-4e^(-t)

## Homework Equations

method of undetermined coefficients

## The Attempt at a Solution

solving for characteristic equation first

y''-y=0

r^2-1=0

c_1e^(-t)+c_2e^(t)

RHS

particular solution

t-4e^(-t)

y_p(t)= At+B+Ce^(-t)

y_pt'(t)=A-Ce^(-t)

y_p''(t)=Ce^(-t)

plug into LHS

Ce^(-t)-At-B-Ce^(-t)=t-4e^(-t)

-A=t
A=-1

B=0

C cancels on the left... I am not sure how to any further?

Thanks

Mentor

y''-y=t-4e^(-t)

## Homework Equations

method of undetermined coefficients

## The Attempt at a Solution

solving for characteristic equation first

y''-y=0

r^2-1=0

c_1e^(-t)+c_2e^(t)

RHS

particular solution

t-4e^(-t)

y_p(t)= At+B+Ce^(-t)
No, this won't work, since e-t is already a solution in the complementary equation. Do you know what to do when you run into this?
dmoney123 said:
y_pt'(t)=A-Ce^(-t)

y_p''(t)=Ce^(-t)

plug into LHS

Ce^(-t)-At-B-Ce^(-t)=t-4e^(-t)

-A=t
A=-1

B=0

C cancels on the left... I am not sure how to any further?

Thanks

dmoney123
No, this won't work, since e-t is already a solution in the complementary equation. Do you know what to do when you run into this?

so the guess becomes At+B+Cte^(-t) right? When I plug that back in, it still cancels out

Mentor