General solution of ordinary differential equation

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

Homework Statement



Find the general solution of the differential equation,

y' + y = be^(-λx)

where b is a real number and λ is a positive constant.

Homework Equations



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

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

The Attempt at a Solution



Let P(x) = 1, Q(x) = be^(-λx)

The equation is already in the form y' + P(x)y = Q(x).

So, the integrating fator is I(x) = e^(∫1 dx) = e^(x)

Multiplying both sides by the integrating factor.

e^(x)y + e^(x)y = be^(-λx)e^(x)

(e^(x)y)' = be^(-λx)e^(x)

Now integrating the left hand side,

e^(x)y = be^(-λx)e^(x)

Here is my problem. I don't know where to go from here. How do I integrate the right hand side? That's my main problem.


Any help will be greatly appreciated.
 
Physics news on Phys.org
Why not simplify it? e^(-ax) = 1/(e^(ax)).
 
tracedinair said:

Homework Statement



Find the general solution of the differential equation,

y' + y = be^(-λx)

where b is a real number and λ is a positive constant.

Homework Equations



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

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

The Attempt at a Solution



Let P(x) = 1, Q(x) = be^(-λx)

The equation is already in the form y' + P(x)y = Q(x).

So, the integrating fator is I(x) = e^(∫1 dx) = e^(x)

Multiplying both sides by the integrating factor.

e^(x)y + e^(x)y = be^(-λx)e^(x)

(e^(x)y)' = be^(-λx)e^(x)

Now integrating the left hand side,

e^(x)y = be^(-λx)e^(x)
Please do not write an equation that you know isn't true! You have integrated the left side but not yet the right side so you know they are not equal. You might write
[tex]e^xy= \int be^{-\lambda x}e^x dx[/tex]
to indicate that the right has yet to be integrated.


Here is my problem. I don't know where to go from here. How do I integrate the right hand side? That's my main problem.
[tex]e^{-\lambda x}e^x= e^{(1-\lambda)x}[/tex]
Can you integrate that?

Any help will be greatly appreciated.
 
I apologize for the integral symbol, simple mistake.

I integrated e^((1-λ)x) and came up with this,

∫e^((1-λ)x) dx

Let u = ((1-λ)x) so du = (1-λ) dx

Now,

∫e^(u) du/(1-λ)

1/(1-λ) ∫e^(u) du

1/(1-λ)*e^(u) + C

Substituting back in for u,

1/(1-λ)*e^(x(1-λ)) + C

Going back to e^(x)y = ∫be^(-λx)e^(x) dx, I obtained,

y = be^(-x)*e^(x(1-λ))/(1-λ)

y = [be^(x(1-λ))] / [e^(x)*(1-λ)]