To fit a functional form
(1)

take the logarithm of both sides
(2)

The bestfit values are then
(3)
 
(4)

where and .
This fit gives greater weights to small values so, in order to weight the points equally, it is often better to minimize the function
(5)

Applying least squares fitting gives
(6)

(7)

(8)

Solving for and ,
(9)
 
(10)

In the plot above, the shortdashed curve is the fit computed from (◇) and (◇) and the longdashed curve is the fit computed from (9) and (10).