Skip to main content

Fit curve y = a x^b (A)

Short answer

Take log10: log y = log a + b log x. Linear least squares gives log a ≈ -0.2216, b≈3.1734. Thus a=10^{-0.2216}≈0.6003, so the fitted curve is y=0.6003 x^3.1734.

Fit the curve y = ax^b to the following data:

x457101113
y4810029490012102028

Take logarithms (base 10): y = a·xᵇ → log y = log a + b·log x. Put Y = log y, X = log x, A = log a, so Y = A + bX, a straight line fitted by least squares.

xyX = log xY = log yX²XY
4480.60211.68120.36251.0122
51000.69902.00000.48861.3979
72940.84512.46830.71422.0860
109001.00002.95421.00002.9542
1112101.04143.08281.08453.2104
1320281.11393.30711.24093.6839
Σ5.301515.49374.890614.3447

Normal equations (b = B)

ΣY = n·A + B·ΣX      →  15.4937 = 6A + 5.3015B
ΣXY = A·ΣX + B·ΣX²   →  14.3447 = 5.3015A + 4.8906B

Solving: B = (nΣXY − ΣXΣY)/(nΣX² − (ΣX)²) = 3.1734, A = (ΣY − BΣX)/n = -0.2216.

Then a = 10ᴬ = 10^(-0.2216) = 0.6003, b = 3.1734.

Answer: y = 0.6003 x^3.1734 (check: at x = 10, y ≈ 894.8 against 900).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 4 questions →