Example 1.2 (Shortest Distance from a Point to a Line) Determine the shortest
Fig. E1.2 . If x is a point on the line, we may pose the optimization problem:
minimize f ¼ (x ² x ) þ (x ² x )
1
0 2
1 2
0 2
2
subject to h( x) ≡ a þ a x þ a x ¼ 0
0 1 1 2 2
are two variables in the problem and h represents a linear equality constraint. The
will find that the solution x* will lie at the foot of the perpendicular drawn from x 0
to
the line.
0
x Figure E1.2. Shortest-distance problem posed as an
optimization problem.
line
x2
x1
minimize f ¼ (x ² x ) ( x ² x 0 T 0
)
subject to h(x) ≡ a x ² b ¼ 0 T
where a = [ a a 1
] ,
2
T
b = –a . Using the method of
0
Lagrange multipliers (Chapter 5), we
obtain a closed-form solution for the point x *
( a x ² b)
T 0
x ±
¼ x 0
² a
(a a)
T
T
Note that a a is a scalar. The shortest distance d is
a x
j
T
²
0
bj
d ¼ pffiffiffiffiffiffiffi ffi
a a T
Extensions: The problem can be readily generalized to finding the shortest distance
from a point to a plane in 2, 3, or n dimensions. □
Example 1.3 (Beam on Two Supports) First, consider a uniformly loaded beam
on two supports as shown in Fig. E1.3a. The beam length is 2 L units, and the
“a /L” so as to minimize the maximum de flection that occurs in the beam. One
can assume L = 1.