General solution of first-order differential equation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 10K views
tracedinair
Messages
47
Reaction score
0

Homework Statement



Find the general solution of the first-order differential equation,

y' + 3y = 2xe^(-3x)


Homework Equations



y' + P(x)y = Q(x)

Integrating factor = e^(∫P(x) dx)

The Attempt at a Solution



Since it's already in the form y' + P(x)y = Q(x),

the integrating factor is I(x) = e^(∫3 dx) = e^(3x)

Now multiplying both sides by the integrating factor,

e^(3x)*y' + 3ye^(3x) = 2xe^(-3x)e^(3x)

d/dx (e^(3x)y) = 2x

Finally, integrating both sides and solving for y,

e^(3x)y = x^2 + C

General solution: y = x^(2)e^(-3x) + Ce^(-3x)

Not to sure if this is right, this is the first time I've studied diff eqns..

Thanks for any help.
 
Physics news on Phys.org
tracedinair said:
General solution: y = x^(2)e^(-3x) + Ce^(-3x)

Not to sure if this is right, this is the first time I've studied diff eqns..
There is one sure-fire way to check that your expression for y is a solution to the DE: plug it in!