koreamaniac101
New member
- Joined
- Dec 20, 2016
- Messages
- 7
The equation i am asked to solve is this:
dy/dx = 100 - y ; with y(0) = 60; for x = 1 and x = 2
Seems simple enough, but when they present the solution:
dy/(100 - y) = dx => -ln|100 - y| = x + C => 100 - y = Ae-x => Using the initial condition, we find that A = 40.
y(1) = 100 - 40e-1
y(2) = 100 - 40e-2
My confusion lies in the negative ln. When you integrate 1/(100 - y), shouldnt it just be a regular positive ln(100 - y)?
Furthermore, why do they have a negative x exponenet on the other side?
How I solved it (incorrectly) is shown below:
dy/(100 - y) = dx
Integrate both sides:
ln|100 - y| = x + C
Plug in x = 0, and y = 60:
C = 40
ln|100 - y| = x + ln40
Bring everything to the power of e:
100 - y = ex + ln40
100 - y = 40ex
y = 100 - 40ex
Can someone show me what i did wrong?
dy/dx = 100 - y ; with y(0) = 60; for x = 1 and x = 2
Seems simple enough, but when they present the solution:
dy/(100 - y) = dx => -ln|100 - y| = x + C => 100 - y = Ae-x => Using the initial condition, we find that A = 40.
y(1) = 100 - 40e-1
y(2) = 100 - 40e-2
My confusion lies in the negative ln. When you integrate 1/(100 - y), shouldnt it just be a regular positive ln(100 - y)?
Furthermore, why do they have a negative x exponenet on the other side?
How I solved it (incorrectly) is shown below:
dy/(100 - y) = dx
Integrate both sides:
ln|100 - y| = x + C
Plug in x = 0, and y = 60:
C = 40
ln|100 - y| = x + ln40
Bring everything to the power of e:
100 - y = ex + ln40
100 - y = 40ex
y = 100 - 40ex
Can someone show me what i did wrong?