**Algebraic varieties** are the central objects of study in algebraic geometry, a sub-field of mathematics. Classically, an algebraic variety is defined as the set of solutions of a system of polynomial equations over the real or complex numbers. Modern definitions generalize this concept in several different ways, while attempting to preserve the geometric intuition behind the original definition.^{[1]}^{: 58 }

Conventions regarding the definition of an algebraic variety differ slightly. For example, some definitions require an algebraic variety to be irreducible, which means that it is not the union of two smaller sets that are closed in the Zariski topology. Under this definition, non-irreducible algebraic varieties are called **algebraic sets**. Other conventions do not require irreducibility.

The fundamental theorem of algebra establishes a link between algebra and geometry by showing that a monic polynomial (an algebraic object) in one variable with complex number coefficients is determined by the set of its roots (a geometric object) in the complex plane. Generalizing this result, Hilbert's Nullstellensatz provides a fundamental correspondence between ideals of polynomial rings and algebraic sets. Using the *Nullstellensatz* and related results, mathematicians have established a strong correspondence between questions on algebraic sets and questions of ring theory. This correspondence is a defining feature of algebraic geometry.

Many algebraic varieties are manifolds, but an algebraic variety may have singular points while a manifold cannot. Algebraic varieties can be characterized by their dimension. Algebraic varieties of dimension one are called algebraic curves and algebraic varieties of dimension two are called algebraic surfaces.

In the context of modern scheme theory, an algebraic variety over a field is an integral (irreducible and reduced) scheme over that field whose structure morphism is separated and of finite type.

An *affine variety* over an algebraically closed field is conceptually the easiest type of variety to define, which will be done in this section. Next, one can define projective and quasi-projective varieties in a similar way. The most general definition of a variety is obtained by patching together smaller quasi-projective varieties. It is not obvious that one can construct genuinely new examples of varieties in this way, but Nagata gave an example of such a new variety in the 1950s.

Main article: Affine variety |

For an algebraically closed field K and a natural number n, let **A**^{n} be an affine *n*-space over *K*, identified to through the choice of an affine coordinate system. The polynomials *f* in the ring *K*[*x*_{1}, ..., *x _{n}*] can be viewed as

A subset *V* of **A**^{n} is called an **affine algebraic set** if *V* = *Z*(*S*) for some *S*.^{[1]}^{: 2 } A nonempty affine algebraic set *V* is called **irreducible** if it cannot be written as the union of two proper algebraic subsets.^{[1]}^{: 3 } An irreducible affine algebraic set is also called an **affine variety**.^{[1]}^{: 3 } (Some authors use the phrase *affine variety* to refer to any affine algebraic set, irreducible or not.^{[note 1]})

Affine varieties can be given a natural topology by declaring the closed sets to be precisely the affine algebraic sets. This topology is called the Zariski topology.^{[1]}^{: 2 }

Given a subset *V* of **A**^{n}, we define *I*(*V*) to be the ideal of all polynomial functions vanishing on *V*:

For any affine algebraic set *V*, the **coordinate ring** or **structure ring** of *V* is the quotient of the polynomial ring by this ideal.^{[1]}^{: 4 }

Main articles: Projective variety and Quasi-projective variety |

Let k be an algebraically closed field and let **P**^{n} be the projective *n*-space over k. Let *f* in *k*[*x*_{0}, ..., *x _{n}*] be a homogeneous polynomial of degree

A subset *V* of **P**^{n} is called a **projective algebraic set** if *V* = *Z*(*S*) for some *S*.^{[1]}^{: 9 } An irreducible projective algebraic set is called a **projective variety**.^{[1]}^{: 10 }

Projective varieties are also equipped with the Zariski topology by declaring all algebraic sets to be closed.

Given a subset *V* of **P**^{n}, let *I*(*V*) be the ideal generated by all homogeneous polynomials vanishing on *V*. For any projective algebraic set *V*, the **coordinate ring** of *V* is the quotient of the polynomial ring by this ideal.^{[1]}^{: 10 }

A **quasi-projective variety** is a Zariski open subset of a projective variety. Notice that every affine variety is quasi-projective.^{[2]} Notice also that the complement of an algebraic set in an affine variety is a quasi-projective variety; in the context of affine varieties, such a quasi-projective variety is usually not called a variety but a constructible set.

