# Zero of a function

(Redirected from Root of a function)

A graph of the function cos(x) on the domain $\scriptstyle{[-2\pi,2\pi]}$, with x-intercepts indicated in red. The function has zeroes where x is $\scriptstyle\frac{-3\pi}{2}$, $\scriptstyle\frac{-\pi}{2}$, $\scriptstyle\frac{\pi}{2}$ and $\scriptstyle\frac{3\pi}{2}$.

In mathematics, a zero, also sometimes called a root, of a real-, complex- or generally vector-valued function f is a member x of the domain of f such that f(x) vanishes at x; that is,

$x \text{ such that } f(x) = 0\,.$

In other words, a "zero" of a function is an input value that produces an output of zero (0).[1]

A root of a polynomial is a zero of the associated polynomial function. The fundamental theorem of algebra shows that any non-zero polynomial has a number of roots at most equal to its degree and that the number of roots and the degree are equal when one considers the complex roots (or more generally the roots in an algebraically closed extension) counted with their multiplicities. For example, the polynomial f of degree two, defined by

$f(x)=x^2-5x+6$

has the two roots 2 and 3, since

$f(2) = 2^2 - 5 \cdot 2 + 6 = 0 \quad \textstyle{\rm {and} }\quad f(3) = 3^2 - 5 \cdot 3 + 6 = 0.$

If the function maps real numbers to real numbers, its zeroes are the x-coordinates of the points where its graph meets the x-axis. An alternative name for such a point (x,0) in this context is an x-intercept.

## Polynomial roots

Every real polynomial of odd degree has an odd number of real roots (counting multiplicities); likewise, a real polynomial of even degree must have an even number of real roots. Consequently, real odd polynomials must have at least one real root (because one is the smallest odd whole number), whereas even polynomials may have none. This principle can be proven by reference to the intermediate value theorem: since polynomial functions are continuous, the function value must cross zero in the process of changing from negative to positive or vice-versa.

### Fundamental theorem of algebra

The fundamental theorem of algebra states that every polynomial of degree n has n complex roots, counted with their multiplicities. The non-real roots of polynomials with real coefficients come in conjugate pairs.[1] Vieta's formulas relate the coefficients of a polynomial to sums and products of its roots.

## Computing roots

Main article: Equation solving

Computing roots of certain functions, especially polynomial functions, frequently requires the use of specialised or approximation techniques (for example, Newton's method).

## Zero set

Main article: Zero set

In topology and other areas of mathematics, the zero set of a real-valued function f : XR (or more generally, a function taking values in some additive group) is the subset $f^{-1}(0)$ of X (the inverse image of {0}).

Zero sets are important in many areas of mathematics. One area of particular importance is algebraic geometry, where the first definition of an algebraic variety is through zero-sets. For instance, for each set S of polynomials in k[x1, ..., xn], one defines the zero-locus Z(S) to be the set of points in An on which the functions in S simultaneously vanish, that is to say

$Z(S) = \{x \in \mathbb A^n \mid f(x) = 0 \text{ for all } f\in S\}.$ Then a subset V of An is called an affine algebraic set if V = Z(S) for some S. These affine algebraic sets are the fundamental building blocks of algebraic geometry.