General solution y''+2y'+y=x(e^-x)+1

Click For Summary

Discussion Overview

The discussion revolves around finding the general solution to the differential equation y'' + 2y' + y = xe^(-x) + 1. Participants explore the forms of the homogeneous and particular solutions, addressing challenges in determining the correct approach for the particular solution due to the presence of terms that may also solve the homogeneous equation.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that the homogeneous solution is of the form y_h = (C1x + C2)e^(-x), while others confirm that the correct homogeneous solution should include terms c_1e^(-x) + c_2xe^(-x).
  • Another participant proposes that the particular solution should take the form y_p = x^2(Ax + B)e^(-x) + C to avoid overlap with the homogeneous solution.
  • There is confusion regarding why multiplying by x is necessary to ensure that the particular solution does not contain terms from the homogeneous solution.
  • Participants express uncertainty about the correct coefficients for the particular solution after substituting into the original equation, with some calculations leading to different results.
  • One participant acknowledges difficulty in combining the homogeneous and particular solutions to achieve the expected general solution.
  • There is a suggestion to use LaTeX for clarity in mathematical expressions, indicating a preference for clearer communication of complex equations.

Areas of Agreement / Disagreement

Participants generally agree on the form of the homogeneous solution but disagree on the correct form and coefficients for the particular solution. The discussion remains unresolved regarding the specific details of the particular solution and its integration with the homogeneous solution.

Contextual Notes

Participants express confusion over the necessity of certain terms in the particular solution and the implications of overlapping with the homogeneous solution. There are also unresolved calculations regarding the coefficients in the particular solution.

ToastIQ
Messages
11
Reaction score
0
Hi!

I'm having a hard time with general solutions of a certain type, maybe it has to do with the constant in the particular solution?

The equation is

y''+2y'+y=xe-x+1

Is it right to assume that yh=(C1x+C2)e-x ?

For the particular solution, I've tried all kinds of guesses for the form:

yp=
(C1x+C2)e-x
(C1x3+C2x2)e-x
C1x3e-x+C2x2
C1x3e-x+C2x2+C3x+C4

and more of the kind. I honestly have no clue what form's the right one. Help would be much appreciated.

Also, I've found some tables that show which form can be used for different kinds of equations. They're very handy, but usually just the kind of equation I'm looking for is missing. If some kind soul out there could help me understand when to use which form (like those tables), that would make my day. It was all good in the beginning but by now, I'm just confused about the different forms, when to use which one.
 
Physics news on Phys.org
The characteristic equation association with the homogeneous solution has a repeated root, and so the homogeneous solution will be:

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

Because the term on the RHS $xe^{-x}$ is a homogeneous solution, our particular solution will take the form:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

Do you see why the $x^2$ is required to ensure that no term in the particular solution is a solution to the corresponding homogeneous equation?
 
MarkFL said:
The characteristic equation association with the homogeneous solution has a repeated root, and so the homogeneous solution will be:

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

Because the term on the RHS $xe^{-x}$ is a homogeneous solution, our particular solution will take the form:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

Do you see why the $x^2$ is required to ensure that no term in the particular solution is a solution to the corresponding homogeneous equation?
Thanks for your reply.

So I believe my homogeneous solution was correct?

I know that there can't be any terms in the particular solution that are a solution to the homogeneous equation. I can't fully wrap my head around why though.

Can you see right when starting with the particular solution if it contains a solution to the homogeneous equation? Like, in this case, the particular solution has the form (before multiplying with x)
(Ax+B)e-x+C
and I can see right away that both Axe-x and Be-x appear in the homogeneous equation.
But if I multiply with x and get the form
(Ax2+Bx)e-x+C
I can't see how this also contains a solution to the homogeneous equation. So I don't understand why x1 isn't enough, why it has to be x2.

Do you have to go through all the steps for the particular solution, setting up y(x), y'(x) and y''(x) and substituting those into the equation to see if you need to multiply with one more x?
However. When I use the form y(x)=x2(Ax+B)e-x+C I'm still making mistakes somewhere.

