Particular Sub y_p into DE for r(x)

Click For Summary

Homework Help Overview

The discussion revolves around verifying that a specific function, defined as a particular solution of a second-order linear differential equation, can be derived by substituting it into the equation. The subject area is differential equations, specifically focusing on the method of undetermined coefficients and the use of Wronskian determinants.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss how to substitute the proposed particular solution into the differential equation and check if it satisfies the equation. There are inquiries about differentiating the proposed solution and applying the product rule correctly. Some participants express uncertainty about the differentiation process and the implications of the Wronskian.

Discussion Status

The discussion is ongoing, with participants sharing their attempts to differentiate the proposed solution and substitute it back into the differential equation. Some have provided guidance on using the product rule, while others are exploring the implications of the definitions of the functions involved. There is a recognition of the need to clarify notation and the roles of the independent solutions.

Contextual Notes

Participants note that the functions involved are independent solutions of the associated homogeneous equation, which is crucial for understanding the behavior of the proposed particular solution. There is also mention of the need for clarity in notation to avoid confusion during differentiation.

Ted123
Messages
428
Reaction score
0

Homework Statement



Show (by substituting it directly into the differential equation) that

[itex]\displaystyle y_p = y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx[/itex]

is a particular solution of [itex]y'' + p(x)y' + q(x)y = r(x)[/itex].

Homework Equations



[itex]W[/itex] is the Wronskian [itex]y_1 y_2^{\prime} - y_2 y_1^{\prime}[/itex]

The Attempt at a Solution



How do I sub [itex]y_p[/itex] into the DE?
 
Physics news on Phys.org
Hi Ted :smile:

Just calculate [tex]y_p^{\prime\prime}+p(x)y_p^\prime+q(x)y_p[/tex] and check that it equals r(x)...
 
micromass said:
Hi Ted :smile:

Just calculate [tex]y_p^{\prime\prime}+p(x)y_p^\prime+q(x)y_p[/tex] and check that it equals r(x)...

I can't see how to differentiate [itex]y_p[/itex] and certainly [itex]y_p^{\prime}[/itex] though.

For instance, how do I find:

[itex]\displaystyle \frac{d}{dx} \left( y_2 \int \frac{ry_1}{W}\;dx \right)[/itex] ?

I know

[itex]\frac{d}{dx} \left( \int \frac{ry_1}{W}\;dx \right) = \frac{ry_1}{W}[/itex]

but [itex]y_2[/itex] is a function of x, and it is multiplied by that integral...
 
Ah yes. There, you have to differentiate a product of two functions. So you need to use the product rule:

[tex](fg)^\prime=f^\prime g+fg^\prime[/tex]
 
micromass said:
Ah yes. There, you have to differentiate a product of two functions. So you need to use the product rule:

[tex](fg)^\prime=f^\prime g+fg^\prime[/tex]

I get:

[itex]\displaystyle y_p^{\prime} = y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx[/itex]

[itex]\displaystyle y_p^{\prime\prime} = y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx[/itex]

So:

[itex]\displaystyle y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx + p(x) \left( y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx \right) + q(x) \left( y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx \right)[/itex]

should equal r but does it?
 
You didn't exactly follow the product rule did you??

You should have done

[tex]\left(y_2\int\frac{ry_1}{W}\right)^\prime=y_2^\prime\int{\frac{ry_1}{W}}+y_2\frac{ry_1}{W}[/tex]

Now, if you differentiate like that, then what is [tex]y_p[/tex] then?
 
micromass said:
You didn't exactly follow the product rule did you??

You should have done

[tex]\left(y_2\int\frac{ry_1}{W}\right)^\prime=y_2^\prime\int{\frac{ry_1}{W}}+y_2\frac{ry_1}{W}[/tex]

Now, if you differentiate like that, then what is [tex]y_p[/tex] then?

I did follow the product rule:

[itex]\displaystyle y_p = y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx[/itex]

so differentiating the first term gives what you have.

Then differentiating the 2nd term [itex]- y_1 \int \frac{ry_2}{W}\;dx[/itex] gives:

