Second order differential equation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 2K views
Tan Bee Yong
Messages
5
Reaction score
0

Homework Statement


This question concerns the second-order differential equation

dy^2/dx^2 -4(dy/dx) + 5y = 25x - 3e^2x. Find the solution of the differential equation that satisfies the initial conditions y=0 and dy/dx= 0 when x=0.


Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
particular solution = Ax + B + pxe^2x
differential once : A + pe^2x + 2pxe^2x
differential again 2pxe^2x + 2pxe^2x + 4pxe^2x=4pe^2x + 4pxe^2x

substitute the above into the DE. i get:

4pe^2x + 4pxe^2x -4A-4pe^2x - 8pxe^2x + 5Ax + 5B + 5pxe^2x

=-4A + 5Ax + 5B + pxe^2x

by comparing with the right-hand side of DE;

5Ax = 25x
A= 5,

-4A + 5B = 0
B = 4

pxe^2x = -3e^2x
px=-3
p= -3/x (this is the part i don't understant. why is there an x?, i thought p should be a constant)

sori i don't know how to use the button to show ^
 
Yp = Ax + B + pxe2x
Yp' : A + pe^2x + 2pxe2x
Yp'' 2pxe2x + 2pxe2x + 4pxe2x=4pe2x+ 4pxe2x

substitute the above into the DE. i get:

4pe2x + 4pxe2x -4A-4pe2x - 8pxe2x + 5Ax + 5B + 5pxe2x

=-4A + 5Ax + 5B + pxe2x

by comparing with the right-hand side of DE;

5Ax = 25x
A= 5,

-4A + 5B = 0
B = 4

pxe2x = -3e2x
px=-3
p= -3/x (this is the part i don't understant. why is there an x?, i thought p should be a constant)
 
Hi Tan Bee Yong! :smile:

(if you click the "QUOTE" button, that takes you to the Reply page, and there's a row of icons above the reply box :wink:)

Your original RHS was 25 - 3e2x

your particular solution should therefore be Ax + B + Ce2x.

(btw, why use capital A and B and small p? it's not illegal, but I think C is neater! :wink:)

You only need to use xe2x if e2x is a solution to the LHS (which in this case, it isn't!). :smile:
 
LHS has a pair of complex conjugate roots, hence my Yc = e2x(Dcos(x) + Ecos(x))

i thought this is a special case, that's why I use Cxe2x

Did I make a mistake at the complementary function?
 
tiny-tim said:
No, the roots are 2 ± i, that's not the same as 2 ! :wink:

You only need x if the RHS exponent is exactly the same as a LHS root.

Ok .. will give it another try.. thank you so much for helping