[Math] The Newton-Raphson Method for finding a correct monthly interest rate

calculusderivativesnewton raphson

I am very new to this topic and just started to learn about this method. Trying to understand this method intuitively.

In this document I found and interesting real life question:

A loan of $A$ dollars is repaid by making $n$ equal monthly payments of
$M$ dollars, starting a month after the loan is made. It can be shown
that if the monthly interest rate is $r$, then
$$Ar=M\left(1-\frac1{(1+r)^n}\right).$$
A car loan of $10000$ dollars was repaid in $60$ monthly payments of $250$ dollars.
Use the Newton Method to find the monthly interest rate correct to $4$
significant figures.

Can somebody please explain intuitively why do we use this method in real life? If I understood correctly so far, we can make a guess and then find a very close number to the real answer, using this method.

Appreciate your time and other interesting examples, ideally with a code example in R/Python. Thanks!

Best Answer

For intuition, you might be interested in reading Why does Newton's method work? and Math Insight.

As for this specific example, we cannot find a nice closed-form solution, so we are stuck using numerical methods instead and will choose Newton's Method, but many other root finding methods will work.

Some of the goals of numerical methods are to be stable and have as fast as convergence as possible for each iteration of the algorithm. In this problem, we are given:

A loan of $A$ dollars is repaid by making $n$ equal monthly payments of $M$ dollars, starting a month after the loan is made. It can be shown that if the monthly interest rate is $r$, then $$Ar=M\left(1-\dfrac1{(1+r)^n}\right).$$ A car loan of $10000$ dollars was repaid in $60$ monthly payments of $250$ dollars. Use the Newton Method to find the monthly interest rate correct to $4$ significant figures.

So, we know

$$Ar = M\left(1-\dfrac1{(1+r)^n}\right) \rightarrow 10000 r = 250 \left(1-\dfrac1{(1+r)^{60}}\right)$$

We want to solve this function for $r$, but there is no closed form solution, so Newton's Method it is. For the Newton iteration step below, we can write our function as

$$f(r) = 40 r + \dfrac1{(r+1)^{60}} - 1$$

Taking the derivative, we have

$$f'(r) = 40 - \dfrac{60}{(r+1)^{61}}$$

The Newton iteration is given by $x_{n+1} = x_n - \dfrac{f(x)}{f'(x)}$, so we have

$$r_{n+1} = r_n - \dfrac{40 r_n +\dfrac{1}{(r_n+1)^{60}}-1}{40-\dfrac{60}{(r_n+1)^{61}}} = $$

Now, we choose a starting value, say, $r_0 = 1$, and keep our fingers crossed and have the iteration

  • $r_0 = 1.0000000$
  • $r_1 = 0.0250000$
  • $r_2 = 0.0164861$
  • $r_3 = 0.0145644$
  • $r_4 = 0.0143962$
  • $r_5 = 0.0143948$
  • $r_6 = 0.0143948$

So, we find that the monthly interest rate is $1.439 \%$ to four significant figures.

Related Question