In the basis , the linear map given by sends to the second basis vector and sends to . Equivalently,
Multiplying on the left by the matrix inverse gives
This change of basis produces the companion matrix found in part (a)(ii).
The required general linear position condition is that every of the representing vectors are linearly independent. Such an ordered configuration is a projective frame.
Choose representatives of the first projective points; they form a basis. Write a representative of the last point as . Every is nonzero: otherwise the last point together with the other basis points would fail the independence condition. Rescale the basis representatives to , so that .
Do the same for the target configuration, obtaining representatives with . The unique linear map sending the basis to is invertible and also sends to . Its induced projective transformation sends every point to its prescribed partner. Thus any two ordered projective frames are projectively equivalent.
The Fréchet derivative at a point is the unique linear map such that
The error divided by tends to zero as . In standard coordinates this linear map is represented by the Jacobian matrix, but the derivative itself is the map acting on increments, not merely a list of directional rates.
A map is differentiable at when a linear map approximates its increment to first order:
This Fréchet derivative is unique, and its matrix in the standard bases is the Jacobian matrix. Differentiability on a domain means differentiability at each point there.
A standard sufficient condition for a zero locus to be a submanifold is the regular level set theorem: if is on an open domain and is surjective at every , then
For smooth , the submanifold is smooth. The full-rank condition is the relevant constraint qualification.
Under this regularity hypothesis, its tangent space is
Indeed, if a differentiable curve lies in and passes through , the chain rule gives . Thus all tangent velocities lie in the kernel of a linear map. The rank-nullity theorem makes this kernel -dimensional, the same dimension as the tangent space, proving equality. In coordinates, solve the homogeneous linear equations given by the Jacobian matrix.
The regularity qualification matters: has zero set , a zero-dimensional submanifold, but . Its kernel is all of , whereas its tangent space is zero. This is the phenomenon that singular defining maps can overestimate tangent spaces.
The map is differentiable at if there is a linear map such that
Equivalently, . This linear map is unique and is the Fréchet derivative . Its matrix in the standard bases is the Jacobian matrix, whose entry is at . A function is differentiable on its domain if this condition holds at every point.
Choose nonzero vectors representing , and write . Use the cross-ratio convention
Distinctness makes the denominator nonzero. Every rescaling of a representative occurs once in numerator and denominator, so the value depends only on the projective points. Swapping both pairs simply exchanges the numerator's factors and the denominator's factors:
Under an invertible linear map , . Two factors of occur above and below the fraction, proving projective transformation invariance.
Finally choose homogeneous coordinates making , , . This normalization exists by the allowed theorem about a projective frame. A point distinct from is uniquely , and the displayed cross-ratio is . Thus equality of the two cross-ratios forces equal coordinates and
This also shows that for fixed first three distinct points the fourth point is determined by its cross-ratio.
A projective transformation of is induced by an invertible linear map :
This is well defined because replacing by a nonzero scalar multiple does not change . Multiplying by a nonzero scalar also leaves unchanged. Conversely these are precisely the transformations in the projective linear group . No field automorphism is included in this definition.
The rank-nullity theorem states that a linear map with finite-dimensional satisfies
Choose a basis of and use basis extension to obtain a basis of . We prove that is a basis of .
Every is a linear combination of the extended basis. Applying kills the terms, so is a linear combination of . This proves the linear span assertion. For linear independence, if , then belongs to the kernel of a linear map. Hence for some scalars . The linear independence of the extended basis forces every and to vanish. Consequently and , while , proving the theorem.
Take the linear map
Its kernel of a linear map consists of all , and its image of a linear map is the same line:
Their set intersection is nonzero and their sum is only one-dimensional. In particular, cannot be written as a sum of one vector from each of these vector subspaces. The nonzero set intersection also prevents an internal direct sum of vector spaces. Thus
The matrix is a nonzero nilpotent matrix; its failure of diagonalizability explains why the preceding result does not apply.
The image of a linear map and kernel of a linear map are
A linear map sends zero to zero, since . Thus both displayed sets contain zero. If and belong to the image of a linear map, then for any real scalars ,
If belong to the kernel of a linear map, then
so . Containing zero and being closed under linear combinations is the vector subspace criterion. Hence the image of a linear map is a vector subspace of , and the kernel of a linear map is a vector subspace of .
The rank-nullity theorem says that for a linear map with finite-dimensional domain of a function ,
Take a basis of the kernel of a linear map and use basis extension to obtain a basis of . We show that is a basis of the image of a linear map.
Every is a linear combination of the extended basis, and its terms vanish under . Therefore is a linear combination of the , proving the required linear span property. For linear independence, suppose . Then , so for some real scalars . The extended basis is linearly independent, forcing every and to be zero. Thus the image of a linear map has dimension , the kernel of a linear map has dimension , and proves the result.
A basis provides unique coordinates. Define
The uniqueness of the coordinates makes this a well-defined function. Adding coordinates and multiplying them by a real scalar shows directly that , so it is a linear map. Substituting gives .
Conversely, every linear map with those three values must send to , by preservation of linear combinations. This determines its value on every element of , proving uniqueness. No linear independence of is needed.
For a square matrix , an eigenvalue–eigenvector pair is a scalar and a nonzero vector satisfying
Thus the linear map represented by scales this particular direction by . The nonzero condition excludes the zero vector, which would otherwise satisfy the displayed equation for every scalar.
For a square matrix , an eigenvalue–eigenvector pair consists of a scalar and a nonzero vector satisfying
The linear map represented by therefore scales by . The exclusion of the zero vector matters: otherwise every scalar would satisfy the equation trivially.
Translate the vertex centroid to the origin, rotate, and translate back:
rotatePoly :: Polygon -> Double -> Polygon
rotatePoly ps theta =
  (translate c . map turn . translate (-cx,-cy)) ps
  where
    c@(cx,cy) = centroid ps
    turn (x,y) = (cos theta*x + sin theta*y,
                 -sin theta*x + cos theta*y)
This follows the supplied rotation matrix, so positive rotates clockwise in the usual Cartesian axes. The opposite signs give the conventional counterclockwise matrix. Since the vertex centroid of the centered vertices is zero and a linear map commutes with their average, the final centroid remains c.
A linear map is onto, or surjective, when every equals for some ; equivalently its image is all of . Here is not onto, because its image has dimension two while its declared codomain has dimension three. Indeed every image vector satisfies , so, for example, is not attained.
A linear map is one-to-one, or injective, when equal outputs imply equal inputs. Equivalently its kernel is : subtracting inputs converts equality of outputs to a zero output. Here is not one-to-one, since its kernel has dimension two. Concretely, for distinct inputs.