Second Order ODE, With Initial Conditions

Click For Summary
SUMMARY

The discussion focuses on solving the second-order ordinary differential equation (ODE) y'' + 4y = t² + 6e^t with initial conditions y(0) = 0 and y'(0) = 5. The general solution is derived using the complementary solution yc = sin(2t) + cos(2t) and the method of undetermined coefficients for the particular solution. The final solution is confirmed as y = 1.9sin(2t) - 1.075cos(2t) + 0.25t² - 0.125 + 1.2e^t, which satisfies both the ODE and the initial conditions.

PREREQUISITES
  • Understanding of second-order ordinary differential equations (ODEs)
  • Familiarity with the method of undetermined coefficients
  • Knowledge of complementary and particular solutions
  • Ability to apply initial conditions to ODE solutions
NEXT STEPS
  • Study the method of undetermined coefficients in detail
  • Explore complementary and particular solutions for different types of ODEs
  • Learn about the Laplace transform for solving ODEs
  • Practice solving second-order ODEs with varying initial conditions
USEFUL FOR

Students studying differential equations, mathematicians, and engineers involved in modeling dynamic systems using second-order ODEs.

checkmatechamp
Messages
23
Reaction score
0

Homework Statement


y'' + 4y = t2 + 6et; y(0) = 0; y'(0) = 5

Homework Equations



The Attempt at a Solution



So, getting the general solution, we have r2 + 4 = 0, so r = +/- 2i

So the general solution is yc = sin(2t) + cos(2t)

I then used the method of undetermined coefficients to figure that the particular solution had a form At2 + Bt + C + Det + E = 0, and found that A = 0.25, B = 0 , C = 0, D = 1.2, E = 2

So the overall solution is y = c1sin(2t) + c2cos(2t) + 0.25t2 + 1.2et + 2

The derivative is y' = 2c1*cos(2t) - 2c2*sin(2t) + 0.5t + 1.2et

So I got that 0 = 0 + c2 + 0 + 1.2 + 2, which means that c2 + 3.2 = 0, which means that c2 = -3.2

5 = 2c1 - 0 + 0 + 1.2, which means that 2c1 = 3.8, and c1 = 1.9

So the overall equation should be y = 1.9sin(2t) - 3.2*cos(2t) + 0.25t2 + 1.2et + 2.

But when I enter it as an answer, it tells me it's wrong. Where did I make a mistake?
 
Physics news on Phys.org
checkmatechamp said:

Homework Statement


y'' + 4y = t2 + 6et; y(0) = 0; y'(0) = 5

Homework Equations



The Attempt at a Solution



So, getting the general solution, we have r2 + 4 = 0, so r = +/- 2i

So the general solution is yc = sin(2t) + cos(2t)

No, this is only the complementary solution, i.e. the solution to the homogeneous equation.

I then used the method of undetermined coefficients to figure that the particular solution had a form At2 + Bt + C + Det + E = 0, and found that A = 0.25, B = 0 , C = 0, D = 1.2, E = 2

Why do you have two different constant terms?

So the overall solution is y = c1sin(2t) + c2cos(2t) + 0.25t2 + 1.2et + 2

The derivative is y' = 2c1*cos(2t) - 2c2*sin(2t) + 0.5t + 1.2et

So I got that 0 = 0 + c2 + 0 + 1.2 + 2, which means that c2 + 3.2 = 0, which means that c2 = -3.2

5 = 2c1 - 0 + 0 + 1.2, which means that 2c1 = 3.8, and c1 = 1.9

So the overall equation should be y = 1.9sin(2t) - 3.2*cos(2t) + 0.25t2 + 1.2et + 2.

But when I enter it as an answer, it tells me it's wrong. Where did I make a mistake?

The general solution of the ODE is the sum of the particular solution and the complementary solution.

Also, you can't apply the initial conditions solely to the complementary solution. These must be applied to the general solution of the ODE to work out the values of the undetermined coefficients.

http://tutorial.math.lamar.edu/Classes/DE/UndeterminedCoefficients.aspx
 
Alright, so for the particular solution:
yp = At^2 + Bt + C + De^t
yp' = 2At + B + De^t
yp'' = 2A + De^t

2A + De^t + 4(At^2 + Bt + C + De^t) = t^2 + 6e^t

2A + De^t + 4At^2 + 4Bt + 4C + De^t = t^2 + 6e^t

So grouping the terms together, you get 4A = 1, so A = 0.25

De^t = 6e^t, so D = 6

2A + 4C = 0
2(1) + 4C = 0
4C = -2
C = -0.5

So yp = 0.25t^2 - 0.5 + 6e^t

y = c1sin(2t) + c2cos(2t) + 6e^t + 0.25t^2 - 0.5

y' = 2c1*cos(2t) - 2c2*sin(2t) + 0.5t + 6e^t

0 = 0 + c2 + 6 + 0 - 0.5
-5.5 = c2

5 = 2c1 + 6

2c1 = -1

c1 = -0.5

So the final solution is y = -0.5sin(2t) -5.5 cos(2t) + 6e^t + 0.25t^2 - 0.5. Does this look correct?
 
You can check it yourself. It's good practice.

Does it satisfy the original ODE?

Does it satisfy the initial values prescribed for y and y'?
 
After some checking, I finally entered the answer y = 1.9*sin(2t) - 1.075*cos(2t) + 0.25t^2 - 0.125 + 1.2e^t. Thank you so much for your help! :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
7
Views
2K