[itex]- y_1^{\prime} \int \frac{ry_2}{W}\;dx - \frac{ry_1y_2}{W}[/itex]

so adding the 2 together gives:

[itex]y_p^{\prime} = y_2^\prime\int{\frac{ry_1}{W}\;dx}+\frac{ry_1y_2}{W} - y_1^{\prime} \int \frac{ry_2}{W}\;dx - \frac{ry_1y_2}{W} = y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx[/itex]
 
Ah, yes, you are correct! :smile:
Now, try to show that the expression equals r(x). Try to do something with the definition of y1 and y2. (How are these things defined anyway?)
 
micromass said:
Ah, yes, you are correct! :smile:
Now, try to show that the expression equals r(x). Try to do something with the definition of y1 and y2. (How are these things defined anyway?)

[itex]y_1(x)[/itex] and [itex]y_2(x)[/itex] are independent solutions of

[itex]y^{\prime\prime} + p(x) y^{\prime} + q(x) y =0[/itex].
 
  • #10
So you can substitute for [tex]y_1''(x)[/tex] in your equation above.

EDIT: even easier, collect terms which have [tex]\int \frac{ry_2}{W}\;\mathrm{d}x[/tex].
 
  • #11
grey_earl said:
So you can substitute for [tex]y_1''(x)[/tex] in your equation above.

EDIT: even easier, collect terms which have [tex]\int \frac{ry_2}{W}\;\mathrm{d}x[/tex].

I'm not entirely sure what you're saying. We want:

[itex]\int \frac{ry_2}{W}\;dx \left( -y_1^{\prime\prime} - py_1^{\prime} - qy_1 \right) + \int \frac{ry_1}{W}\;dx \left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)[/itex]

to equal [itex]r(x)[/itex].

[itex]y_1[/itex] and [itex]y_2[/itex] are linearly independent solutions of [itex]y^{\prime\prime} + py^{\prime} + qy = r[/itex].

If we substitute [itex]y_1^{\prime\prime} = r - py_1^{\prime} - qy_1[/itex] in we get:

[itex]- r \int \frac{ry_2}{W}\;dx + \int \frac{ry_1}{W}\;dx \left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)[/itex]

Doing the same for [itex]y_2^{\prime\prime} = r - py_2^{\prime} - qy_2[/itex] we get:

[itex]- r \int \frac{ry_2}{W}\;dx + r \int \frac{ry_1}{W}\;dx[/itex]
 
  • #12
EDIT:

[itex]y_1[/itex] and [itex]y_2[/itex] are linearly independent solutions of the homogeneous equation [itex]y^{\prime\prime} + py^{\prime} + qy = 0[/itex]. (not the inhomogeneous one as in my last post).

So this would make [itex]-\int \frac{ry_2}{W}\;dx \left( y_1^{\prime\prime} + py_1^{\prime} + qy_1 \right) + \int \frac{ry_1}{W}\;dx \left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)[/itex]

equal 0 which isn't r ...
 
  • #13
Ted123 said:

Homework Statement



Show (by substituting it directly into the differential equation) that

[itex]\displaystyle y_p = y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx[/itex]

is a particular solution of [itex]y'' + p(x)y' + q(x)y = r(x)[/itex].

Homework Equations



[itex]W[/itex] is the Wronskian [itex]y_1 y_2^{\prime} - y_2 y_1^{\prime}[/itex]

The Attempt at a Solution



How do I sub [itex]y_p[/itex] into the DE?

Bad notation is getting in your way. You need a different integration variable, so instead of having dx inside the integral you should have, for example, dt; that is, write
[itex]\displaystyle y_p(x) = y_2(x) \int_{a}^{x} \frac{r(t)y_1(t)}{W(t)}\,dt - y_1(x) \int_{a}^{x} \frac{r(t)y_2(t)}{W(t)}\,dt[/itex]
Now you can see that the derivative of the first term is
[itex]\displaystyle y_2'(x) \int_{a}^{x} \frac{r(t)y_1(t)}{W(t)}\,dt + y_2(x) \frac{r(x)y_1(x)}{W(x)} ,[/itex]
etc.

