In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials.
The coefficients of the polynomials need not be rational numbers; they may be taken in any field K. In this case, one speaks of a rational function and a rational fraction over K. The values of the variables may be taken in any field L containing K. Then the domain of the function is the set of the values of the variables for which the denominator is not zero, and the codomain is L. The set of rational functions over a field K is a field, the field of fractions of the ring of the polynomial functions over K. A function
is called a rational function if it can be written in the form[1] where
have a non-constant polynomial greatest common divisor
produces a rational function which may have a larger domain than
and both are real polynomials, named by analogy to a proper fraction in
[2] In complex analysis, a rational function is the ratio of two polynomials with complex coefficients, where Q is not the zero polynomial and P and Q have no common factor (this avoids f taking the indeterminate value 0/0).
Every rational function can be naturally extended to a function whose domain and range are the whole Riemann sphere (complex projective line).
A complex rational function with degree one is a Möbius transformation.
[4] There are several non equivalent definitions of the degree of a rational function.
Most commonly, the degree of a rational function is the maximum of the degrees of its constituent polynomials P and Q, when the fraction is reduced to lowest terms.
If the degree of f is d, then the equation has d distinct solutions in z except for certain values of w, called critical values, where two or more solutions coincide or where some solution is rejected at infinity (that is, when the degree of the equation decreases after having cleared the denominator).
[5]: §13.6.1 [6]: Chapter IV In network synthesis and network analysis, a rational function of degree two (that is, the ratio of two polynomials of degree at most two) is often called a biquadratic function.
(i.e. the imaginary unit or its negative), then formal evaluation would lead to division by zero: which is undefined.
Every Laurent polynomial can be written as a rational function while the converse is not necessarily true, i.e., the ring of Laurent polynomials is a subring of the rational functions.
However, the process of reduction to standard form may inadvertently result in the removal of such singularities unless care is taken.
The coefficients of a Taylor series of any rational function satisfy a linear recurrence relation, which can be found by equating the rational function to a Taylor series with indeterminate coefficients, and collecting like 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 of x, we get Combining like terms gives Since this holds true for all x in the radius of convergence of the original Taylor series, we can compute as follows.
Since the constant term on the left must equal the constant term on the right it follows that Then, since there are no powers of x on the left, all of the coefficients 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 using partial fraction decomposition we can write any proper rational function as a sum of factors of the form 1 / (ax + b) and expand these as geometric series, giving an explicit formula for the Taylor coefficients; this is the method of generating functions.
Any rational expression can be written as the quotient of two polynomials P/Q with Q ≠ 0, although this representation isn't unique.
However, since F[X] is a unique factorization domain, there is a unique representation for any rational expression P/Q with P and Q polynomials of lowest degree and Q chosen to be monic.
This is similar to how a fraction of integers can always be written uniquely in lowest terms by canceling out common factors.
An extended version of the abstract idea of rational function is used in algebraic geometry.
There the function field of an algebraic variety V is formed as the field of fractions of the coordinate ring of V (more accurately said, of a Zariski-dense affine open set in V).
Its elements f are considered as regular functions in the sense of algebraic geometry on non-empty open sets U, and also may be seen as morphisms to the projective line.
Rational functions are used in numerical analysis for interpolation and approximation of functions, for example the Padé approximations introduced by Henri Padé.
Approximations in terms of rational functions are well suited for computer algebra systems and other numerical software.
Rational functions are used to approximate or model more complex equations in science and engineering including fields and forces 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] In signal processing, the Laplace transform (for continuous systems) or the z-transform (for discrete-time systems) of the impulse response of commonly-used linear time-invariant systems (filters) with infinite impulse response are rational functions over complex numbers.