I would like to fit y = a + exp(bt) to the points (1,1) and (2,5). So I take the natural logarithm of the equation and apply it to both points:
ln(y1) = ln(a) + bt1
ln(y2) = ln(a) + bt2
With (1,1) = (t1, y1) and (2,5) = (t2, y2) so that:
ln(1) = ln(a) + b
ln(5) = ln(a) + 2b
Subtracting yields b = ln(5) = 1.609. I plug this back into my linearized system and I get ln(a) = -1.609, therefore a = 0.2. So far, so good. Do these numbers work in the original equations?
a = y1 - exp(bt1) --> 0.2 = 1 - exp(1.609) = 1 - 5 = -4 WRONG!
a = y2 - exp(bt2) --> 0.2 = 5 - exp(2 * 1.609) = 5 - 25 = -20 ALSO WRONG!
I would have thought that even though the initial equations were nonlinear, taking logarithms would have changed them to two linear equations in 2 variables {ln(a), b}. This should in theory produce a unique answer for the pair {a,b}.
Where am I going wrong?
Roberto