In classical algebraic geometry, all varieties were by definition quasi-projective varieties, meaning that they were open subvarieties of closed subvarieties of projective space. For example, in Chapter 1 of Hartshorne a *variety* over an algebraically closed field is defined to be a quasi-projective variety,^{[1]}^{: 15 } but from Chapter 2 onwards, the term **variety** (also called an **abstract variety**) refers to a more general object, which locally is a quasi-projective variety, but when viewed as a whole is not necessarily quasi-projective; i.e. it might not have an embedding into projective space.^{[1]}^{: 105 } So classically the definition of an algebraic variety required an embedding into projective space, and this embedding was used to define the topology on the variety and the regular functions on the variety. The disadvantage of such a definition is that not all varieties come with natural embeddings into projective space. For example, under this definition, the product **P**^{1} × **P**^{1} is not a variety until it is embedded into the projective space; this is usually done by the Segre embedding. However, any variety that admits one embedding into projective space admits many others by composing the embedding with the Veronese embedding. Consequently, many notions that should be intrinsic, such as the concept of a regular function, are not obviously so.

The earliest successful attempt to define an algebraic variety abstractly, without an embedding, was made by André Weil. In his *Foundations of Algebraic Geometry*, Weil defined an abstract algebraic variety using valuations. Claude Chevalley made a definition of a scheme, which served a similar purpose, but was more general. However, Alexander Grothendieck's definition of a scheme is more general still and has received the most widespread acceptance. In Grothendieck's language, an abstract algebraic variety is usually defined to be an integral, separated scheme of finite type over an algebraically closed field,^{[1]}^{: 104–105 } although some authors drop the irreducibility or the reducedness or the separateness condition or allow the underlying field to be not algebraically closed.^{[note 2]} Classical algebraic varieties are the quasiprojective integral separated finite type schemes over an algebraically closed field.

One of the earliest examples of a non-quasiprojective algebraic variety were given by Nagata.^{[3]} Nagata's example was not complete (the analog of compactness), but soon afterwards he found an algebraic surface that was complete and non-projective.^{[4]}^{[1]}^{: Remark 4.10.2 p.105 } Since then other examples have been found; for example, it is straightforward to construct a toric variety that is not quasi-projective but complete.^{[5]}

A **subvariety** is a subset of a variety that is itself a variety (with respect to the topological structure induced by the ambient variety). For example, every open subset of a variety is a variety. See also closed immersion.

Hilbert's Nullstellensatz says that closed subvarieties of an affine or projective variety are in one-to-one correspondence with the prime ideals or non-irrelevant homogeneous prime ideals of the coordinate ring of the variety.

Let *k* = **C**, and **A**^{2} be the two-dimensional affine space over **C**. Polynomials in the ring **C**[*x*, *y*] can be viewed as complex valued functions on **A**^{2} by evaluating at the points in **A**^{2}. Let subset *S* of **C**[*x*, *y*] contain a single element *f* (*x*, *y*):

The zero-locus of *f* (*x*, *y*) is the set of points in **A**^{2} on which this function vanishes: it is the set of all pairs of complex numbers (*x*, *y*) such that *y* = 1 − *x*. This is called a line in the affine plane. (In the **classical topology** coming from the topology on the complex numbers, a complex line is a real manifold of dimension two.) This is the set *Z*( *f* ):

Thus the subset *V* = *Z*( *f* ) of **A**^{2} is an algebraic set. The set *V* is not empty. It is irreducible, as it cannot be written as the union of two proper algebraic subsets. Thus it is an affine algebraic variety.

Let *k* = **C**, and **A**^{2} be the two-dimensional affine space over **C**. Polynomials in the ring **C**[*x*, *y*] can be viewed as complex valued functions on **A**^{2} by evaluating at the points in **A**^{2}. Let subset *S* of **C**[*x*, *y*] contain a single element *g*(*x*, *y*):

The zero-locus of *g*(*x*, *y*) is the set of points in **A**^{2} on which this function vanishes, that is the set of points (*x*,*y*) such that *x*^{2} + *y*^{2} = 1. As *g*(*x*, *y*) is an absolutely irreducible polynomial, this is an algebraic variety. The set of its real points (that is the points for which *x* and *y* are real numbers), is known as the unit circle; this name is also often given to the whole variety.

