- #1

- 319

- 0

## Homework Statement

[itex]y''-2y+y=xe^xlnx[/itex]

## The Attempt at a Solution

I don't know what I should do here because lnx. Is it possible to solve this ODE with undetermined coefficients method? how can I solve it?

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter AdrianZ
- Start date

- #1

- 319

- 0

[itex]y''-2y+y=xe^xlnx[/itex]

I don't know what I should do here because lnx. Is it possible to solve this ODE with undetermined coefficients method? how can I solve it?

- #2

I like Serena

Homework Helper

- 6,577

- 176

Sounds like a good plan.

Did you try the undetermined coefficients method?

As for the lnx, typically you can integrate that using integration by parts.

- #3

ehild

Homework Helper

- 15,543

- 1,909

## Homework Statement

[itex]y''-2y+y=xe^xlnx[/itex]

## The Attempt at a Solution

I don't know what I should do here because lnx. Is it possible to solve this ODE with undetermined coefficients method? how can I solve it?

Try variation of parameters. http://en.wikipedia.org/wiki/Variation_of_parameters

It is quite easy in this case.

ehild

- #4

- 319

- 0

Sounds like a good plan.

Did you try the undetermined coefficients method?

As for the lnx, typically you can integrate that using integration by parts.

The problem is I don't know what should be the general form that I should consider to determine the coefficients. That's where I'm stuck.

Try variation of parameters. http://en.wikipedia.org/wiki/Variation_of_parameters

It is quite easy in this case.

ehild

I read the wikipedia page, I don't know what that method is, the wikipedia explanations are a bit confusing but I've already solved the ODE using the method where we take y

The thing is that the author has put this problem in the section of U.C method, so I'm wondering if he wants us to solve it using the undetermined coefficients method?

- #5

I like Serena

Homework Helper

- 6,577

- 176

I need a magnifying glass to go over the exact definition to understand the difference.

If I understand correctly the Variation of parameters is more generally put.

So what is it that you are unclear about?

Or what is it that you think you should do?

I don't really understand from what you write.

- #6

ehild

Homework Helper

- 15,543

- 1,909

You applied exactly the method of "variation of parameters"I read the wikipedia page, I don't know what that method is, the wikipedia explanations are a bit confusing but I've already solved the ODE using the method where we take y_{p}of the form v_{1}y_{1}+v_{2}y_{2}and then we find v_{1}and v_{2}using a linear system of equations that are dependent to the derivatives of v's.

The thing is that the author has put this problem in the section of U.C method, so I'm wondering if he wants us to solve it using the undetermined coefficients method?

Ln(x)has to appear in the solution anyway. You know the solution now, but pretend that you do not know, and choose a trial function according to it but with unknown constants. But I do not think they meant that.

ehild

Last edited:

- #7

ehild

Homework Helper

- 15,543

- 1,909

Hmm, as I see it both methods are basically the same.

No, they are basically different.

The method of undetermined coefficients uses trial functions. There are listed such ones for different types of functions on the right hand side in relation with the roots of the characteristic equation of the homogeneous part.See attachment.

ehild

- #8

I like Serena

Homework Helper

- 6,577

- 176

No, they are basically different.

The method of undetermined coefficients uses trial functions. There are listed such ones for different types of functions on the right hand side in relation with the roots of the characteristic equation of the homogeneous part.See attachment.

ehild

Ah, okay.

So for the method of undetermined coefficients, you need to "guess" the particular solution with some undetermined coefficients.

Possibly with the help of a table.

And for the method of Variation of parameters, you consider the coefficient of the homogeneous solution to be a function.

I think that typically, when you work this out, you'll find a particular solution that matches the "guess" that you would otherwise have made.

I guess that with this solution, you can make a very good "educated guess". ;)

- #9

ehild

Homework Helper

- 15,543

- 1,909

Exactly. If the inhomogeneous part is a polynomial or exponential or sine, cosine, (or product of those) the "undetermined coefficient" method is usually easier than the variation of parameters.See the tread as an example https://www.physicsforums.com/showthread.php?t=554093. But I have never seen it applied to a logarithm function.

ehild

ehild

Last edited:

- #10

ehild

Homework Helper

- 15,543

- 1,909

Let be y=e

Substituting into the ode, we get the equation Y"=xln(x), so Y=x

ehild

- #11

I like Serena

Homework Helper

- 6,577

- 176

I've just put your explanation and attachment to good use here:

https://www.physicsforums.com/showthread.php?t=554093

- #12

ehild

Homework Helper

- 15,543

- 1,909

I've just put your explanation and attachment to good use here:

https://www.physicsforums.com/showthread.php?t=554093

I have noticed it already and sent a PM to you about it.

ehild

- #13

I like Serena

Homework Helper

- 6,577

- 176

Let be y=e^{x}Y.

Substituting into the ode, we get the equation Y"=xln(x), so Y=x^{3}(6 ln(x)-5)/36, y_{p}=e^{x}x^{3}(6 ln(x)-5)/36.

ehild

Isn't that just the method of Variation of parameters?

- #14

ehild

Homework Helper

- 15,543

- 1,909

ehild

- #15

I like Serena

Homework Helper

- 6,577

- 176

So isn't y=Y(x) e

Edit: you just beat me to it.

- #16

I like Serena

Homework Helper

- 6,577

- 176

- #17

ehild

Homework Helper

- 15,543

- 1,909

By the way, when we derive the solution with variation of parameters, c1 and c2 are not arbitrary. It is assumed that c1'y1+c2'y2=0.

ehild

- #18

I like Serena

Homework Helper

- 6,577

- 176

I see.

Share: