You want to minimize a differentiable real-valued function f
on a smooth hypersurface S
. If such a minimum exists - in the situation after the edit it is guaranteed to exist because the hypersurface is compact - it occurs at a critical point of the restriction f|S
of f
to S
.
The critical points of a differentiable function f
defined in the ambient space restricted to a manifold M
are those points where the gradient of f
is orthogonal to the tangent space T(M)
to the manifold. For the general case, read up on Lagrange multipliers.
In the case where the manifold is a hypersurface (it has real codimension 1) defined (locally) by an equation g(x) = 0
with a smooth function g
, that is particularly easy to detect, the critical points of f|S
are the points x
on S
where grad(f)|x
is collinear with grad(g)|x
.
Now the problem is actually a real (as in concerns the real numbers) problem and not a complex (as in concerning complex numbers) one.
Stripping off the unnecessary imaginary parts, we have
- the hypersurface
S
, which conveniently is the unit sphere, globally defined by (x|x) = 1
where (a|b)
denotes the scalar product a_1*b_1 + ... + a_k*b_k
, the gradient of g
at x
is just 2*x
- a real linear function
L(x) = (c|x) = c_1*x_1 + ... + c_k*x_k
, the gradient of L
is c
independent of x
So there are two critical points of L
on the sphere (unless c = 0
in which case L
is constant), the points where the line through the origin and c
intersects the sphere, c/|c|
and -c/|c|
.
Obviously L(c/|c|) = 1/|c|*(c|c) = |c|
and L(-c/|c|) = -1/|c|*(c|c) = -|c|
, so the minimum occurs at -c/|c|
and the value there is -|c|
.