| Thread Closed |
solution conflict! |
Share Thread |
| Jan4-06, 12:44 PM | #1 |
|
|
solution conflict!
I have a basic differential equation:
[tex]\frac{dy}{dx} = x + y, y(0) = 1[/tex] Now, when I try to solve this by making it exact [tex]\mu \frac{dy}{dx} + \mu y = \mu x[/tex] I get [tex]\mu = e^{-x}[/tex] and solution [tex]-x-1[/tex]. This doesn't satisfy the initial condition. But when I try to solve it as a non-homogenous equation as: [tex]\frac{dy}{dx} + y= x[/tex] I get [tex]y_p = 2e^x, y_c = -x-1[/tex] so [tex]y = 2e^x-x-1[/tex] Which seems to be a correct & full solution. What was I missing in the first try? |
| Jan4-06, 01:18 PM | #2 |
|
|
You are solving dy/dx + y = x which is wrong since the original equation is
dy/dx = x + y, or dy/dx - y = x so now u(x) = e^(-x) and so on and it works out. And yes, the answer is y = 2e^x - x - 1 |
| Jan4-06, 01:54 PM | #3 |
|
Mentor
|
[tex]\mu \frac{dy}{dx} - \mu y = \mu x[/tex] [tex]y = -(x+1) + c/\mu = ce^x - (1+x)[/tex] and then solved for the initial condition [itex]y(0)=1[/itex] yielding [itex]c=2[/itex] or [tex]y = 2e^x -(x+1)[/tex] In this case, the solution to the homogeneous equation [itex]y^\prime-y=0[/itex] is [tex]y_c = ce^x[/tex] where [itex]c[/itex] is an arbitrary constant and [tex]y_p = -(x+1)[/tex] is a particular solution to the inhomogeneous equation. Combining these, [tex]y = ce^x - (1+x)[/tex] which meets the initial conditions when [itex]c=2[/itex]. |
| Jan19-06, 11:19 PM | #4 |
|
|
solution conflict!
Oh, that was just a typo. Thanks D_H, it ends up that I've forgotten the integration constant.
About naming, take it easy, I'm just a freshman! |
| Thread Closed |
Similar discussions for: solution conflict!
|
||||
| Thread | Forum | Replies | ||
| GR and QM conflict | Special & General Relativity | 0 | ||
| The Universe/Set Theory Conflict? | Set Theory, Logic, Probability, Statistics | 6 | ||
| Can someone explain the Spain/ETA conflict for me? | Current Events | 10 | ||
| Solution to political conflict on PF? | Current Events | 19 | ||