Solving (D^2 - 6D +25)y = (x^2)(e^-x): Annihilator Method | Homework Help

  • Thread starter jbord39
  • Start date
  • Tags
    Method
In summary, the student is trying to solve for y(p)' using the coefficients found, but is having trouble with the yp''. The yp'' is incorrect and the y(p)'' looks right.
  • #1
jbord39
74
0

Homework Statement



Solve (D^2 - 6D +25)y = (x^2)(e^-x)

Homework Equations




D=dy/dx

The Attempt at a Solution



First I found the roots of the left side of the equation, which 4+i and 4-i.
From this,
y(c) = Ae^(3x)sin(4x) + Be^(3x)cos(4x)

Furthermore, the annihilator for (x^2)e^(-x) is (D+1)^3 <--- (Is this correct?).

From this, y(p) = Ce^(-x) + Dxe^(-x) + E(x^2)e^(-x) = e^(-x)[C + Dx + Ex^2]
and y(p)' = e^(-x)[-C + D(1 - x) + E(2x - x^2)]
and y(p)'' = e^(-x)[C + D(x - 2) + E(x^2 - 4x + 2)]

Now plugging this into
(D^2 - 6D +25)y = (x^2)e^(-x)

Yields:
32C + 8D(4x-1) + 2E(16x^2 - 8x + 1) = x^2

From here I cannot figure out how to solve for C, D, and E.

Thanks for any help
 
Physics news on Phys.org
  • #2
I won't check all of your steps in getting there, but to solve your final equation write it in the form Lx^2+Mx+N=0. The only way both sides can be equal for all x is for L=M=N=0. That's three equations to solve.
 
  • #3
jbord39 said:

Homework Statement



Solve (D^2 - 6D +25)y = (x^2)(e^-x)

Homework Equations




D=dy/dx

The Attempt at a Solution



First I found the roots of the left side of the equation, which 4+i and 4-i.
The actual roots are 3 +/- 4i, which you are using below.
jbord39 said:
From this,
y(c) = Ae^(3x)sin(4x) + Be^(3x)cos(4x)

Furthermore, the annihilator for (x^2)e^(-x) is (D+1)^3 <--- (Is this correct?).
Yes. The annihilator for e^(-x) would be D + 1. For xe^(-x), it would be (D + 1)^2, and for x^2e^(-x) it would be (D + 1)^3.
jbord39 said:
From this, y(p) = Ce^(-x) + Dxe^(-x) + E(x^2)e^(-x) = e^(-x)[C + Dx + Ex^2]
and y(p)' = e^(-x)[-C + D(1 - x) + E(2x - x^2)]
and y(p)'' = e^(-x)[C + D(x - 2) + E(x^2 - 4x + 2)]
Your yp' looks fine, but I think you have an error in your yp''. Also, I don't see any advantage in writing the part in square brackets as you have done. I think it would be better to group powers of x together rather than multiples of (1 - x) and (2x - x^2). Writing yp' as e^(-x)[D - C + (2E - D)x - Ex^2] might be simpler to work with.
jbord39 said:
Now plugging this into
(D^2 - 6D +25)y = (x^2)e^(-x)

Yields:
32C + 8D(4x-1) + 2E(16x^2 - 8x + 1) = x^2

From here I cannot figure out how to solve for C, D, and E.
This is where what I am saying comes into play. You want the left side arranged in powers of x. The right side can be thought of as being in powers of x; namely 0 + 0x + 1x^2. The equation has to be identically true for any value of x, which means that the constant on the left has to equal the constant on the right (0), the coefficient of the x term on the left has to equal the coefficient of x on the right (again, 0), and the coefficient of the x^2 term on the left has to equal the coefficient of x^2 on the right (1).

That will give you three equations in your unknowns C, D, and E.
 
  • #4
Thanks.

Now I have :

(32C-8D+2E) + x(32D - 16E) + x^2(32E - 1) = 0

From here:
E = (1/32)
D = (1/64)
and
32C-(2/16) + (1/16) = 0
32C = 1/16
C = 1/512

These coefficients seem really small... Did I do that wrong?
 
  • #5
