STEP 2 · 20 marks

STEP 2 2000 · Q5

Pure mathematics

It is required to approximate a given function f(x)\mathrm{f}(x), over the interval 0⩽x⩽10\leqslant x\leqslant1, by the linear function λx\lambda x, where λ\lambda is chosen to minimise

∫01(f(x)−λx)2 dx. \int_0^1\Bigl(\mathrm{f}(x)-\lambda x\Bigr)^2\,\dd x.

Show that

λ=3∫01x f(x) dx. \lambda=3\int_0^1 x\,\mathrm{f}(x)\,\dd x.

The residual error, RR, of this approximation process is such that

R2=∫01(f(x)−λx)2 dx. R^2=\int_0^1\Bigl(\mathrm{f}(x)-\lambda x\Bigr)^2\,\dd x.

Show that

R2=∫01(f(x))2 dx−13λ2. R^2=\int_0^1\Bigl(\mathrm{f}(x)\Bigr)^2\,\dd x-\frac13\lambda^2.

Given now that f(x)=sin⁡(πx/n)\mathrm{f}(x)=\sin(\pi x/n), show that (i) for large nn, λ≈π/n\lambda\approx\pi/n and (ii) lim⁡n→∞R=0\lim_{n\to\infty}R=0.

Explain why, prior to any calculation, these results are to be expected.

[You may assume that, when θ\theta is small, sin⁡θ≈θ−θ3/6\sin\theta\approx\theta-\theta^3/6 and cos⁡θ≈1−θ2/2\cos\theta\approx1-\theta^2/2.]

Read the questions freely. Sign in to check your answer, see the model answer and save your progress.