Instead of approximating \(f(x)\) directly (rank 0), approximate it in a
relative space (rank 1) or a higher log–log space (rank 2), then transform back.
This often improves numerical stability for large values and multi-scale growth.
Notation rule: derivatives are written with explicit rank and degree:
\(\;D_r^n\). In this page we mainly use degree \(1\): \(\;D_0^1, D_1^1, D_2^1\).
Here \(\ln(\ln f)=\ln((\ln x)^2)=2\ln(\ln x)\), so \(D_{2}^{1}f=2\) is constant.
Therefore the rank-2 approximation is exact in theory; any displayed \(\approx 0\) error is only rounding/formatting.
Table — Experiment 1 (multi-scale): D0 vs D1 vs D2
x
True value
Rank 0
Rank 1
Rank 2
Rel. err R0
Rel. err R1
Rel. err R2
8
75.496
15.850
71.829
75.496
0.790
0.0486
≈0
9
124.935
108.284
123.556
124.935
0.133
0.0110
≈0
10
200.717
200.717
200.717
200.717
0
0
0
11
314.160
293.151
311.319
314.160
0.0669
0.00904
≈0
12
480.468
385.585
464.759
480.468
0.197
0.0327
≈0
15
1530.785
662.886
1298.719
1530.785
0.567
0.152
≈0
Note:
If you later compute the table by code, keep more digits to show that rank-2 errors are numerically near machine precision.
3) Experiment 2: power law where rank 1 becomes exact
\[
g(x)=x^{3.5},\quad x>0,\qquad x_0=10.
\]
Compare at \(x\in\{8,9,10,11,12,15\}\).
Why this example?
For a power law, \(D_{1}^{1}g=3.5\) is constant, so the rank-1 model matches the true value (up to rounding).
Table — Experiment 2 (power law): D0 vs D1
x
True value
Rank 0
Rank 1
Rel. err R0
Rel. err R1
8
1448.155
948.683
1448.155
0.345
≈0
9
2187.000
2055.480
2187.000
0.0601
≈0
10
3162.278
3162.278
3162.278
0
0
11
4414.428
4269.075
4414.428
0.0329
≈0
12
5985.968
5375.872
5985.968
0.1019
≈0
15
13071.319
8696.264
13071.319
0.335
≈0
4) Conclusion
Practical rule
Power-law behavior ⟶ rank 1 (relative derivative \(D_{1}^{1}\)) is typically the right coordinate system.
Multi-scale behavior like \(\exp((\ln x)^k)\) ⟶ rank 2 (\(D_{2}^{1}\)) becomes highly stable and can be exact for certain models.