gulsen
- 215
- 0
I have a basic differential equation:
\frac{dy}{dx} = x + y, y(0) = 1
Now, when I try to solve this by making it exact
\mu \frac{dy}{dx} + \mu y = \mu x
I get \mu = e^{-x} and solution -x-1. This doesn't satisfy the initial condition. But when I try to solve it as a non-homogenous equation as:
\frac{dy}{dx} + y= x
I get
y_p = 2e^x, y_c = -x-1
so
y = 2e^x-x-1
Which seems to be a correct & full solution. What was I missing in the first try?
\frac{dy}{dx} = x + y, y(0) = 1
Now, when I try to solve this by making it exact
\mu \frac{dy}{dx} + \mu y = \mu x
I get \mu = e^{-x} and solution -x-1. This doesn't satisfy the initial condition. But when I try to solve it as a non-homogenous equation as:
\frac{dy}{dx} + y= x
I get
y_p = 2e^x, y_c = -x-1
so
y = 2e^x-x-1
Which seems to be a correct & full solution. What was I missing in the first try?