PHYSICS · Subjective · Fermi University Physics · Mathematical Methods for Physics · Numerical and computational mathematics
Computational Physics, Ch Finding the best parameters: minimisation and fitting
Problem
A mass m=2.0kg hangs from a light, ideal spring of stiffness k=50Nm−1, with x the downward extension from the spring's natural length. Air resistance and the spring's own mass are ignored. The energy of the mass, taking the gravitational potential energy reference at x=0, is E(x)=21kx2−mgx, with g=9.8ms−2.
(a) Find the exact equilibrium extension x∗ by setting dE/dx=0.
(b) E(x) is minimised numerically over the bracket x∈[0,1]m (width W0=1.0m) by golden-section search, which after its two starting evaluations shrinks the bracket by a factor of 0.618 at every further function evaluation. How many of those further evaluations are needed to shrink the bracket to a width below 1.0mm?