A rational expression is an expression that can be written as a quotient , where and are polynomials and is not the zero polynomial. It generalizes a numerical fraction by allowing variables in the numerator and denominator. For example,
are rational expressions. A rational expression can be evaluated only at values for which its denominator is nonzero.
Definition and scope
In one variable, a rational expression has the form
The coefficients usually belong to the rational numbers, real numbers, or complex numbers, although the definition applies over any field.
The word rational refers to the quotient structure, not to a requirement that all coefficients or evaluated values be rational numbers. For example,
is a rational expression with real coefficients.
Every polynomial is a rational expression because it can be written with denominator . By contrast, , , and are not rational expressions in .
The definition also allows several variables:
For example, is a rational expression in and .
A rational function is closely related but emphasizes a function represented by such a quotient. The distinction matters because different quotient expressions can have different restrictions on evaluation even when they represent the same formal rational function.
Domain and excluded values
The natural domain of a displayed rational expression consists of the allowed inputs at which its denominator is nonzero. For a real variable,
has domain
because .
The domain depends on the underlying number system. The expression
is defined for every real , but over the complex numbers it is undefined at and .
For several real variables, the excluded values can form curves or surfaces rather than isolated points. The expression
is undefined along the entire line .
A denominator must not be the zero polynomial. An expression such as
therefore does not qualify as a rational expression: its denominator is identically zero, not merely zero at particular inputs.
Simplification and equivalence
A rational expression is simplified by factoring the numerator and denominator and canceling common nonzero polynomial factors. For example,
The restriction remains part of the interpretation of the original expression. The polynomial , considered on its own, is defined at ; the original quotient is not.
Cancellation applies to factors, not to individual terms in sums. Thus
but canceling the in is invalid. Instead,
A fraction is in lowest terms when its numerator and denominator have no common nonconstant polynomial factor. In one variable over a field, a polynomial greatest common divisor can be computed using the Euclidean algorithm and then divided out.
Two quotients and represent the same formal rational function precisely when
as a polynomial identity. When interpreted as displayed expressions, their values agree wherever both expressions are defined, but their original domains need not coincide.
Arithmetic operations
Rational expressions obey the same arithmetic rules as numerical fractions:
and
These formulas apply at inputs where and .
Division additionally requires the divisor to be nonzero:
At an input, the original expression requires , , and . A simplified final formula may no longer display all these restrictions.
For example,
A complex fraction—a fraction containing other fractions—can be simplified by multiplying its numerator and denominator by a common denominator. For instance,
with the original restrictions
Equations involving rational expressions
A rational equation is an equation involving rational expressions. Multiplication by a common denominator can convert it into a polynomial equation, but equivalence holds only on the original domain.
For example,
requires . Multiplication by gives
whose only candidate is . Since this value is excluded, the original equation has no solution.
For inequalities, the sign of a denominator must also be considered. Multiplying an inequality by an expression of unknown sign is not a single unconditional step: the inequality reverses where that expression is negative. Factoring the numerator and denominator and examining their signs on intervals separated by zeros and excluded values gives a systematic method.
Zeros, discontinuities, and graphs
For a real rational expression
a zero is a value such that
A root of the numerator is therefore not automatically a zero of the function.
A rational function is continuous wherever its denominator is nonzero. Denominator zeros can produce different features in its graph:
- Removable discontinuity: If a common factor cancels completely from the denominator, the simplified expression may have a finite value at an input excluded by the original quotient. The original graph has a hole there.
- Pole: If a real denominator zero remains after all common factors have been canceled, the function is unbounded near that point, producing a vertical asymptote.
For example,
has a hole at , while has a vertical asymptote at . In the first case, the limit is
although the original quotient is undefined at .
Behavior for large follows from polynomial division:
The remainder term tends to zero as , so the graph approaches the polynomial . This includes horizontal and oblique asymptotes as special cases.
Calculus and decomposition
Rational expressions remain rational under differentiation. The quotient rule gives the derivative
where .
Integration often uses polynomial division followed by partial fraction decomposition. For example,
Consequently,
on any interval avoiding .
Unlike differentiation, integration does not generally produce another rational expression. Logarithms and inverse trigonometric functions commonly occur.
Algebraic interpretation and applications
In abstract algebra, rational functions in one variable over a field form the field . Its elements are equivalence classes of pairs of polynomials , with , under the equivalence relation
Addition and multiplication are defined by the fraction rules. This construction treats rational functions as algebraic objects rather than as particular written formulas with inherited evaluation restrictions.
Rational expressions occur in rate calculations, geometric formulas, generating functions, and transformed differential equations. In function approximation, quotients of polynomials can represent behavior that would require a polynomial of much higher degree, although denominator zeros may introduce unwanted poles.
Their numerical evaluation also requires care. Algebraically equivalent expressions can behave differently in floating-point arithmetic, especially when subtraction causes loss of significant digits. Cancellation of common factors can improve evaluation near a removable discontinuity, but it does not restore a value to an input excluded by the original expression.