Trying to apply my DiffEq solution.

  • Thread starter Thread starter Geofram
  • Start date Start date
  • Tags Tags
    Apply Diffeq
Geofram
Messages
5
Reaction score
0

Homework Statement



S is the balance of a savings account
W is the amount withdrawn per year.
k is a rate percentage of continuous interest per year

1. Solve the differential Equation above.
2. Draw a phase portrait and assess the solution's stability.
3. Assume you have $1,000,000 for retirement. How long would this savings last if the balance grows at 2% per year and you have to withdraw $50,000 a year to live?


Homework Equations



dS/dt = kS - W

The Attempt at a Solution



To solve this I've isolated like terms:

dS/(kS - W) = dt

ln(kS - W)/k = t + C1

ln(kS - W) = t + C2

kS - W = ekt + eC2

kS = C2ekt + W

S = (C2ekt + W) / k

S = C3ekt + W/k


I'm just unsure about what to plug into find out what happens to the solution for the phase diagram, and also I'm lost on how to solve #3.

For number 3, I would plug in 0 for S because we want to know when it runs out.
k = .02, t = ?, and W = 50,000

I'm just lost on how I get C3. I can plug in the starting values to get:
t = 0 because we're just starting?
1,000,000 = C3e0.02(0) + 50,000 / .02
-1,500,000 = C3e0
C3 = -1,500,000

But if I plug this back in:

0 = (-1,500,000)e0.02t + 50,000/.02
(-2,500,000)/(-1,500,000) = e0.02t
ln(1.6667) = 0.02t
t = 25.54 years?

That actually makes sense...
 
Last edited:
Physics news on Phys.org
Geofram said:

Homework Statement



S is the balance of a savings account
W is the amount withdrawn per year.
k is a rate percentage of continuous interest per year

1. Solve the differential Equation above.
2. Draw a phase portrait and assess the solution's stability.
3. Assume you have $1,000,000 for retirement. How long would this savings last if the balance grows at 2% per year and you have to withdraw $50,000 a year to live?


Homework Equations



dS/dt = kS - W

The Attempt at a Solution



To solve this I've isolated like terms:

dS/(kS - W) = dt

ln(kS - W)/k = t + C1

ln(kS - W) = t + C2

kS - W = ekt + eC2
You went wrong here.
e^{t+ C_2}= (e^t)(e^{C_2}
the product of the exponentials, not the sum. Also, there should be no "k" multiplying t.

kS = C2ekt + W

S = (C2ekt + W) / k

S = C3ekt + W/k


I'm just unsure about what to plug into find out what happens to the solution for the phase diagram, and also I'm lost on how to solve #3.

For number 3, I would plug in 0 for S because we want to know when it runs out.
k = .02, t = ?, and W = 50,000

I'm just lost on how I get C3.
 
Geofram said:
ln(kS - W)/k = t + C1

ln(kS - W) = t + C2

Actually I just forgot to do it in the step I multiplied k out.
It should be:

Geofram said:
ln(kS - W)/k = t + C1

ln(kS - W) = kt + C2

Take a look at what I added, does that seem right? I'm still confused on how to accomplish #2
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...

Similar threads

Back
Top