y(x)=x2(Ax+B)e-x+C
y'(x)=(3Ax2-Ax3+2Bx-Bx2)e-x
y''(x)=(6Ax-6Ax2+Ax3-4Bx+Bx2)e-x

-> 6Axe-x+C = xe-x+1 (<- B canceled out?)
A=1/6​
C=1​

The general solution is supposed to be

y=e-x(1/6x3-x-1)+1
 
ToastIQ said:
Thanks for your reply.

So I believe my homogeneous solution was correct?

You stated:

$$y_h=\left(c_1+c_2\right)e^{-x}$$

But what we want is:

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

ToastIQ said:
I know that there can't be any terms in the particular solution that are a solution to the homogeneous equation. I can't fully wrap my head around why though.

Can you see right when starting with the particular solution if it contains a solution to the homogeneous equation? Like, in this case, the particular solution has the form (before multiplying with x)
(Ax+B)e-x+C
and I can see right away that both Axe-x and Be-x appear in the homogeneous equation.
But if I multiply with x and get the form
(Ax2+Bx)e-x+C
I can't see how this also contains a solution to the homogeneous equation. So I don't understand why x1 isn't enough, why it has to be x2.

If we expand we get:

$$y_p(x)=Ax^2e^{-x}+Bxe^{-x}+C$$

The second term, $$Bxe^{-x}$$ is a solution to the corresponding homogeneous equation. That's why we need:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

ToastIQ said:
Do you have to go through all the steps for the particular solution, setting up y(x), y'(x) and y''(x) and substituting those into the equation to see if you need to multiply with one more x?

No, you just need to ensure no terms of the particular solution are solutions of the homogeneous equation.

ToastIQ said:
However. When I use the form y(x)=x2(Ax+B)e-x+C I'm still making mistakes somewhere.

y(x)=x2(Ax+B)e-x+C
y'(x)=(3Ax2-Ax3+2Bx-Bx2)e-x
y''(x)=(6Ax-6Ax2+Ax3-4Bx+Bx2)e-x

-> 6Axe-x+C = xe-x+1 (<- B canceled out?)
A=1/6​
C=1​

The general solution is supposed to be

y=e-x(1/6x3-x-1)+1

Okay, with the particular solution, we have:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

$$y_p'(x)=-x\left(Ax^2-3Ax+Bx-2B\right)e^{-x}$$

$$y_p''(x)=\left(Ax^3-6Ax^2+6Ax+Bx^2-4Bx+2B\right)e^{-x}$$

It looks like we have different results for $$y_p''(x)$$.
 
MarkFL said:
You stated:

$$y_h=\left(c_1+c_2\right)e^{-x}$$

But what we want is:

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

I don't know if I'm missing out on something here but I think it said
yh=(C1x+C2)e-x
which after expanding the brackets should become
C1xe-x+C2e-x
which is basically the same as C1e-x+C2xe-x or am I wrong? Just that the x is with C1 instead of C2.
Does it make a difference if the x is with C1 or C2 as long as you stick to the same setup all the way to the end? I'm wondering because in my class we learned to put the x with the first coefficient, in this case C1.

MarkFL said:
If we expand we get:

$$y_p(x)=Ax^2e^{-x}+Bxe^{-x}+C$$

The second term, $$Bxe^{-x}$$ is a solution to the corresponding homogeneous equation. That's why we need:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

Ah, I see. Thanks.

MarkFL said:
Okay, with the particular solution, we have:

$$y_p(x)=x^2(Ax+B)e^{-x}+C$$

$$y_p'(x)=-x\left(Ax^2-3Ax+Bx-2B\right)e^{-x}$$

$$y_p''(x)=\left(Ax^3-6Ax^2+6Ax+Bx^2-4Bx+2B\right)e^{-x}$$

It looks like we have different results for $$y_p''(x)$$.

True, the 2B term was actually there but I totally lost it in this mess of letters and numbers. So I get
(6Ax+2B)e-x+C=xe-x+1

