Non-homogeneous differential equation, undetermined coefficients

Click For Summary
SUMMARY

The discussion focuses on solving the non-homogeneous differential equation y'' + 6y' + 9y = 4e^{-x} with initial conditions y(0) = 2 and y'(0) = -2. The correct homogeneous solution is identified as y_h(x) = C1e^{-3x} + C2xe^{-3x}, due to a repeated root in the characteristic equation. The particular solution is determined to be y_p(x) = e^{-x}, leading to the general solution y(x) = (y_0 - 1)e^{-3x} + (3y_0 + y'_0 - 2)xe^{-3x} + e^{-x}, which simplifies to y(x) = e^{-3x} + 2xe^{-3x} + e^{-x} when substituting the initial values.

PREREQUISITES
  • Understanding of non-homogeneous differential equations
  • Familiarity with characteristic equations and their roots
  • Knowledge of the method of undetermined coefficients
  • Ability to apply initial value problems (IVP) in differential equations
NEXT STEPS
  • Study the method of undetermined coefficients in more detail
  • Learn about repeated roots in characteristic equations
  • Explore initial value problems (IVP) and their solutions
  • Practice solving various forms of non-homogeneous differential equations
USEFUL FOR

Students and educators in mathematics, particularly those focusing on differential equations, as well as anyone seeking to enhance their problem-solving skills in this area.

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