Solving a Nonhomogeneous 2nd Order ODE with Initial Conditions

  • Thread starter Thread starter nlsherrill
  • Start date Start date
  • Tags Tags
    2nd order
Click For Summary
SUMMARY

The discussion centers on solving the nonhomogeneous second-order ordinary differential equation (ODE) given by y'' + y = e^x + x^3 with initial conditions y(0)=2 and y'(0)=0. The correct particular solution identified by the professor is y_P = (1/2)e^x + x^3 - 6x. The student attempted to find the particular solution using a trial function y_P = Ae^x + Bx^3 + Cx^2 + Dx + E but encountered issues with coefficient cancellation, leading to confusion about the correct terms in the solution.

PREREQUISITES
  • Understanding of second-order ordinary differential equations (ODEs)
  • Familiarity with complementary and particular solutions
  • Knowledge of the method of undetermined coefficients
  • Basic calculus, including differentiation and solving equations
NEXT STEPS
  • Study the method of undetermined coefficients in detail
  • Practice solving nonhomogeneous second-order ODEs with various initial conditions
  • Learn about the Laplace transform as an alternative method for solving ODEs
  • Explore the concept of linear independence of solutions in ODEs
USEFUL FOR

Students studying differential equations, educators teaching ODEs, and anyone looking to strengthen their understanding of solving nonhomogeneous second-order ODEs.

nlsherrill
Messages
320
Reaction score
1

Homework Statement



This was an example the teacher gave us to do in class. Unfortunately, I was a little behind on the notes so was not able to copy down the steps to solving this one. I did, however, get an answer

problem:

y'' + y = e^x + x^3, initial conditions y(0)=2, y'(0)=0


Homework Equations





The Attempt at a Solution



The answer my prof gave was y=(3/2)cos(x)+(11/2)sin(x)+(1/2)e^(x)+x^3-6x

I get how he got the complimentary part, but the particular solution I feel I am very close too, and may have just made some slightly wrong assumption as a 'trial' solution.

what I did for a trial to the particular solution was...

yp=Ae^x +Bx^3+Cx^2+Dx+E and set this equal too e^x + x^3.

I found the second derivative to be (Ae^x + 6Bx + 2c). So far I have:

(Ae^x + 6Bx + 2c) + (Ae^x +Bx^3+Cx^2+Dx+E) = e^x + x^3

I then gathered terms and solved for coefficients to get A=.5, B=1, C=0, D=-6, and E=0.

simplifying I ended up with e^x +x^3 = e^x +x^3... so I did something wrong somewhere I guess.

I understand everything except how my prof got (1/2)e^(x)+x^3-6x as the particular solution. I even got all the terms he listed as the particular solution, but some of them ended up canceling out so my particular I believe is wrong.
 
Physics news on Phys.org
nlsherrill said:

The Attempt at a Solution


I found the second derivative to be (Ae^x + 6Bx + 2c). So far I have:

(Ae^x + 6Bx + 2c) + (Ae^x +Bx^3+Cx^2+Dx+E) = e^x + x^3

I then gathered terms and solved for coefficients to get A=.5, B=1, C=0, D=-6, and E=0.

simplifying I ended up with e^x +x^3 = e^x +x^3... so I did something wrong somewhere I guess.

I understand everything except how my prof got (1/2)e^(x)+x^3-6x as the particular solution. I even got all the terms he listed as the particular solution, but some of them ended up canceling out so my particular I believe is wrong.

According to your PI, you should get yPI= (1/2)ex+x3-6x.

Which is correct.
 

Similar threads

Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
6
Views
3K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K