Which gives me
A=1/6​
B=0 (?)​
C=1​

If that is correct, then yp=1/6x3e-x+1

But when I put yh and yp together, it doesn't look like the right solution (y=e-x(1/6x3-x-1)+1). I don't understand how to get the -x and -1 aswell. I've done so many similar problems, I don't know why this one is so hard for me.
 
ToastIQ said:
I don't know if I'm missing out on something here but I think it said
yh=(C1x+C2)e-x

Okay, so it did. I missed that before, even when I double checked. I would advise you to use $\LaTeX$ which is easier to read in general, and easier to use rather than all those superscript and subscript BBCodes. :)

ToastIQ said:
...True, the 2B term was actually there but I totally lost it in this mess of letters and numbers. So I get
(6Ax+2B)e-x+C=xe-x+1

Which gives me
A=1/6​
B=0 (?)​
C=1​

If that is correct, then yp=1/6x3e-x+1

But when I put yh and yp together, it doesn't look like the right solution (y=e-x(1/6x3-x-1)+1). I don't understand how to get the -x and -1 aswell. I've done so many similar problems, I don't know why this one is so hard for me.

Okay, if your particular solution is:

$$y_p(x)=\frac{1}{6}x^3e^{-x}+1$$

Then the general solution is:

$$y(x)=c_1e^{-1}+c_2xe^{-x+}+\frac{1}{6}x^3e^{-x}+1$$

Did you give initial conditions, because I didn't see any?
 
MarkFL said:
Okay, so it did. I missed that before, even when I double checked. I would advise you to use $\LaTeX$ which is easier to read in general, and easier to use rather than all those superscript and subscript BBCodes. :)

Yeah sorry, you're right, I really need to learn how to use Latex! :D

MarkFL said:
Okay, if your particular solution is:

$$y_p(x)=\frac{1}{6}x^3e^{-x}+1$$

Then the general solution is:

$$y(x)=c_1e^{-1}+c_2xe^{-x+}+\frac{1}{6}x^3e^{-x}+1$$

Did you give initial conditions, because I didn't see any?

Jesus. I moved on from this problem long ago, always thinking "There have to be initial conditions" but I couldn't see any. Went back to look again for the 3rd time when you asked and THAT'S when I found out I had been looking at a different problem (very similar, but without conditions). Been so fed up with this problem and busy trying to figure out the general solution I couldn't even get the most basic things taken care of.

The initial conditions were:
$$y(0)=y'(0)=0
\\y=(c_1+c_2x+\frac{1}{6}x^3)e^{-x}+1
\\y'=(-c_1-c_2x+c_2-\frac{1}{6}x^3+\frac{1}{2}x^2)e^{-x}
\\ ~\\
y(0)=0:
\\(c_1+c_2\cdot0+\frac{1}{6}\cdot0+\frac{1}{2}\cdot0)e^{0}+1=0
\\c_1+1=0
\\c_1=-1
\\~\\
y'(0)=0:
\\(-c_1-c_2\cdot0+c_2-\frac{1}{6}\cdot0+\frac{1}{2}\cdot0)e^{0}=0
\\-c_1+c_2=0
\\c_2=c_1=-1

\\~\\
y=(-1-1\cdot x+\frac{1}{6}x^3)e^{-x}+1
\\y=(\frac{1}{6}x^3-x-1)e^{-x}+1
$$

(First try on Latex, hope it will show up okay)
Thanks so much for bearing with my confused mind haha :D
 
I'm glad you got it all sorted out, and excellent job on your use of $\LaTeX$. I appreciate it, as it is easier on the eyes for math, and you appear to have picked it up very quickly.
 
MarkFL said:
I'm glad you got it all sorted out, and excellent job on your use of $\LaTeX$. I appreciate it, as it is easier on the eyes for math, and you appear to have picked it up very quickly.

Thanks! What can I say, Google rarely ever disappoints me as a friend :D I totally agree with you. It just seemed so complicated at first, but it's so worth it.
 

Similar threads

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