Is My Trial Function Correct for Solving this ODE? (Exam Tomorrow)

Click For Summary
SUMMARY

The discussion centers on solving the ordinary differential equation (ODE) y'' - 3y' + 2y = e^x + 1. The user, James, correctly identifies the complementary function as y = A e^x + B e^{2x} and proposes a trial function y = Cx e^x + D due to overlap with the complementary function. After substituting, he concludes that C = -1 and D = 1/2, leading to the general solution y = A e^x + B e^{2x} - x e^x + 1/2. However, he notes that Mathematica presents a different solution format, which he later attributes to the use of different constants.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with complementary functions in ODEs
  • Knowledge of trial functions and their application in solving ODEs
  • Basic proficiency in using Mathematica for verification of solutions
NEXT STEPS
  • Study the method of undetermined coefficients for solving ODEs
  • Explore the differences between complementary and particular solutions in ODEs
  • Learn how to use Mathematica for solving differential equations
  • Investigate the implications of constant variations in ODE solutions
USEFUL FOR

Students preparing for exams in differential equations, educators teaching ODE concepts, and anyone interested in verifying solutions using computational tools like Mathematica.

jdstokes
Messages
520
Reaction score
1
[itex]y''-3y'+2y=\mathrm{e}^x +1[/itex]

Find [itex]y[/itex].

Going through the normal procedure we get the complementary function

[itex]y = A\mathrm{e}^x + B\mathrm{e}^{2x}[/itex].

Using the trial function

[itex]y = Cx\mathrm{e}^x + D[/itex]
(because of overlap with the complementary function)

leads to
[itex]-C\mathrm{e}^x + 2D = \mathrm{e}^x+1[/itex]

Does this mean

[itex]C=-1,D=1/2[/itex]??

If so, the general soln is [itex]y = A\mathrm{e}^x + B\mathrm{e}^{2x} -x\mathrm{e}^x + 1/2[/itex].

According to Mathematica, however, the solution should be of the form

[itex]y = A\mathrm{e}^x + B\mathrm{e}^{2x} + 1/2(1-2\mathrm{e}^x -2\mathrm{e}^xx)[/itex].

Am I using the wrong trial function or what?

Thanks in advance.

James
 
Physics news on Phys.org
Nevermind, I figured out that Mathematica is using a different set of constants.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
12
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
4K
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 11 ·
Replies
11
Views
4K