How many years will it take for an initial investment of $5,000 to double if it is invested at a rate of 3% compunded continuously? Compounded annually?

5000 e^(.03t) = 10000

e^(.03t) = 2
take ln of both sides , and use rules of logs
.03t = ln 2
t = ln 2/.03 = appr 23.1 years

if compounded annually

1.03^t = 2
t ln1.03 = ln2
t = ln2/ln1.03 = appr 23.45 years

To calculate the time it takes for an investment to double, we can use the compound interest formula:

A = P * e^(rt)

Where:
- A is the final amount
- P is the principal amount (initial investment)
- e is Euler's number (approximately 2.71828)
- r is the interest rate
- t is the time in years

Let's first calculate the time it takes to double the investment with continuous compounding:

A = 2P
2P = P * e^(rt)

Dividing both sides by P:
2 = e^(rt)

Taking the natural logarithm (ln) of both sides:
ln(2) = rt

Now we can solve for t:
t = ln(2) / r

Plugging in the given values:
t = ln(2) / 0.03

Using a scientific calculator or a calculator with a natural logarithm function, we find:
t ≈ 23.11 years (rounded to the nearest hundredth)

Therefore, it will take approximately 23.11 years for the investment to double with continuous compounding.

Now let's calculate the time it takes to double the investment with annual compounding:

A = P * (1 + r)^t

Again, let A = 2P:
2P = P * (1 + r)^t

Dividing both sides by P:
2 = (1 + r)^t

Taking the logarithm (base 10) of both sides:
log(2) = t * log(1 + r)

Solving for t:
t = log(2) / log(1 + r)

Substituting the values:
t = log(2) / log(1 + 0.03)

Using a calculator with logarithm functions:
t ≈ 23.45 years (rounded to the nearest hundredth)

Therefore, it will take approximately 23.45 years for the investment to double with annual compounding.