The following example is neither a hypersurface, nor a linear space, nor a single point. Let **A**^{3} be the three-dimensional affine space over **C**. The set of points (*x*, *x*^{2}, *x*^{3}) for *x* in **C** is an algebraic variety, and more precisely an algebraic curve that is not contained in any plane.^{[note 3]} It is the twisted cubic shown in the above figure. It may be defined by the equations

The irreducibility of this algebraic set needs a proof. One approach in this case is to check that the projection (*x*, *y*, *z*) → (*x*, *y*) is injective on the set of the solutions and that its image is an irreducible plane curve.

For more difficult examples, a similar proof may always be given, but may imply a difficult computation: first a Gröbner basis computation to compute the dimension, followed by a random linear change of variables (not always needed); then a Gröbner basis computation for another monomial ordering to compute the projection and to prove that it is generically injective and that its image is a hypersurface, and finally a polynomial factorization to prove the irreducibility of the image.

The set of *n*-by-*n* matrices over the base field *k* can be identified with the affine *n*^{2}-space with coordinates such that is the (*i*, *j*)-th entry of the matrix . The determinant is then a polynomial in and thus defines the hypersurface in . The complement of is then an open subset of that consists of all the invertible *n*-by-*n* matrices, the general linear group . It is an affine variety, since, in general, the complement of a hypersurface in an affine variety is affine. Explicitly, consider where the affine line is given coordinate *t*. Then amounts to the zero-locus in of the polynomial in :

i.e., the set of matrices *A* such that has a solution. This is best seen algebraically: the coordinate ring of is the localization , which can be identified with .

The multiplicative group k^{*} of the base field *k* is the same as and thus is an affine variety. A finite product of it is an algebraic torus, which is again an affine variety.

A general linear group is an example of a linear algebraic group, an affine variety that has a structure of a group in such a way the group operations are morphism of varieties.

Main article: Characteristic variety |

Let *A* be a not-necessarily-commutative algebra over a field *k*. Even if *A* is not commutative, it can still happen that *A* has a -filtration so that the associated ring is commutative, reduced and finitely generated as a *k*-algebra; i.e., is the coordinate ring of an affine (reducible) variety *X*. For example, if *A* is the universal enveloping algebra of a finite-dimensional Lie algebra , then is a polynomial ring (the PBW theorem); more precisely, the coordinate ring of the dual vector space .

Let *M* be a filtered module over *A* (i.e., ). If is fintiely generated as a -algebra, then the support of in *X*; i.e., the locus where does not vanish is called the characteristic variety of *M*.^{[6]} The notion plays an important role in the theory of *D*-modules.

A projective variety is a closed subvariety of a projective space. That is, it is the zero locus of a set of homogeneous polynomials that generate a prime ideal.

A plane projective curve is the zero locus of an irreducible homogeneous polynomial in three indeterminates. The projective line **P**^{1} is an example of a projective curve; it can be viewed as the curve in the projective plane **P**^{2} = {[*x*, *y*, *z*]} defined by *x* = 0. For another example, first consider the affine cubic curve

in the 2-dimensional affine space (over a field of characteristic not two). It has the associated cubic homogeneous polynomial equation:

which defines a curve in **P**^{2} called an elliptic curve. The curve has genus one (genus formula); in particular, it is not isomorphic to the projective line **P**^{1}, which has genus zero. Using genus to distinguish curves is very basic: in fact, the genus is the first invariant one uses to classify curves (see also the construction of moduli of algebraic curves).

