590 Elementary reminders of differential calculus
words, the s ystem to solve is
∂ f
∂ x
1
( a) −
k
X
i=1
λ
i
∂ C
(i)
∂ x
1
( a) = 0,
.
.
.
.
.
.
∂ f
∂ x
n
( a) −
k
X
i=1
λ
i
∂ C
(i)
∂ x
n
( a) = 0
and
C
(1)
( a) = 0,
.
.
.
C
(k)
( a) = 0,
(b.4)
where there are n + k equations, with n + k unknowns, the coordinates of
a = (a
1
, . . . , a
n
) and the auxiliary unknowns λ
1
, . . . , λ
k
, called the Lagrange
multipliers. Those auxiliary unknowns have t he advantage of preserving sym-
metry among all variab les . Moreover, they sometimes have physical signif-
icance (for instance, temperature in thermodynamics is the inverse of a La-
grange multiplier).
Physicists usually proceed as follows: introduce k multipliers λ
1
, . . . , λ
k
and construct an auxiliary function
F ( x)
def
= f ( x) −
k
X
i=1
λ
i
C
(i)
( x).
Look then for points a ∈ R
n
giving free ex trema of F , that is, where the
n varia bles x
1
, . . . , x
n
are independent (do not necessarily lie on S ). The
condition that the differential of F vanishes gives the first set of equations
in (b.4), and of course the solutions depend on the additional parameters
λ
i
. The values for those are found at the end, using the constraints on the
problem, namely, the second set of equations in (b.4).
Example B.5 Let S be a surface in R
3
with equation C (x, y, z) = 0. Let r
0
∈ R
3
be a po int
not in S , and consider the problem of finding the points of S closest to r
0
, that is, those
minimizing the function f ( x) = kx − r
0
k
2
, with the constraint C ( x) = 0. The auxiliar y
function is F ( x) = kx − r
0
k
2
−λC ( x), with differential (at a point a ∈ R
3
) given by
dF
a
= 2 ( a − r
0
|·) −λ
grad C ( a)
·
,
in other words,
dF
a
. h = 2( a − r
0
) · h −λ grad C ( a) · h for all h ∈ R
3
.
The free extrema of F are the points a such that ( a − r
0
) is colinear with the gradient of C
at a. Using the condition C ( a) = 0, the values of λ are found. Since grad C ( a) is a vector
perpendicular to the surface S , the geometric interpretation of the necessary condition is t hat
points of S closest to r
0
are t h o se for which ( a − r
0
) is perpe ndicular to the surface at the
point a.
Of course, this is a necessary condition, but not necessari ly a sufficient condition (the
distance may be maximal at the points found in this manner, or there may be a saddle point).
Remark B.6 Introducting the constraint multiplied by an additional parameter in the auxiliary
function in order to satisfy this constraint is a trick used in electromagnetism in order to fix
the gauge. In the Lagrangian formulation of electromagnetism, the goal is indeed to minimize