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
Click For Summary

Homework Help Overview

The discussion revolves around solving the linear ordinary differential equation (ODE) given by 2*dy/dx - y = e^x with the initial condition y(0) = 0. Participants are exploring the method of integrating factors to approach the problem.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the use of an integrating factor, initially suggesting e^-x, and question its correctness based on the application of the product rule. There is confusion regarding the derivative of the integrating factor and its implications for the left-hand side of the equation.

Discussion Status

Some participants have provided guidance on the correct form of the differential equation needed for applying the integrating factor. There is an acknowledgment of a potential mistake in the choice of integrating factor, and further exploration of dividing the equation by 2 is suggested. However, there is no explicit consensus on the correct approach yet.

Contextual Notes

Participants are working within the constraints of the problem statement and initial condition, and there is ongoing discussion about the implications of their choices on the solution's validity.

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

[tex]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) ,[/tex]

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 [itex]I(x)y(x) = \int I(x)Q(x)[/itex], 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:

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
7
Views
2K
Replies
9
Views
2K
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K