RGV
 
Last edited:
  • #14
Ray Vickson said:
Bad notation is getting in your way. You need a different integration variable, so instead of having dx inside the integral you should have, for example, dt; that is, write
[itex]\displaystyle y_p(x) = y_2(x) \int_{a}^{x} \frac{r(t)y_1(t)}{W(t)}\,dt - y_1(x) \int_{a}^{x} \frac{r(t)y_2(t)}{W(t)}\,dt[/itex]
Now you can see that the derivative of the first term is
[itex]\displaystyle y_2'(x) \int_{a}^{x} \frac{r(t)y_1(t)}{W(t)}\,dt + y_2(x) \frac{r(x)y_1(x)}{W(x)} ,[/itex]
etc.

RGV

Even with different variables, it still leads to this:

[itex]\left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)\int \frac{ry_1}{W}\;dx - \left( y_1^{\prime\prime} + py_1^{\prime} + qy_1 \right)\int \frac{ry_2}{W}\;dx[/itex]

which I need to show equals [itex]r[/itex].

There must be something with those DEs multiplying each integral that means something
 
  • #15
I get the above + r. The coefficients multiplying your two integrals are zero, since y1 and y2 satisfy the homogeneous DE.

RGV
 
  • #16
Ray Vickson said:
I get the above + r. The coefficients multiplying your two integrals are zero, since y1 and y2 satisfy the homogeneous DE.

RGV

Can I ask how you managed to get that +r ?

[itex]\displaystyle y_p^{\prime} = y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx[/itex]

[itex]\displaystyle y_p^{\prime\prime} = y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx[/itex]

So subbing these into [itex]y_p^{\prime\prime} + py_p^{\prime} + qy_p[/itex] gives:

[itex]\displaystyle y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx + p(x) \left( y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx \right) + q(x) \left( y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx \right)[/itex]

[itex]= \left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)\int \frac{ry_1}{W}\;dx - \left( y_1^{\prime\prime} + py_1^{\prime} + qy_1 \right)\int \frac{ry_2}{W}\;dx[/itex]
 
  • #17
Ted123 said:
Can I ask how you managed to get that +r ?

[itex]\displaystyle y_p^{\prime} = y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx[/itex]

[itex]\displaystyle y_p^{\prime\prime} = y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx[/itex]

So subbing these into [itex]y_p^{\prime\prime} + py_p^{\prime} + qy_p[/itex] gives:

[itex]\displaystyle y_2^{\prime\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime\prime} \int \frac{ry_2}{W}\;dx + p(x) \left( y_2^{\prime} \int \frac{ry_1}{W}\;dx - y_1^{\prime} \int \frac{ry_2}{W}\;dx \right) + q(x) \left( y_2 \int \frac{ry_1}{W}\;dx - y_1 \int \frac{ry_2}{W}\;dx \right)[/itex]

[itex]= \left( y_2^{\prime\prime} + py_2^{\prime} + qy_2 \right)\int \frac{ry_1}{W}\;dx - \left( y_1^{\prime\prime} + py_1^{\prime} + qy_1 \right)\int \frac{ry_2}{W}\;dx[/itex]

You have the wrong [tex]y_p''[/tex]. Remember: [tex]\displaystyle \frac{d}{dx} f(x) \int_{a}^x g(y) \, dy = f'(x) \int_{a}^x g(y) \, dy + f(x) g(x)[/tex]

RGV
 
  • #18
Ray Vickson said:
You have the wrong [tex]y_p''[/tex]. Remember: [tex]\displaystyle \frac{d}{dx} f(x) \int_{a}^x g(y) \, dy = f'(x) \int_{a}^x g(y) \, dy + f(x) g(x)[/tex]

RGV

Of course. The [itex]y_p^{\prime\prime}[/itex] has the +r as the W cancels! (Thanks a lot!)
 

Similar threads

Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K