Linear, nonhomogenous, 2nd order ODE IVP

In summary, the problem was to find the particular solution to the differential equation y''+4y=t^2+3e^t with initial conditions y(0)=0 and y'(0)=2. Using the annihilator method, the particular solution was found to be 7/10sin(2t)+3/5cos2t+1/4t^2+3/5e^t.
  • #1
mrmotobiker
48
0

Homework Statement


y''+4y=t^2+3e^t
y(0)=0
y'(0)=2

Homework Equations


CE: r^2+4
r=+/-2i
gs: y=c1 cos(2t) + c2 sin(2t)

The Attempt at a Solution



guess:
yp=(At^2+Bt+C)e^t
yp'=At^2e^t+2Ate^t+Bte^t+Be^t+Ce^t
yp''=At^2e^t+4Ate^t+Bte^t+2Ae^t+2Be^t+Ce^t

back into problem:
At^2e^t+4Ate^t+Bte^t+2Ae^t+2Be^t+Ce^t+4At^2e^t+4Ce^t=t^2+3e^t

which becomes:
5At^2e^t=t^2 then becomes: A=e^-t/5
then
4At^et+Bte^t+4Bte^t=0 which becomes: 4A+B+4B=0, B=-(4e^-t)/25

then:
2Ae^t+2Be^t+Ce^t+4Ce^t=3e^t, e^t's cancel which becomes:
2A+2B+5C=3 ---> C=[(75e^t)-2)e^-t]/125

ok, I'm sure I'm not doing this correctly. the book answer is:

7/10sin(2t)-19/40cos2t+1/4t^2-1/8+3/5e^t

what am i doing wrong? am i skipping a step?
 
Physics news on Phys.org
  • #2
do you know the annihilator method? Don't waste your time with this guesswork and learn the annihilator method, it will save you from unnecessary stress.
 
  • #3
When you're working out the particular solution, deal with each term on the right hand side SEPERATELY.
First consider = t^2, then consider = 3e^t, otherwise you'll confuse yourself.
i.e. do what you've been doing, except consider them as two separate cases, and then combine them in the final step.
Hope that helps.
 
Last edited:
  • #4
Your "guess" is wrong. You dont' have t2e-t on the right hand side, you have t2+ e-t. You should be trying At2+ Bt+ C+ Ee-t.

Or, as Pseudo Statistic said, handle them separately: try At2+ Bt+ C for t2 and Ee-t for e-t.
 
  • #5
oh. ok let me try that. is separating them called superposition?

i don't know the annihilator method, but i'll do some research to find out...would appreciate it if you could explain it if it's right off the top of your head. thanks!
 
  • #6
ok this is what i did:
CE: r^2+4
r=+/-2i
gs: y=c1 cos(2t) + c2 sin(2t)

separating: y''+4y=t^2
yp=At^2+Bt+C
yp'=2At+B
yp''=2A becomes 1/4t^2

y''+4y=3e^t
yp=yp'=yp''=Ae^t
solve and get 3/5e^t

so total is:
C2sin(2t)+C1cos2t+1/4t^2+3/5e^t
pluggin in the IC i get:

7/10sin(2t)+3/5cos2t+1/4t^2+3/5e^t

did i do this correctly? how come I'm not gettin the book answer? i looked through my algebra and it does cancel out to be c1=3/5. am i forgetting to add a constant somewhere?
 
  • #7
mrmotobiker said:
ok this is what i did:
CE: r^2+4
r=+/-2i
gs: y=c1 cos(2t) + c2 sin(2t)

separating: y''+4y=t^2
yp=At^2+Bt+C
yp'=2At+B
yp''=2A becomes 1/4t^2
WHAT becomes 1/4t^2? You want to solve y"+ 4y= t^2. So far you have yp"= 2A and 4yp= 4(At^2+ Bt+ C)= 4At^2+ 4Bt+ 4C so
yp"+ 4yp= 4At^2+ 4Bt+ (2A+4C)= t^2. For that to be true for all t, you must have 4A= 1, 4B= 0, 2A+ 4C= 0. C is not 0.

y''+4y=3e^t
yp=yp'=yp''=Ae^t
solve and get 3/5e^t
This is correct- you remembered the "4yp"!

so total is:
C2sin(2t)+C1cos2t+1/4t^2+3/5e^t
No. Your t^2 part is wrong.

pluggin in the IC i get:

7/10sin(2t)+3/5cos2t+1/4t^2+3/5e^t

did i do this correctly? how come I'm not gettin the book answer? i looked through my algebra and it does cancel out to be c1=3/5. am i forgetting to add a constant somewhere?
 
  • #8
oh sorry. i meant after the algebra, A becomes 1/4t^2. i guess maybe my entire mistake is my assumption that C=0. thanks! let me try it again.
 

FAQ: Linear, nonhomogenous, 2nd order ODE IVP

What is a linear, nonhomogeneous, 2nd order ODE?

A linear, nonhomogeneous, 2nd order ODE (ordinary differential equation) is a mathematical equation that involves a function and its derivatives up to the second order, where the function and its derivatives are multiplied by constants and added together. It is called nonhomogeneous because it includes a non-zero function on the right side of the equation, and it is called linear because the function and its derivatives are only raised to the first power.

What does it mean for an ODE to be "homogeneous"?

A homogeneous ODE is an equation where the function and its derivatives are only multiplied by constants and added together, without any non-zero function on the right side. This means that the equation is balanced, with no external forces or inputs affecting the function.

How is a 2nd order ODE different from a 1st order ODE?

A 1st order ODE only involves the first derivative of a function, while a 2nd order ODE involves the second derivative. This means that a 2nd order ODE is more complex and can have more solutions, as it takes into account the curvature of the function.

What is an initial value problem (IVP) for a 2nd order ODE?

An initial value problem (IVP) for a 2nd order ODE is a specific type of problem where the values of the function and its first derivative are given at a specific point, called the initial condition. This allows us to find a unique solution to the ODE that satisfies the given initial conditions.

How do you solve a linear, nonhomogeneous, 2nd order ODE IVP?

To solve a linear, nonhomogeneous, 2nd order ODE IVP, we use a technique called variation of parameters. This involves finding a particular solution to the nonhomogeneous equation and then adding it to the general solution of the corresponding homogeneous equation. The initial conditions are then used to determine the constants in the general solution, giving us the complete solution to the IVP.

Similar threads

Replies
3
Views
915
Replies
3
Views
1K
Replies
3
Views
2K
Replies
6
Views
2K
Replies
4
Views
2K
Replies
2
Views
1K
Back
Top