Non-homogeneous differential equation, undetermined coefficients

Click For Summary

Discussion Overview

The discussion revolves around solving a non-homogeneous differential equation of the form y'' + 6y' + 9y = 4e^(-x) with specified initial conditions. Participants explore the complementary and particular solutions, addressing challenges in deriving the correct coefficients and solutions.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant presents the equation and their initial attempts at finding the complementary solution, noting confusion with the coefficients.
  • Another participant identifies that the characteristic equation has a repeated root, suggesting the homogeneous solution should include a term with x multiplied by the exponential function.
  • A later reply acknowledges the suggestion and mentions that correcting the derivative for the term involving C2 resolves some issues but still leaves some uncertainty regarding the coefficients.
  • One participant provides a detailed step-by-step solution, including the derivation of the particular solution and the application of initial conditions, but does not imply consensus on the approach taken.

Areas of Agreement / Disagreement

Participants express differing views on the correct form of the homogeneous solution and the subsequent coefficients. There is no consensus on the final solution, as some participants have resolved their issues while others continue to seek clarification.

Contextual Notes

Some limitations in the discussion include the potential for misinterpretation of the initial conditions and the specific form of the particular solution. The discussion does not fully resolve the mathematical steps involved in arriving at the final solution.

ToastIQ
Messages
11
Reaction score
0
Hi!
I've been stuck on this problem for 2 days. I'm new here and I've just spent another hour on trying to figure out Latex, but it always ends up in a mess so I'll try without. I hope that's okay.

The equation is

y''+6y'+9y=4e-x

with the value boundaries (I think that's what it's called in english?) y(0)=2 and y'(0)=-2.

I got the complementary solution to yc=C1e-3x+C2e-3x.

I'm assuming my mistake is somewhere after this. I set up the particular solution:

yp=Ae-x and get
y'p=-Ae-x and y''p=Ae-x.
I get A=1. Combining complementary and particular solution:

y=C1e-3x+C2e-3x+e-x

I can't seem to get the right coefficients. The result should be

y=(1+2x)e-3x+e-x.

I've tried with and without the 4 in 4e-x, I've tried multiplying by x to get a higher degree and several other alternatives. I've been searching the internet for the most of the past 48 hours. I read somewhere that e-x is a "special case" but no example for this case was given. My textbook doesn't touch upon this at all. It would be very appreciated if someone could help me out.

Thanks in advance!
 
Physics news on Phys.org
Hello and welcome to MHB! (Wave)

The first thing I notice when reviewing your work, is that you have a repeated root in your characteristic equation, and so the homogeneous solution should be:

$$y_h(x)=c_1e^{-3x}+c_2xe^{-3x}$$

See if that gets you to the correct solution. :)
 
MarkFL said:
Hello and welcome to MHB! (Wave)

The first thing I notice when reviewing your work, is that you have a repeated root in your characteristic equation, and so the homogeneous solution should be:

$$y_h(x)=c_1e^{-3x}+c_2xe^{-3x}$$

See if that gets you to the correct solution. :)
Thank you for your reply.

I actually remember trying this alternative too. This gave me the right coefficient for C1 but I still got it wrong for C2. I tried again and saw I had the wrong derivative for C2xe-3x. That solved the problem.
Thanks a lot! :)
 
I've moved this thread here to our "Differential Equations" forum as it is a better fit, and for the benefit of guests who may visit I'm going to provide a full solution.

We are given to solve the IVP:

$$y''+6y'+9y=4e^{-x}$$ where $$y(0)=2,\,y'(0)=-2$$

As discussed above, you homogeneous solution is:

$$y_h(x)=c_1e^{-3x}+c_2xe^{-3x}$$

And our particular solution will take the form:

$$y_p(x)=Ae^{-x}$$

Hence:

$$y_p'(x)=-Ae^{-x}$$

$$y_p''(x)=Ae^{-x}$$

Substituting into the given ODE, we find:

$$Ae^{-x}-6Ae^{-x}+9Ae^{-x}=4e^{-x}$$

Multiply through by $e^x$, since $e^x\ne0$:

$$A-6A+9A=4$$

$$4A=4\implies A=1$$

And so our particular solution is:

$$y_p(x)=e^{-x}$$

Now, by the principle of superposition, we obtain:

$$y(x)=y_h(x)+y_p(x)=c_1e^{-3x}+c_2xe^{-3x}+e^{-x}$$

Hence:

$$y'(x)=-3c_1e^{-3x}-3c_2xe^{-3x}+c_2e^{-3x}-e^{-x}$$

Now, using general initial values, we may write:

$$y(0)=c_1+1=y_0\implies c_1=y_0-1$$

$$y'(0)=-3c_1+c_2-1=-3\left(y_0-1\right)+c_2-1=2-3y_0+c_2=y'_0\implies c_2=3y_0+y'_0-2$$

And so the general solution is:

$$y(x)=\left(y_0-1\right)e^{-3x}+\left(3y_0+y'_0-2\right)xe^{-3x}+e^{-x}$$

Plugging in the given initial values, we obtain the solution to the IVP:

$$y(x)=\left(2-1\right)e^{-3x}+\left(3(2)+(-2)-2\right)xe^{-3x}+e^{-x}=e^{-3x}+2xe^{-3x}+e^{-x}$$
 

Similar threads

  • · Replies 52 ·
2
Replies
52
Views
8K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K