Let *V* be a finite-dimensional vector space. The Grassmannian variety *G _{n}*(

where *b _{i}* are any set of linearly independent vectors in

The Grassmannian variety comes with a natural vector bundle (or locally free sheaf in other terminology) called the tautological bundle, which is important in the study of characteristic classes such as Chern classes.

Let *C* be a smooth complete curve and the Picard group of it; i.e., the group of isomorphism classes of line bundles on *C*. Since *C* is smooth, can be identified as the divisor class group of *C* and thus there is the degree homomorphism . The Jacobian variety of *C* is the kernel of this degree map; i.e., the group of the divisor classes on *C* of degree zero. A Jacobian variety is an example of an abelian variety, a complete variety with a compatible abelian group structure on it (the name "abelian" is however not because it is an abelian group). An abelian variety turns out to be projective (in short, algebraic theta functions give an embedding into a projective space. See equations defining abelian varieties); thus, is a projective variety. The tangent space to at the identity element is naturally isomorphic to ^{[7]} hence, the dimension of is the genus of .

Fix a point on . For each integer , there is a natural morphism^{[8]}

where is the product of *n* copies of *C*. For (i.e., *C* is an elliptic curve), the above morphism for turns out to be an isomorphism;^{[1]}^{: Ch. IV, Example 1.3.7. } in particular, an elliptic curve is an abelian variety.

Given an integer , the set of isomorphism classes of smooth complete curves of genus is called the moduli of curves of genus and is denoted as . There are few ways to show this moduli has a structure of a possibly reducible algebraic variety; for example, one way is to use geometric invariant theory which ensures a set of isomorphism classes has a (reducible) quasi-projective variety structure.^{[9]} Moduli such as the moduli of curves of fixed genus is typically not a projective variety; roughly the reason is that a degeneration (limit) of a smooth curve tends to be non-smooth or reducible. This leads to the notion of a stable curve of genus , a not-necessarily-smooth complete curve with no terribly bad singularities and not-so-large automorphism group. The moduli of stable curves , the set of isomorphism classes of stable curves of genus , is then a projective variety which contains as an open subset. Since is obtained by adding boundary points to , is colloquially said to be a compactification of . Historically a paper of Mumford and Deligne^{[10]} introduced the notion of a stable curve to show is irreducible when .

The moduli of curves exemplifies a typical situation: a moduli of nice objects tend not to be projective but only quasi-projective. Another case is a moduli of vector bundles on a curve. Here, there are the notions of stable and semistable vector bundles on a smooth complete curve . The moduli of semistable vector bundles of a given rank and a given degree (degree of the determinant of the bundle) is then a projective variety denoted as , which contains the set of isomorphism classes of stable vector bundles of rank and degree as an open subset.^{[11]} Since a line bundle is stable, such a moduli is a generalization of the Jacobian variety of .

In general, in contrast to the case of moduli of curves, a compactification of a moduli need not be unique and, in some cases, different non-equivalent compactifications are constructed using different methods and by different authors. An example over is the problem of compactifying , the quotient of a bounded symmetric domain by an action of an arithmetic discrete group .^{[12]} A basic example of is when , Siegel's upper half-space and commensurable with ; in that case, has an interpretation as the moduli of principally polarized complex abelian varieties of dimension (a principal polarization identifies an abelian variety with its dual). The theory of toric varieties (or torus embeddings) gives a way to compactify , a toroidal compactification of it.^{[13]}^{[14]} But there are other ways to compactify ; for example, there is the minimal compactification of due to Baily and Borel: it is the projective variety associated to the graded ring formed by modular forms (in the Siegel case, Siegel modular forms;^{[15]} see also Siegel modular variety). The non-uniqueness of compactifications is due to the lack of moduli interpretations of those compactifications; i.e., they do not represent (in the category-theory sense) any natural moduli problem or, in the precise language, there is no natural moduli stack that would be an analog of moduli stack of stable curves.

An algebraic variety can be neither affine nor projective. To give an example, let *X* = **P**^{1} × **A**^{1} and *p*: *X* → **A**^{1} the projection. It is an algebraic variety since it is a product of varieties. It is not affine since **P**^{1} is a closed subvariety of *X* (as the zero locus of *p*), but an affine variety cannot contain a projective variety of positive dimension as a closed subvariety. It is not projective either, since there is a nonconstant regular function on *X*; namely, *p*.

Another example of a non-affine non-projective variety is *X* = **A**^{2} − (0, 0) (cf. *Morphism of varieties § Examples*.)

Consider the affine line over . The complement of the circle in is not an algebraic variety (not even algebraic set). Note that is not a polynomial in (although a polynomial in real variables .) On the other hand, the complement of the origin in is an algebraic (affine) variety, since the origin is the zero-locus of . This may be explained as follows: the affine line has dimension one and so any subvariety of it other than itself must have strictly less dimension; namely, zero.

For similar reasons, a unitary group (over the complex numbers) is not an algebraic variety, while the special linear group is a closed subvariety of , the zero-locus of . (Over a different base field, a unitary group can however be given a structure of a variety.)

- An affine algebraic set
*V*is a variety if and only if*I*(*V*) is a prime ideal; equivalently,*V*is a variety if and only if its coordinate ring is an integral domain.^{[16]}^{: 52 }^{[1]}^{: 4 } - Every nonempty affine algebraic set may be written uniquely as a finite union of algebraic varieties (where none of the varieties in the decomposition is a subvariety of any other).
^{[1]}^{: 5 } - The
**dimension**of a variety may be defined in various equivalent ways. See Dimension of an algebraic variety for details. - A product of finitely many algebraic varieties (over an algebraically closed field) is an algebraic variety. A finite product of affine varieties is affine
^{[17]}and a finite product of projective varieties is projective.

See also: Morphism of varieties |

Let *V*_{1}, *V*_{2} be algebraic varieties. We say *V*_{1} and *V*_{2} are isomorphic, and write *V*_{1} ≅ *V*_{2}, if there are regular maps *φ* : *V*_{1} → *V*_{2} and *ψ* : *V*_{2} → *V*_{1} such that the compositions *ψ* ∘ *φ* and *φ* ∘ *ψ* are the identity maps on *V*_{1} and *V*_{2} respectively.

This section includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. Please help to improve this section by introducing more precise citations. (March 2013) (Learn how and when to remove this template message)

The basic definitions and facts above enable one to do classical algebraic geometry. To be able to do more — for example, to deal with varieties over fields that are not algebraically closed — some foundational changes are required. The modern notion of a variety is considerably more abstract than the one above, though equivalent in the case of varieties over algebraically closed fields. An *abstract algebraic variety* is a particular kind of scheme; the generalization to schemes on the geometric side enables an extension of the correspondence described above to a wider class of rings. A scheme is a locally ringed space such that every point has a neighbourhood that, as a locally ringed space, is isomorphic to a spectrum of a ring. Basically, a variety over k is a scheme whose structure sheaf is a sheaf of k-algebras with the property that the rings *R* that occur above are all integral domains and are all finitely generated k-algebras, that is to say, they are quotients of polynomial algebras by prime ideals.

This definition works over any field k. It allows you to glue affine varieties (along common open sets) without worrying whether the resulting object can be put into some projective space. This also leads to difficulties since one can introduce somewhat pathological objects, e.g. an affine line with zero doubled. Such objects are usually not considered varieties, and are eliminated by requiring the schemes underlying a variety to be *separated*. (Strictly speaking, there is also a third condition, namely, that one needs only finitely many affine patches in the definition above.)

Some modern researchers also remove the restriction on a variety having integral domain affine charts, and when speaking of a variety only require that the affine charts have trivial nilradical.

A complete variety is a variety such that any map from an open subset of a nonsingular curve into it can be extended uniquely to the whole curve. Every projective variety is complete, but not vice versa.

These varieties have been called "varieties in the sense of Serre", since Serre's foundational paper FAC^{[18]}
on sheaf cohomology was written for them. They remain typical objects to start studying in algebraic geometry, even if more general objects are also used in an auxiliary way.

One way that leads to generalizations is to allow reducible algebraic sets (and fields k that aren't algebraically closed), so the rings *R* may not be integral domains. A more significant modification is to allow nilpotents in the sheaf of rings, that is, rings which are not **reduced**. This is one of several generalizations of classical algebraic geometry that are built into Grothendieck's theory of schemes.

Allowing nilpotent elements in rings is related to keeping track of "multiplicities" in algebraic geometry. For example, the closed subscheme of the affine line defined by *x*^{2} = 0 is different from the subscheme defined by *x* = 0 (the origin). More generally, the fiber of a morphism of schemes *X* → *Y* at a point of *Y* may be non-reduced, even if *X* and *Y* are reduced. Geometrically, this says that fibers of good mappings may have nontrivial "infinitesimal" structure.

There are further generalizations called algebraic spaces and stacks.

Main article: Algebraic manifold |

An algebraic manifold is an algebraic variety that is also an *m*-dimensional manifold, and hence every sufficiently small local patch is isomorphic to *k ^{m}*. Equivalently, the variety is smooth (free from singular points). When k is the real numbers,