Solving Linear ODE: 2*dy/dx - y = e^x at y(0) = 0

  • Thread starter Thread starter NewtonianAlch
  • Start date Start date
  • Tags Tags
    Linear Ode
NewtonianAlch
Messages
453
Reaction score
0

Homework Statement



Solve 2*dy/dx - y = e^x at y(0) = 0

The Attempt at a Solution



So the integrating factor is e^-x

Multiplying through by e^-x:

2e^-x(dy/dx) - ye^-x = 1

Now this is where I'm having a slight problem, isn't the left hand side meant to contract via the product rule to d/dx(...) ?

Except that the derivative of 2e^-x is not -e^-x

What have I done wrong?
 
Physics news on Phys.org
NewtonianAlch said:

Homework Statement



Solve 2*dy/dx - y = e^x at y(0) = 0

The Attempt at a Solution



So the integrating factor is e^-x

Multiplying through by e^-x:

2e^-x(dy/dx) - ye^-x = 1

Now this is where I'm having a slight problem, isn't the left hand side meant to contract via the product rule to d/dx(...) ?

Except that the derivative of 2e^-x is not -e^-x

What have I done wrong?
You might want to check your integrating factor :wink:
 
The form of the differential equation needed before computing an integrating factor is
y' + P(x)y = Q(x). This is done so the Product Rule can be applied: you are looking for a function I(x) such that

I(x) \frac{dy}{dx} + I(x)P(x)y = I(x)Q(x) \Rightarrow \frac{d}{dx}[I(x)y(x)] = I(x)Q(x) ,

that is, so you will be able to re-make the left-hand side of the differential equation into the derivative of a simple product. After integration, you will have I(x)y(x) = \int I(x)Q(x), after which you can simply divide I(x) back out again to obtain an expression for y (one that has a "closed form" if I(x)Q(x) can be integrated).
 
NewtonianAlch said:

Homework Statement



Solve 2*dy/dx - y = e^x at y(0) = 0

The Attempt at a Solution



So the integrating factor is e^-x

Multiplying through by e^-x:

2e^-x(dy/dx) - ye^-x = 1

Now this is where I'm having a slight problem, isn't the left hand side meant to contract via the product rule to d/dx(...) ?

Except that the derivative of 2e^-x is not -e^-x
Then you must have the wrong integrating factor since this is exactly how "integrating factor" is defined!

What have I done wrong?
 
Ah...I see now, I should divide the equation through by 2 first, therefore the integrating factor becomes e^-1/2x

and the equation eventually becomes y = e^x + e^-1/2x

Thanks guys =)
 
NewtonianAlch said:
...
and the equation eventually becomes y = e^x + e^-1/2x

Not quite: check what you did when you divided e-(1/2)x back out. Your solution doesn't work in the original DE...
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top