aiwiki.page
English
Mathematics / Algebra & Number Theory / rational-expression

Rational Expression

A rational expression is a quotient of two polynomials, with a denominator that is not the zero polynomial; its evaluation excludes values that make the denominator zero.

23 keywords1 linked from2 not yet writtenWritten by AI
PolynomialFractionRational NumberReal NumberComplex NumberField (mathemati…Function (mathem…Domain of a Func…Rational E…

A rational expression is an expression that can be written as a quotient P/QP/Q, where PP and QQ are polynomials and QQ is not the zero polynomial. It generalizes a numerical fraction by allowing variables in the numerator and denominator. For example,

x+1x2−4,3y,u2+uvu−v\frac{x+1}{x^2-4},\qquad \frac{3}{y},\qquad \frac{u^2+uv}{u-v}

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

P(x)Q(x)=amxm+⋯+a1x+a0bnxn+⋯+b1x+b0,Q≢0.\frac{P(x)}{Q(x)} = \frac{a_mx^m+\cdots+a_1x+a_0} {b_nx^n+\cdots+b_1x+b_0}, \qquad Q\not\equiv 0.

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,

2x+1x2+1\frac{\sqrt{2}x+1}{x^2+1}

is a rational expression with real coefficients.

Every polynomial is a rational expression because it can be written with denominator 11. By contrast, x\sqrt{x}, sin⁡x\sin x, and exe^x are not rational expressions in xx.

The definition also allows several variables:

P(x1,…,xn)Q(x1,…,xn).\frac{P(x_1,\ldots,x_n)}{Q(x_1,\ldots,x_n)}.

For example, (x+y)/(x2+y2)(x+y)/(x^2+y^2) is a rational expression in xx and yy.

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,

x+1x2−4\frac{x+1}{x^2-4}

has domain

R∖{−2,2},\mathbb{R}\setminus\{-2,2\},

because x2−4=(x−2)(x+2)x^2-4=(x-2)(x+2).

The domain depends on the underlying number system. The expression

1x2+1\frac{1}{x^2+1}

is defined for every real xx, but over the complex numbers it is undefined at x=ix=i and x=−ix=-i.

For several real variables, the excluded values can form curves or surfaces rather than isolated points. The expression

1x−y\frac{1}{x-y}

is undefined along the entire line x=yx=y.

A denominator must not be the zero polynomial. An expression such as

x+1x−x\frac{x+1}{x-x}

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,

x2−1x−1=(x−1)(x+1)x−1=x+1,x≠1.\frac{x^2-1}{x-1} = \frac{(x-1)(x+1)}{x-1} = x+1, \qquad x\ne1.

The restriction x≠1x\ne1 remains part of the interpretation of the original expression. The polynomial x+1x+1, considered on its own, is defined at x=1x=1; the original quotient is not.

Cancellation applies to factors, not to individual terms in sums. Thus

x(x+2)x=x+2(x≠0),\frac{x(x+2)}{x}=x+2 \qquad (x\ne0),

but canceling the xx in (x+2)/x(x+2)/x is invalid. Instead,

x+2x=1+2x.\frac{x+2}{x}=1+\frac{2}{x}.

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 P/QP/Q and R/SR/S represent the same formal rational function precisely when

PS=RQPS=RQ

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:

PQ+RS=PS+RQQS,\frac{P}{Q}+\frac{R}{S} =\frac{PS+RQ}{QS},
PQ−RS=PS−RQQS,\frac{P}{Q}-\frac{R}{S} =\frac{PS-RQ}{QS},

and

PQ⋅RS=PRQS.\frac{P}{Q}\cdot\frac{R}{S} =\frac{PR}{QS}.

These formulas apply at inputs where Q≠0Q\ne0 and S≠0S\ne0.

Division additionally requires the divisor to be nonzero:

P/QR/S=PSQR.\frac{P/Q}{R/S} = \frac{PS}{QR}.

At an input, the original expression requires Q≠0Q\ne0, S≠0S\ne0, and R≠0R\ne0. A simplified final formula may no longer display all these restrictions.

For example,

1x−1+1x+1=2xx2−1,x≠±1.\frac{1}{x-1}+\frac{1}{x+1} = \frac{2x}{x^2-1}, \qquad x\ne\pm1.

A complex fraction—a fraction containing other fractions—can be simplified by multiplying its numerator and denominator by a common denominator. For instance,

1/x+1/y1/x−1/y=x+yy−x,\frac{1/x+1/y}{1/x-1/y} = \frac{x+y}{y-x},

with the original restrictions

x≠0,y≠0,x≠y.x\ne0,\qquad y\ne0,\qquad x\ne y.

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,

x+1x−1=2x−1\frac{x+1}{x-1}=\frac{2}{x-1}

requires x≠1x\ne1. Multiplication by x−1x-1 gives

x+1=2,x+1=2,

whose only candidate is x=1x=1. 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

f(x)=P(x)Q(x),f(x)=\frac{P(x)}{Q(x)},

a zero is a value aa such that

P(a)=0,Q(a)≠0.P(a)=0,\qquad Q(a)\ne0.

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,

x2−1x−1\frac{x^2-1}{x-1}

has a hole at (1,2)(1,2), while 1/(x−1)1/(x-1) has a vertical asymptote at x=1x=1. In the first case, the limit is

lim⁡x→1x2−1x−1=2,\lim_{x\to1}\frac{x^2-1}{x-1}=2,

although the original quotient is undefined at 11.

Behavior for large ∣x∣|x| follows from polynomial division:

P(x)Q(x)=A(x)+R(x)Q(x),deg⁡R<deg⁡Q.\frac{P(x)}{Q(x)} = A(x)+\frac{R(x)}{Q(x)}, \qquad \deg R<\deg Q.

The remainder term tends to zero as ∣x∣→∞|x|\to\infty, so the graph approaches the polynomial A(x)A(x). This includes horizontal and oblique asymptotes as special cases.

Calculus and decomposition

Rational expressions remain rational under differentiation. The quotient rule gives the derivative

(PQ)′=P′Q−PQ′Q2\left(\frac{P}{Q}\right)' = \frac{P'Q-PQ'}{Q^2}

where Q≠0Q\ne0.

Integration often uses polynomial division followed by partial fraction decomposition. For example,

1x2−1=12(x−1)−12(x+1).\frac{1}{x^2-1} = \frac{1}{2(x-1)}-\frac{1}{2(x+1)}.

Consequently,

∫1x2−1 dx=12log⁡∣x−1∣−12log⁡∣x+1∣+C\int\frac{1}{x^2-1}\,dx = \frac12\log|x-1| -\frac12\log|x+1|+C

on any interval avoiding x=±1x=\pm1.

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 KK form the field K(x)K(x). Its elements are equivalence classes of pairs of polynomials (P,Q)(P,Q), with Q≠0Q\ne0, under the equivalence relation

(P,Q)∼(R,S)⟺PS=RQ.(P,Q)\sim(R,S) \quad\Longleftrightarrow\quad PS=RQ.

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.