Inmathematics, arational function is anyfunction that can be defined by arational fraction, which is analgebraic fraction such that both thenumerator and thedenominator arepolynomials. Thecoefficients of the polynomials need not berational numbers; they may be taken in anyfieldK. In this case, one speaks of a rational function and a rational fractionoverK. The values of thevariables may be taken in any fieldL containingK. Then thedomain of the function is the set of the values of the variables for which the denominator is not zero, and thecodomain isL.
which may have a larger domain than, and is equal to on the domain of It is a common usage to identify and, that is to extend "by continuity" the domain of to that of Indeed, one can define a rational fraction as anequivalence class of fractions of polynomials, where two fractions and are considered equivalent if. In this case is equivalent to
Aproper rational function is a rational function in which thedegree of is less than the degree of and both arereal polynomials, named by analogy to aproper fraction in[2]
is the ratio of two polynomials with complex coefficients, whereQ is not the zero polynomial andP andQ have no common factor (this avoidsf taking the indeterminate value 0/0).
The domain off is the set of complex numbers such that.Every rational function can be naturally extended to a function whose domain and range are the wholeRiemann sphere, i.e., arational mapping. Iteration of rational functions on the Riemann sphere forms adiscrete dynamical system.[3]
There are several non equivalent definitions of the degree of a rational function.
Most commonly, thedegree of a rational function is the maximum of thedegrees of its constituent polynomialsP andQ, when the fraction is reduced tolowest terms. If the degree off isd, then the equation
hasd distinct solutions inz except for certain values ofw, calledcritical values, where two or more solutions coincide or where some solution is rejectedat infinity (that is, when the degree of the equation decreases after havingcleared the denominator).
Thedegree of thegraph of a rational function is not the degree as defined above: it is the maximum of the degree of the numerator and one plus the degree of the denominator.
In some contexts, such as inasymptotic analysis, thedegree of a rational function is the difference between the degrees of the numerator and the denominator.[5]: §13.6.1 [6]: Chapter IV
Innetwork synthesis andnetwork analysis, a rational function of degree two (that is, the ratio of two polynomials of degree at most two) is often called abiquadratic function.[7]
Rational function of degree 3, with a graph ofdegree 3:
Rational function of degree 2, with a graph ofdegree 3:
The rational function
is not defined at
It is asymptotic to as
The rational function
is defined for allreal numbers, but not for allcomplex numbers, since ifx were a square root of (i.e. theimaginary unit or its negative), then formal evaluation would lead to division by zero:
which is undefined.
Aconstant function such asf(x) = π is a rational function since constants are polynomials. The function itself is rational, even though thevalue off(x) is irrational for allx.
Everypolynomial function is a rational function with A function that cannot be written in this form, such as is not a rational function. However, the adjective "irrational" isnot generally used for functions.
EveryLaurent polynomial can be written as a rational function while the converse is not necessarily true, i.e., the ring of Laurent polynomials is asubring of the rational functions.
The rational function is equal to 1 for allx except 0, where there is aremovable singularity. The sum, product, or quotient (excepting division by the zero polynomial) of two rational functions is itself a rational function. However, the process of reduction to standard form may inadvertently result in the removal of such singularities unless care is taken. Using the definition of rational functions as equivalence classes gets around this, sincex/x is equivalent to 1/1.
The coefficients of aTaylor series of any rational function satisfy alinear recurrence relation, which can be found by equating the rational function to a Taylor series with indeterminate coefficients, and collectinglike terms after clearing the denominator.
For example,
Multiplying through by the denominator and distributing,
After adjusting the indices of the sums to get the same powers ofx, we get
Combining like terms gives
Since this holds true for allx in theradius of convergence of the original Taylor series, we can compute as follows. Since theconstant term on the left must equal the constant term on the right it follows that
Then, since there are no powers ofx on the left, all of thecoefficients on the right must be zero, from which it follows that
Conversely, any sequence that satisfies a linear recurrence determines a rational function when used as the coefficients of a Taylor series. This is useful in solving such recurrences, since by usingpartial fraction decomposition we can write any proper rational function as a sum of factors of the form1 / (ax +b) and expand these asgeometric series, giving an explicit formula for the Taylor coefficients; this is the method ofgenerating functions.
Inabstract algebra the concept of a polynomial is extended to include formal expressions in which the coefficients of the polynomial can be taken from anyfield. In this setting, given a field and some indeterminate, arational expression (also known as arational fraction or, inalgebraic geometry, arational function) is any element of thefield of fractions of thepolynomial ring. Any rational expression can be written as the quotient of two polynomials with, although this representation isn't unique. is equivalent to, for polynomials,,, and, when. However, since is aunique factorization domain, there is aunique representation for any rational expression with and polynomials of lowest degree and chosen to bemonic. This is similar to how afraction of integers can always be written uniquely in lowest terms by canceling out common factors.
The field of rational expressions is denoted. This field is said to be generated (as a field) over by (atranscendental element), because does not contain any proper subfield containing both and the element.
Notion of a rational function on an algebraic variety
Likepolynomials, rational expressions can also be generalized to indeterminates, by taking the field of fractions of, which is denoted by.
An extended version of the abstract idea of rational function is used in algebraic geometry. There thefunction field of an algebraic variety is formed as the field of fractions of thecoordinate ring of (more accurately said, of aZariski-dense affine open set in). Its elements are considered as regular functions in the sense of algebraic geometry on non-empty open sets, and also may be seen as morphisms to theprojective line.
Rational functions are used to approximate or model more complex equations in science and engineering includingfields andforces in physics,spectroscopy in analytical chemistry, enzyme kinetics in biochemistry, electronic circuitry, aerodynamics, medicine concentrations in vivo,wave functions for atoms and molecules, optics and photography to improve image resolution, and acoustics and sound.[citation needed]