Proof
Complete prerequisite proofs and the local theorem
Fix an integer and the Euclidean norm on . A set is bounded if it lies in some finite-radius ball, closed if its complement is open, and compact if every cover by open subsets of has a finite subcover. We use real completeness, including the nested closed interval property.
Heine–Borel in finite-dimensional Euclidean space
Theorem. A set is compact if and only if it is closed and bounded. The empty set satisfies all three properties.
Compact implies bounded. The open balls , an integer, cover . A finite subcover puts inside the largest of these balls.
Compact implies closed. Suppose and . The balls , , cover . Choose a finite subcover with centers and set . If lies in the ball centered at , the triangle inequality gives . Hence misses , so the complement is open.
Closed and bounded implies compact. Let nonempty be closed and bounded. Enclose it in a closed cube with . Suppose an open cover of has no finite subcover. Divide each coordinate interval into two closed halves. The resulting closed subcubes cover . At least one subcube has intersection with that is not finitely coverable by the given family; otherwise the finite union of the finite subcovers would cover . Select such a subcube and repeat. This produces nested closed cubes with side length and not finitely coverable, hence nonempty.
For each coordinate, the nested interval property gives a common coordinate value. Together these give . Every pair of points in has distance at most , so the intersection contains only . Choose . Then . A closed set contains such a limit: if were in its open complement, a ball around would eventually contain outside , a contradiction. Thus .
One member of the cover contains , and openness gives for some . For sufficiently large , every point of is within of , so alone covers . This contradicts the selection of . Therefore every open cover has a finite subcover. The number is finite; replacing it by infinitely many subpieces would invalidate this argument.
Continuous images and extreme values
Theorem. If is compact and is continuous relative to , then is compact. In particular, a continuous on nonempty compact is bounded and attains its maximum and minimum.
Proof. An open cover of pulls back to relatively open sets , with open in . These cover , so finitely many suffice. Their corresponding cover , proving compactness. For scalar , the image is nonempty, closed and bounded by the theorem already proved in dimension one. Let . For each , the definition of supremum supplies with . Then , and closedness places in the image. Thus the maximum is attained. Applying the same argument to gives the minimum. This proves existence, not a formula for the maximizing input.
The real zero-derivative lemma needed for uniqueness
The already selected finite-Euclidean compactness/extreme-value proof supplies extrema for a continuous real function on . At an interior differentiable extremum the left and right difference quotients force its derivative to be zero. A continuous with equal endpoint values either is constant or has an interior maximum or minimum; hence, if differentiable inside, it has a zero derivative there (Rolle's argument). For a real differentiable , subtract its endpoint secant line and apply this argument: for some . Thus a real function with derivative zero on an interval is constant. Applying this separately to real and imaginary parts proves the same constant conclusion for complex-valued functions of a real parameter. There is no complex mean-value identity being assumed.
Real inner products, their norms and the needed inequalities
An inner product on a real vector space is a map that is symmetric, linear in each argument, and positive definite: for . Linearity gives . Define . It is zero exactly at zero and satisfies . The standard example on is . Vectors are orthogonal when their inner product is zero, and a list is orthonormal when distinct members are orthogonal and each member has norm one.
If , insert into the nonnegative square . Expanding by bilinearity gives , hence . If the same inequality holds directly. Equality for means , equivalently ; the zero-vector cases also give equality. Finally expand and apply the bound to its cross term to obtain . Both sides to be square-rooted are nonnegative, so the triangle inequality follows. Thus this is a norm, and normalization of any nonzero vector divides by a positive real number. No complex bilinear convention is being used.
Definition
Differentiability with a linear remainder
Let be open and . We say is differentiable at if there is a linear map such that
The map is the derivative, denoted . The notation abbreviates the displayed limit.
Definition
Linearization and total differential
The linearization of at is the affine function
For a scalar-valued differentiable function,
The first-order predicted change is called the total differential:
Theorem
Consequences and uniqueness of a derivative
If is differentiable at , it is continuous at . Its coordinate partial derivatives exist there and are the columns of . The linear map satisfying the differentiability definition is unique.
Proof
Continuity, coordinate derivatives and uniqueness
A linear map in finite-dimensional Euclidean spaces has a bound for some constant . The defining expansion therefore gives
Thus is continuous at . Set in the expansion and divide by . The remainder tends to zero after division, so the th coordinate derivative is .
If both and satisfy the definition, subtraction gives . Taking shows for every basis vector. A linear map is determined by its values on a basis, so .
Theorem
Continuous first partial derivatives are sufficient
Let be defined on an open set. If all first partial derivatives exist on a neighbourhood of and are continuous at , then is differentiable at . In particular, every function on an open set is differentiable there. The same statement applies component by component to a vector-valued function.
Proof
Why continuous partial derivatives control every direction
For two variables, write the change from to as two coordinate changes:
The one-variable mean value theorem gives intermediate coordinates between and , and between and , so the change equals
After subtracting , divide the absolute remainder by . Since each coordinate increment has absolute value at most this norm, the ratio is at most
Both terms tend to zero by continuity. Zero coordinate increments simply omit the corresponding difference. In more variables, telescope along the coordinate directions in the same way.
Worked example
A continuous function with partial derivatives but no derivative
Define
The inequality gives , so is continuous at zero. Both coordinate restrictions vanish, hence both partial derivatives at zero are zero.
If a derivative existed, its coordinate columns would force it to be the zero map. Its remainder would then be itself. Along ,
for every nonzero . The required ratio does not tend to zero. Thus the function is continuous and has both coordinate derivatives, but is not differentiable at the origin.
Definition
A derivative in a specified direction
Let be defined on an open neighbourhood of , and let be a unit vector. The directional derivative is
when the finite two-sided limit exists. Because , the parameter measures signed distance along the line.
Theorem
Matrix chain rule
Let be differentiable at , and let be differentiable at . Assume are open and the composite is defined near . Then
The matrix sizes are .
Proof
Composing two linear approximations
Write , and . For a small input displacement,
Put . The outer expansion is
Substitution gives the linear term and remainder . A linear-map bound shows that for all sufficiently small . Consequently , and the outer remainder estimate gives as well. At this remainder is zero. Thus the composite has the required linear approximation with derivative .
Theorem
Rates along curves and the gradient
If is differentiable at and is differentiable at , then
In particular, for a unit vector ,
If , the maximum unit directional rate is , attained in the direction ; the minimum is its negative, attained in the opposite direction.
Leibniz determinant and alternation over a commutative ring
Let be a commutative ring with identity, , and . Define
The sign is , interpreted in . Exchanging adjacent entries in a permutation changes its inversion count by one in parity. Sorting by adjacent inversions therefore gives its sign as the product of the signs of those exchanges. Applying an adjacent-exchange decomposition of to the positions of proves ; a transposition has sign . These are integer parity facts before mapping the signs into .
The finite formula is multilinear in each row and column. If two rows are equal, pair each permutation term with the term obtained by exchanging the two assigned columns. The pair is distinct, has the same product and opposite signs; its sum is zero in every characteristic. Thus the determinant vanishes on repeated rows; the column statement is identical. This is a paired cancellation, not an inference from . Exchanging rows or columns changes sign by the same permutation substitution. Also . Substituting in the sum gives .
Here is the needed uniqueness principle, valid even with zero divisors. If is an alternating multilinear function of column vectors in , expand each input in the standard basis. Terms with a repeated basis vector vanish. The other index lists are permutations; swapping two slots negates , since expansion of gives . Hence the expansion equals times the Leibniz determinant of the input columns. No division or field assumption was used.
Multiplicativity, triangular blocks and the adjugate
For fixed , the function is alternating multilinear, with . Applying the preceding uniqueness principle to the columns of proves
For with square block sizes , a nonzero Leibniz term must assign all last rows to the last columns; otherwise one lower-left entry is zero. Those rows use all those columns, so the first rows use the first columns. The remaining permutations are exactly pairs of permutations inside the two blocks, with product sign and product monomial. Summing gives , including an empty block using determinant one. This argument also covers terms that vanish for other reasons; it does not require absence of zero divisors.
Let delete row and column , and put . Grouping the Leibniz sum by the value gives row cofactor expansion . The sign factor follows by moving row and column to the first positions, making adjacent exchanges; the remaining permutation is on the undeleted indices. Transpose gives the column expansion. Define . The entry of is , the cofactor expansion of the matrix obtained by replacing row by row . It is if , and zero otherwise by repeated-row cancellation. The column argument gives the other product. Therefore
For , the empty minor has determinant one, so the adjugate is and the identity still holds. For , define the adjugate to be the empty matrix; the identity is the equality of the unique empty matrices, while the determinant remains one. All results in this section apply to ; no division by a determinant has occurred.
A vector space is a set with addition and scalar multiplication satisfying the usual abelian-group and distributive axioms over a field . Columns are one model. Polynomials of degree at most , denoted , and linear maps between spaces are others. The zero polynomial is included in although its degree is not ordinarily defined.
A subspace contains zero and is closed under sums and scalar multiples. A list spans if every vector is a linear combination of its entries; it is independent if only the zero coefficients give zero. A basis is both. A finite spanning list can be reduced to a basis by deleting dependent entries; an independent list can be extended to a basis by adding vectors outside its span until the given finite spanning list is spanned.
Exchange lemma. An independent list of vectors in the span of vectors has . To see this, express the first independent vector in the spanning list, use a nonzero coefficient to replace one spanning vector by it, and repeat. At each stage independence ensures the next independent vector has a nonzero coefficient on an as-yet unreplaced spanning vector. There must be at least such slots. Comparing two bases in both directions proves that their lengths agree; this common length is .
Consequently, in dimension , any independent vectors form a basis, as do any spanning vectors. Counting a list is useful only after its independence or spanning has been justified.
A map is linear if . Its kernel and image are subspaces. Choose a basis of and extend to a basis with . Then form a basis of : spanning follows by expanding any input; a dependence among these images places the corresponding input combination in the kernel, and independence of the extended basis makes all coefficients zero. Thus
This is rank–nullity. In equal finite dimensions, injectivity and surjectivity are equivalent, but the equivalence can fail in infinite-dimensional spaces.
The field bridge: singularity and characteristic polynomials
Now let be a field. If , the adjugate identity gives inverse . If is invertible, multiplicativity gives , so . Rank–nullity, proved in C01, shows a finite square linear map has zero kernel exactly when it is invertible. Thus exactly when its kernel is nonzero.
For a fixed , apply the ring construction to . Its determinant is monic of degree : the identity-permutation product contributes , whereas every other permutation uses an off-diagonal constant entry, so its product is either zero or has degree less than . Multiplicativity proves invariance under with invertible constant ; the block-triangular formula proves restriction–quotient factorization. Finally every adjugate entry is zero or has degree at most , so their coefficient comparison is legitimate in the C02 Cayley–Hamilton proof. In dimension zero, the characteristic polynomial is the empty determinant one; evaluating it gives on the zero space, which is its zero operator, so Cayley–Hamilton is separate and immediate. This supplies the actual commutative-ring determinant prerequisites without extending any real-only determinant authority.
For a subspace , define when . This is an equivalence relation. Its classes are cosets , and the quotient has operations
These are well-defined because changing representatives adds elements of . The projection is linear and surjective, with kernel . If is an extended basis as above, then form a quotient basis, proving
A quotient is a space of equivalence classes, not a chosen complementary subspace, though any chosen complement maps isomorphically to it.
Factorization theorem. A linear map descends to a map satisfying exactly when . In that case is well-defined and unique. For , this map is injective onto , giving the first isomorphism theorem
The formula itself proves all assertions: representatives differ by a vector killed by , and a quotient class maps to zero exactly when its representative lies in the kernel.
The dual consists of linear functions . For a basis , its dual basis is defined by . Every functional is uniquely , so .
The dual map of is , defined by . In dual bases its matrix is the ordinary transpose , including over . There is no complex conjugation: this is algebraic duality, not a Hermitian adjoint. Composition reverses:
This follows by evaluating either side on an arbitrary functional and vector.
For , its annihilator is
An adapted basis shows . The quotient's dual identifies naturally with the annihilator: is an isomorphism , because precisely the functionals killing descend through the quotient.
For a linear map,
The first equality is immediate by evaluation. For the second, inclusion follows because whenever . To prove the reverse inclusion, if kills , define a functional on by ; it is well-defined, and basis extension extends it to all of . This extended satisfies . Taking dimensions gives equality of row rank and column rank without choosing a row-reduction algorithm.
Prerequisites
We take the completeness (least-upper-bound) axiom of the real numbers, elementary order and absolute-value inequalities, Euclidean norm properties and basic linear algebra as foundations. Continuity and Fréchet differentiability are understood in their epsilon-delta and linear-remainder definitions. No result here assumes an inverse or implicit function theorem.
Intermediate value theorem
Let be continuous and let . The set is nonempty and bounded above. Put . Continuity at and implies . If , continuity gives a point with , contradicting that is an upper bound. If , continuity gives such that when ; but the supremum property gives with , a contradiction. Thus . Equality at an endpoint is immediate, and the decreasing endpoint order follows by replacing and with their negatives. This proves existence, not uniqueness.
Scope and prerequisites
Work in finite-dimensional real Euclidean spaces. We use the real intermediate and mean value theorems, completeness, continuity of matrix multiplication and determinants, the chain rule for Fréchet derivatives, and Fermat's stationary-point theorem. These are prerequisites, not proved here. A map is defined on an open set and has continuous derivative. Parameters may have dimension ; the number of equations is a positive integer , and for local inversion we assume . All assertions below are local; they do not imply global uniqueness or global invertibility.
One equation
Let be , and . After replacing by if necessary, continuity supplies a product box with open and such that there. Reduce if needed and then shrink around so that for every . This follows from the mean value theorem at and continuity at both endpoints. The intermediate value theorem gives a zero inside the interval, and the mean value theorem gives uniqueness and
At any fixed , continuity of and this estimate yield . On a sufficiently small convex box around , the -derivative is bounded by ; the one-variable mean value theorem along the line segment then gives . Thus locally. For , write . Differentiability of gives
so . Continuity of this expression proves . The product box provides uniqueness among all zeros in the stated interval, not merely uniqueness of a chosen branch.
Several equations by elimination
Let be , , with invertible. We prove the local theorem by induction on . For use the preceding argument. For , replace by , where ; this changes neither zeros nor regularity, and its -Jacobian at the base point is . Split with . The first equation has nonzero -derivative, so it has a unique local solution . Set for the normalized system. At the base point, , while and . Hence . The induction hypothesis yields a unique local ; then is the unique solution in a suitably shrunk product neighborhood. The scalar theorem gives an open domain in ; shrink it to , and let its scalar zero interval be . Shrink the induction neighborhood so that and for all . Every zero in satisfies the first equation and hence has ; it therefore solves , so uniqueness in both elimination steps proves the asserted uniqueness. The chain rule applied to gives
The inverse remains defined on a smaller neighborhood because its determinant is continuous and nonzero at the base point. Its entries are continuous there by the finite algebraic formula . This proves existence, local uniqueness and regularity; it does not claim uniqueness outside the chosen neighborhood.
Local inverse
Let be and invertible. Apply the theorem to at . There are open neighborhoods of and of in which for every there is exactly one with , namely . Put ; it is open, contains , and is a bijection with inverse . Its derivative is . This is a local result, even when is nonsingular elsewhere.
Regular equality constraints
For a differentiable scalar function on an open subset of , a local extremum restricts to a local extremum on each coordinate line. The one-variable Fermat theorem makes each coordinate derivative zero; thus its Fréchet derivative is zero. This also covers by the unique zero linear map.
Let and be , where . Suppose is a local extremum of subject to and has rank . For , choose independent columns and reorder coordinates as . The implicit theorem supplies a local graph of all feasible points. Fermat and the chain rule give
Define the row vector . Then and , so , equivalently . If , is invertible and the same equation follows directly with ; the local feasible point is isolated. If , the condition is ordinary Fermat with the empty sum. Rank failure invalidates this proof and the conclusion need not hold; the condition is necessary, not generally sufficient, for an extremum.
Examples and checks
For near , , so locally and . For , the inverse near the origin is and its derivative there is the identity. For on , regularity holds on the circle and yields candidates with matching signs. Their values are ; compactness and continuity establish the global maximum and minimum, a step distinct from the necessary multiplier equation.
Tangency and the multiplier equation
A constrained problem asks for extrema of on the feasible set . At a regular point, the gradient of is normal to the constraint surface. A constrained extremum has no first-order change along any feasible tangent direction, so the gradient of is normal to the same surface.
Theorem
One equality constraint
Let be near , with and . If has a local extremum restricted to at , then there is such that
These equations are necessary under the stated regularity condition, not sufficient for an extremum.
Proof
Why the gradients are parallel
Because , some coordinate partial derivative of is nonzero. The implicit function theorem, discussed in the next unit, locally represents the constraint as a graph. Its tangent vectors fill the kernel of the nonzero linear functional . At a constrained extremum, differentiating along every such graph curve gives for every in that kernel. A linear functional vanishing on the kernel of a nonzero functional is its scalar multiple; hence .
The sign convention is fixed here; defining the Lagrangian with the opposite sign changes the sign of but not candidate points. A multiplier by itself neither tells whether a candidate is a maximum nor establishes that an absolute extremum exists.
Worked example
A compact ellipse
Find the extrema of on . The ellipse is compact and continuous. With , the constraint gradient is nonzero on the ellipse. The equations imply . Substitution gives , so and with the same sign. The values are . Therefore the absolute maximum is and the minimum is . Compactness and candidate completeness justify the final comparison.
Exceptional constraints and multiple equations
A singular point with is not covered by the theorem and must be examined separately. For example, minimize subject to . The only feasible point is and is both an absolute minimum and maximum, but cannot equal . The multiplier equation alone would miss it.
For equalities , if their gradients are linearly independent at a constrained extremum, then . Dependence means the theorem's regularity hypothesis fails, not that the point is automatically nonoptimal. Inequalities introduce boundary and feasibility cases and are not handled merely by writing the equality formula.
Worked example
Two constraints
On the intersection and , maximize . The feasible set is compact; gradients and are independent there because a nonzero vector parallel to cannot have coordinate sum zero. The equations force : otherwise the first coordinate gives and the second gives . Subtracting the second and third coordinate equations then gives , so ; using the first constraint, . The sphere gives , so . The maximum is and the minimum is its negative.
A reliable workflow
- State the feasible set and determine whether extrema are guaranteed to exist.
- Find regular candidates using the multiplier equations and constraints.
- Check feasible singular points and any other boundaries or endpoints separately.
- Compare values, or justify a local classification. On a noncompact set, analyze escape and nonattainment; do not call the largest candidate an absolute maximum without ruling out alternatives.
Direct substitution is often simpler when one variable can be eliminated globally; parametrization is convenient for a circle or ellipse. Multipliers avoid choosing a global parametrization, but require regularity and can introduce many algebraic candidates.
Practice
- Find the extrema of on .
- Find the minimum of subject to .
- Explain why the multiplier theorem does not apply directly at the origin to .
- For subject to , show that no absolute maximum or minimum exists.
Full solutions
- The circle is compact and regular. Equations imply (the cases or do not satisfy both equations on the circle). The four points have . Values are for matching signs and for opposite signs; these are the absolute extrema.
- gives , with value . Although the line is not compact, and imply ; hence is indeed the absolute minimum. There is no absolute maximum because the objective grows along .
- At the only feasible point, , violating the nonzero-gradient hypothesis. This does not mean the point cannot be an extremum.
- Feasible points with give arbitrarily large as , and points with give arbitrarily negative as . Hence neither absolute extremum exists.
Synthesis
A multiplier is a normal-direction relationship at regular constrained extrema. The constraint supplies candidates; regularity, singular-point checks, and an existence or global comparison argument turn those candidates into a justified optimization result.