Professional Documents
Culture Documents
Quadratic Interpolation
Quadratic interpolation takes advantage of the
fact that a second order polynomial often provides
a good approximation to the shape of f(x) near an
optimum.
If we have three points that jointly bracket an
optimum, we can fit a parabola to the points.
Then we can differentiate it, set the result equal
to zero, and solve for an estimate of the optimal x.
some
algebraic
f x0 x12 x 2 2 f x1 x 2 2 x0 2 f x 2 x0 2 x12
x3
2 f x0 x1 x 2 2 f x1 x 2 x0 2 f x 2 x0 x1
Example:
Use quadratic interpolation to approximate the
maximum of
x2
f x 2 sin x
10
Solution:
The new points are (1,1.5829), (1.5055, 1.7691),
(4, -3.1136) so
x3 1.4903, f 1.4903 1.7714
The process can be repeated, with the following
result
x3 1.4256, f 1.4256 1.7757
x3 1.4266,
f 1.4266 1.7757
x3 1.4275,
f 1.4275 1.7757
Newtons Method:
The Newton-Raphson method is an open method
that finds the root of a function using
f xi
xi 1 xi
f xi
A similar open approach can be used to find the
optimum of f(x) by defining a new function ,
g(x) = f(x), leading to the equation
f xi
xi 1 xi
f xi
To find the minimum or maximum of f(x).
Example:
Use Newtons
maximum of
method
to
approximate
x2
f x 2 sin x
10
f x 2 sin x
1
5
the
Solution:
Substitute the derivatives to the equation
x i 1
x
2 cos x i
5
xi
1
2 sin x i
5
x1 0.99508 f x 1.57859
Exercise:
Find the extrema of the function
f x 5 sin2 x 2 x 4 x
2
Resources
Numerical Methods Using Matlab, 4th Edition,
2004 by John H. Mathews and Kurtis K. Fink
Holistic Numerical Methods Institute by Autar
Kaw and Jai Pau.
Numerical Methods for Engineers by Chapra
and Canale