# Affine variety

In algebraic geometry, an affine variety over an algebraically closed field k is the zero-locus in the affine n-space ${\displaystyle k^{n}}$ of some finite family of polynomials of n variables with coefficients in k that generate a prime ideal. If the condition of generating a prime ideal is removed, such a set is called an (affine) algebraic set. A Zariski open subvariety of an affine variety is called a quasi-affine variety.

If X is an affine variety defined by a prime ideal I, then the quotient ring

${\displaystyle k[x_{1},\ldots ,x_{n}]/I}$

is called the coordinate ring of X. This ring is precisely the set of all regular functions on X; in other words, it is the space of global sections of the structure sheaf of X. A theorem of Serre gives a cohomological characterization of an affine variety; it says an algebraic variety is affine if and only if

${\displaystyle H^{i}(X,F)=0}$

for any ${\displaystyle i>0}$ and any quasi-coherent sheaf F on X. (cf. Cartan's theorem B.) This makes the cohomological study of an affine variety non-existent, in a sharp contrast to the projective case in which cohomology groups of line bundles are of central interest.

An affine variety plays a role of a local chart for algebraic varieties; that is to say, general algebraic varieties such as projective varieties are obtained by gluing affine varieties. Linear structures that are attached to varieties are also (trivially) affine varieties; e.g., tangent spaces, fibers of algebraic vector bundles.

An affine variety is, up to an equivalence of categories a special case of an affine scheme, which is precisely the spectrum of a ring. In complex geometry, an affine variety is an analog of a Stein manifold.

## Introduction

The most concrete point of view to describe an affine algebraic variety is that it is the set of solutions in an algebraically closed field k of a system of polynomial equations with coefficients in k. More precisely, if ${\displaystyle f_{1},\ldots ,f_{k}}$ are polynomials with coefficients in k, they define an affine variety (or affine algebraic set)

${\displaystyle V(f_{1},\ldots ,f_{k})=\left\{(a_{1},\ldots ,a_{n})\in k^{n}\;|\;f_{1}(a_{1},\ldots ,a_{n})=\ldots =f_{k}(a_{1},\ldots ,a_{n})=0\right\}.}$

By Hilbert's Nullstellensatz, the points of the variety are in one to one correspondence with the maximal ideals of its coordinate ring, the k-algebra ${\displaystyle R=k[x_{1},\ldots ,x_{n}]/\langle f_{1},\ldots ,f_{k}\rangle ,}$ through the map ${\displaystyle (a_{1},\ldots ,a_{n})\mapsto \langle {\overline {x_{1}-a_{1}}},\ldots ,{\overline {x_{n}-a_{n}}}\rangle ,}$ where ${\displaystyle {\overline {x_{i}-a_{i}}}}$ denotes the image in the quotient algebra R of the polynomial ${\displaystyle x_{i}-a_{i}.}$ In scheme theory, this correspondence has been extended to prime ideals to define the affine scheme ${\displaystyle \operatorname {Spec} (R),}$ which may be identified to the variety, through an equivalence of categories.

The elements of the coordinate ring R are also called the regular functions or the polynomial functions on the variety. They form the ring of the regular functions on the variety, or, simply, the ring of the variety. In fact an element ${\displaystyle {\overline {f}}\in R}$ is the image of a polynomial ${\displaystyle f\in k[x_{1},\ldots ,x_{n}],}$ which defines a function from kn into k; The restriction of f to the variety does not depend on the choice of ${\displaystyle f}$ among the polynomials mapped on ${\displaystyle {\overline {f}}}$ by the quotient.

The dimension of a variety is an integer associated to every variety, and even to every algebraic set, whose importance relies on the large number of its equivalent definitions (see Dimension of an algebraic variety).

## First properties

Let ${\displaystyle X=\operatorname {spec} A,Y=\operatorname {spec} B}$ where A, B are integral domains that are the quotient of the polynomial ring ${\displaystyle k[t_{1},\dots ,t_{n}]}$, k an algebraically closed field.

${\displaystyle {\mathfrak {m}}\mapsto \phi ^{-1}({\mathfrak {m}})}$.
Any function ${\displaystyle X\to Y}$ arises in this way is called a morphism of affine varieties. Now, if Y is k, then ${\displaystyle \phi ^{\#}}$ may be identified with a regular function. By the same logic, if ${\displaystyle Y=k^{n}}$, then ${\displaystyle \phi }$ can be thought of as an n-tuple of regular functions. Since ${\displaystyle Y\subset k^{n}}$, a morphism between affine varieties in general would have this form.

## Rational points

Template:Expand section {{#invoke:main|main}}

## Tangent space

Template:Expand section Tangent spaces may be defined just as in calculus. Let ${\displaystyle X=\operatorname {spec} A,A=k[x_{1},\dots ,x_{n}]/(f_{1},\dots ,f_{r})}$ be the affine variety. Then the affine subvariety of ${\displaystyle k^{n}}$ defined by the linear equations

${\displaystyle \sum _{i=1}^{n}{\partial f_{j} \over \partial {x_{i}}}(a_{1},\dots ,a_{n})(x_{i}-a_{i})=0,\quad j=1,\dots ,r}$

is called the tangent space at ${\displaystyle x=(a_{1},\dots ,a_{n}).}$[1] (A more intrinsic definition is given by Zariski tangent space.) If the tangent space at x and the variety X have the same dimension, the point x is said to be smooth; otherwise, singular.

The important difference from calculus is that the inverse function theorem fails. To alleviate this problem, one has to consider the étale topology instead of the Zariski topology. (cf. Milne, Étale)Template:Clarify