Zariski tangent space is a concept in algebraic geometry that defines a tangent space at a point on an algebraic variety (or, more generally, on a scheme). Unlike the tangent space of differential geometry, it does not rely on differential calculus; it is constructed directly from abstract algebra, drawing on the theory of systems of linear equations in its simplest concrete cases.
Motivation
The motivating example is a plane curve defined by a polynomial equation $F(X,Y)=0$. At a point $P$ (taken for simplicity as the origin), one "linearizes" the equation by discarding all terms of degree greater than one, obtaining a linear equation $L(X,Y)=0$. If $L$ is identically zero, the Zariski tangent space is the whole affine plane; if $L$ is the equation of a line, the tangent space is that line. Over the real field, $L$ is obtained from the first partial derivatives of $F$. When both partial derivatives vanish at $P$, the point is singular and the tangent space has dimension two (for a plane curve).
Definition
For a local ring $R$ with maximal ideal $\mathfrak{m}$, the cotangent space is defined as the quotient
$$ \mathfrak{m}/\mathfrak{m}^2, $$
where $\mathfrak{m}^2$ is the product of the ideal with itself. This is a vector space over the residue field $k = R/\mathfrak{m}$. Its dual (as a $k$-vector space) is called the tangent space of $R$.
For a scheme $X$ at a point $P$, the tangent space $T_P(X)$ and cotangent space $T_P^*(X)$ are taken to be the tangent and cotangent spaces of the local ring $\mathcal{O}_{X,P}$. Morally, modding out $\mathfrak{m}^2$ corresponds to discarding nonlinear terms from the equations defining the variety, leaving a system of linear equations that describes the tangent space.
Relation to smoothness and regularity
If $R$ is a Noetherian local ring, the dimension of the tangent space is always at least the (Krull) dimension of $R$:
$$ \dim \mathfrak{m}/\mathfrak{m}^2 \ge \dim R. $$
The ring $R$ is called regular if equality holds. In geometric language, when $R$ is the local ring of a variety at a point $v$, the point is called a regular point (or nonsingular point); otherwise it is called a singular point.
Interpretation via dual numbers
The tangent space admits an interpretation in terms of the dual numbers $K[t]/(t^2)$. Morphisms from $\operatorname{Spec} K[t]/(t^2)$ to a scheme $X$ over $K$ correspond to a choice of a rational point $x \in X(k)$ together with an element of the tangent space at $x$. For this reason, one also speaks of tangent vectors.
Dimensional behavior
In general, the dimension of the Zariski tangent space can be very large. For example, considering the ring of germs of continuously differentiable functions at the origin of $\mathbb{R}$, the Zariski cotangent space has dimension at least the cardinality of the continuum, and the tangent space has dimension at least $2^{\mathfrak{c}}$. By contrast, the ring of germs of smooth functions at a point of an $n$-manifold has an $n$-dimensional Zariski cotangent space.
Sources
The concept is treated in standard references on algebraic geometry, including Robin Hartshorne's Algebraic Geometry (1977) and David Eisenbud and Joe Harris's The Geometry of Schemes (1998). The notion of a simple point of an abstract algebraic variety was developed by Oscar Zariski in his 1947 paper "The concept of a simple point of an abstract algebraic variety" (Transactions of the American Mathematical Society, 62: 1–52).