It doesn't matter whether they are small are large. All that matters is that these coefficients work. If yp'' - 6yp' + 25yp = x2e-x using the coefficients you found, your work is correct - that's what matters.

Be sure to read my previous post, where I mentioned that your yp'' was incorrect.
 
Last edited:
  • #6
Mark44 said:
It doesn't matter whether they are small are large. All that matters is that these coefficients work. If yp'' - 6yp' + 25yp = x2e-x using the coefficients you found, your work is correct - that's what matters.

Be sure to read me previous post, where I mentioned that your yp'' was incorrect.

if y(p)' = e^(-x)[-C + D(1 - x) + E(2x - x^2)]
then y(p)' = -Ce^(-x) + De^(-x) - Dxe^(-x) + 2Exe^(-x) - E(x^2)e^(-x)
so y(p)'' = Ce^(-x) - De^(-x) - D[-xe^(-x) + e^(-x)] + 2E[-xe^(-x) + e^(-x)] -E[-(x^2)e^(-x) + 2xe^(-x)]

So y(p)'' = e^(-x)[C - D + D(1-x) + 2E(1-x) - E(2x-x^2)]
or y(p)'' = e^(-x)[C - D + D - Dx + 2E - 2Ex - 2Ex + Ex^2]
= e^(-x)[C - Dx +Ex^2 - 4Ex + 2E]

Does this y(p)'' look right?

Thanks
 
  • #7
I'm not a fan of using messy methods involving undetermined coefficients and solving simultaneous equations for them. You can also get the particular soultion by substituting

y(x) = f(x) exp(-x)

Then

D^n y = exp(-x) (D-1)^n f

This then leads to:

[(D-1)^2 - 6(D-1) +25]f = x^2 -------->


[D^2 - 8 D + 32]f = x^2

Then we write the solution formally as:

f(x) = 1/[D^2 - 8 D + 32] x^2

We formally expand the expression involving the differential operator as follows:

1/[D^2 - 8 D + 32] =

1/32 1/[1 - D/4 + D^2/32] =

1/32 [1 + D/4 - D^2/32 + D^2/16 +...] =

1/32 [1 + D/4 + D^2/32 +...]

Applying this to x^2 gives:

f(x) = x^2/32 + x/64 + 1/512
 
  • #8
jbord39 said:
Thanks.

Now I have :

(32C-8D+2E) + x(32D - 16E) + x^2(32E - 1) = 0

From here:
E = (1/32)
D = (1/64)
and
32C-(2/16) + (1/16) = 0
32C = 1/16
C = 1/512

These coefficients seem really small... Did I do that wrong?
These look fine. My values now agree with yours and those of Count Iblis.
 
  • #9
Thanks so much for the help
 

FAQ: Solving (D^2 - 6D +25)y = (x^2)(e^-x): Annihilator Method | Homework Help

What is the Annihilator Method and when is it used?

The Annihilator Method is a technique used in solving differential equations with non-constant coefficients. It is typically used when the equation cannot be solved using other methods such as separation of variables or substitution.

How does the Annihilator Method work?

The Annihilator Method involves finding an operator, known as the annihilator, that when applied to both sides of the differential equation, will result in simpler terms that can be easily solved. This is done by identifying a function that, when differentiated, will produce terms that cancel out the original equation.

Can the Annihilator Method be used for all types of differential equations?

No, the Annihilator Method is only applicable to certain types of differential equations with non-constant coefficients. It is most commonly used for linear, non-homogeneous equations.

Are there any limitations or drawbacks to using the Annihilator Method?

One limitation of the Annihilator Method is that it may not always produce a solution. In some cases, the operator found may not be invertible, resulting in an invalid solution. Additionally, the Annihilator Method can be more time-consuming and complex compared to other methods.

Can you provide an example of using the Annihilator Method to solve a differential equation?

Sure, let's take the equation (D^2 - 6D +25)y = (x^2)(e^-x) as an example. The annihilator for (x^2)(e^-x) is D^2 - 2D + 2. Applying this operator to both sides of the equation will eliminate the x^2 term and simplify the right side to (e^-x)(2D^2 - 10D + 23)y = 0. From here, the equation can be solved using other methods such as the method of undetermined coefficients.

Back
Top