Skip to main content

Fit y = a e^(bx)

Short answer

Linearize via ln y = ln a + bx. Least squares on the transformed data gives A=1.0301, B=0.4613, so a=2.8015, b=0.4613. The curve is y = 2.8015 e^(0.4613x).

Fit the following set of data to a curve of the form y = a e^(bx) from the following observation by least square method.

x123456
y5.56.59.415.230.649.8

Take natural logarithms: y = a·e^(bx) → ln y = ln a + b·x. Put Y = ln y, A = ln a, so Y = A + bx is a straight line.

xyY = ln yx²xY
15.51.70471.00001.7047
26.51.87184.00003.7436
39.42.24079.00006.7221
415.22.721316.000010.8852
530.63.421025.000017.1050
649.83.908036.000023.4481
Σx = 2115.867691.000063.6088

Normal equations (b = B)

ΣY = n·A + B·Σx      →  15.8676 = 6A + 21.0000B
ΣxY = A·Σx + B·Σx²   →  63.6088 = 21.0000A + 91.0000B

Solving: B = (nΣxY − ΣxΣY)/(nΣx² − (Σx)²) = 0.4613, A = (ΣY − BΣx)/n = 1.0301.

a = e^A = 2.8015, b = 0.4613.

Answer: y = 2.8015 e^(0.4613x) (at x = 6 it gives 44.60 against 49.8).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 4 questions →