Skip to main content

Golden section search for a minimum

Short answer

Golden section search places two interior points at 0.618 intervals, reuses one point, needing only one new evaluation per reduction—far more efficient than exhaustive search. For f(x)=x²+54/x on [1,5], after four iterations the interval is [2.89,3.47]; estimated minimum near x≈3.2 (true x=3).

(a) Explain the golden section search method for a single-variable function, and state why it is better than the exhaustive search. (b) Use the golden section method to locate the minimum of f(x)=x2+54/xf(x) = x^2 + 54/x in the interval [1,5][1, 5]. Carry out four iterations and give the final interval and the estimated minimum. Take the golden ratio constant as 0.618.

(a) Golden section search

It is an interval-reduction method for a unimodal function (one minimum in the interval). Two interior points are placed at

x1=b−0.618(b−a),x2=a+0.618(b−a)x_1 = b - 0.618(b-a), \qquad x_2 = a + 0.618(b-a)
  • If f(x1)<f(x2)f(x_1) < f(x_2), the minimum lies in [a,x2][a, x_2], so set b=x2b = x_2.
  • Otherwise it lies in [x1,b][x_1, b], so set a=x1a = x_1.

The old interior point is reused as one new interior point, so each iteration needs only one new function evaluation and shrinks the interval by 0.618. Exhaustive search needs many evaluations for the same accuracy, so golden section is much cheaper. It needs no derivative.

(b) Numerical

Initial [a,b]=[1,5][a,b] = [1,5], length 4.

Iteraabbx1x_1x2x_2f(x1)f(x_1)f(x2)f(x_2)Keep
11.0005.0002.5283.47227.75227.608[x1,b][x_1, b]
22.5285.0003.4724.05627.60829.763[a,x2][a, x_2]
32.5284.0563.1113.47227.03627.608[a,x2][a, x_2]
42.5283.4722.8893.11127.03827.036[x1,b][x_1, b]

After four iterations the interval is [2.889,3.472][2.889, 3.472] (length 0.583, which is 4×0.61844\times0.618^4).

Estimated minimum at the mid-point: x∗≈3.18x^* \approx 3.18, f≈27.09f \approx 27.09.

Check by calculus: f′=2x−54/x2=0⇒x3=27⇒x=3f' = 2x - 54/x^2 = 0 \Rightarrow x^3 = 27 \Rightarrow x = 3, fmin=27f_{min} = 27. The search interval contains this point.

Answer: final interval [2.89, 3.47][2.89,\ 3.47]; x∗≈3.2x^* \approx 3.2 (true minimum x=3x=3, f=27f=27).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Machine Design II chapter 2 questions →