Given the formula
[tex]P=\frac{A}{(1+r)^t}[/tex]And given the information:
A = $5000
r = 0.05 (5%)
t = 4 years
Substituting the values in the formula:
[tex]\begin{gathered} P=\frac{5000}{(1+0.05)^4} \\ P=\frac{5000}{1.05^4} \\ P=\frac{5000}{1.2155} \\ P=4113.5 \end{gathered}[/tex]Answer: You have to invest $4113.5.