{
  "id": "rational-expression",
  "title": "Rational Expression",
  "lang": "en",
  "source_lang": "en",
  "summary": "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.",
  "category": "mathematics",
  "subcategory": "algebra",
  "type": "concept",
  "aliases": [
    "Algebraic fraction",
    "Rational algebraic expression"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/rational-expression/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/rational-expression/",
      "json": "https://aiwiki.page/zh/rational-expression.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A rational expression is an expression that can be written as a quotient \\(P/Q\\), where \\(P\\) and \\(Q\\) are polynomials and \\(Q\\) is not the zero polynomial. It generalizes a numerical fraction by allowing variables in the numerator and denominator. For example,\n\n\\[\\frac{x+1}{x^2-4},\\qquad \\frac{3}{y},\\qquad \\frac{u^2+uv}{u-v}\\]\n\nare rational expressions. A rational expression can be evaluated only at values for which its denominator is nonzero."
    },
    {
      "heading": "Definition and scope",
      "text": "In one variable, a rational expression has the form\n\n\\[\\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.\\]\n\nThe coefficients usually belong to the rational numbers, real numbers, or complex numbers, although the definition applies over any field.\n\nThe word rational refers to the quotient structure, not to a requirement that all coefficients or evaluated values be rational numbers. For example,\n\n\\[\\frac{\\sqrt{2}x+1}{x^2+1}\\]\n\nis a rational expression with real coefficients.\n\nEvery polynomial is a rational expression because it can be written with denominator \\(1\\). By contrast, \\(\\sqrt{x}\\), \\(\\sin x\\), and \\(e^x\\) are not rational expressions in \\(x\\).\n\nThe definition also allows several variables:\n\n\\[\\frac{P(x_1,\\ldots,x_n)}{Q(x_1,\\ldots,x_n)}.\\]\n\nFor example, \\((x+y)/(x^2+y^2)\\) is a rational expression in \\(x\\) and \\(y\\).\n\nA 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."
    },
    {
      "heading": "Domain and excluded values",
      "text": "The natural domain of a displayed rational expression consists of the allowed inputs at which its denominator is nonzero. For a real variable,\n\n\\[\\frac{x+1}{x^2-4}\\]\n\nhas domain\n\n\\[\\mathbb{R}\\setminus\\{-2,2\\},\\]\n\nbecause \\(x^2-4=(x-2)(x+2)\\).\n\nThe domain depends on the underlying number system. The expression\n\n\\[\\frac{1}{x^2+1}\\]\n\nis defined for every real \\(x\\), but over the complex numbers it is undefined at \\(x=i\\) and \\(x=-i\\).\n\nFor several real variables, the excluded values can form curves or surfaces rather than isolated points. The expression\n\n\\[\\frac{1}{x-y}\\]\n\nis undefined along the entire line \\(x=y\\).\n\nA denominator must not be the zero polynomial. An expression such as\n\n\\[\\frac{x+1}{x-x}\\]\n\ntherefore does not qualify as a rational expression: its denominator is identically zero, not merely zero at particular inputs."
    },
    {
      "heading": "Simplification and equivalence",
      "text": "A rational expression is simplified by factoring the numerator and denominator and canceling common nonzero polynomial factors. For example,\n\n\\[\\frac{x^2-1}{x-1} = \\frac{(x-1)(x+1)}{x-1} = x+1, \\qquad x\\ne1.\\]\n\nThe restriction \\(x\\ne1\\) remains part of the interpretation of the original expression. The polynomial \\(x+1\\), considered on its own, is defined at \\(x=1\\); the original quotient is not.\n\nCancellation applies to factors, not to individual terms in sums. Thus\n\n\\[\\frac{x(x+2)}{x}=x+2 \\qquad (x\\ne0),\\]\n\nbut canceling the \\(x\\) in \\((x+2)/x\\) is invalid. Instead,\n\n\\[\\frac{x+2}{x}=1+\\frac{2}{x}.\\]\n\nA 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.\n\nTwo quotients \\(P/Q\\) and \\(R/S\\) represent the same formal rational function precisely when\n\n\\[PS=RQ\\]\n\nas a polynomial identity. When interpreted as displayed expressions, their values agree wherever both expressions are defined, but their original domains need not coincide."
    },
    {
      "heading": "Arithmetic operations",
      "text": "Rational expressions obey the same arithmetic rules as numerical fractions:\n\n\\[\\frac{P}{Q}+\\frac{R}{S} =\\frac{PS+RQ}{QS},\\]\n\n\\[\\frac{P}{Q}-\\frac{R}{S} =\\frac{PS-RQ}{QS},\\]\n\nand\n\n\\[\\frac{P}{Q}\\cdot\\frac{R}{S} =\\frac{PR}{QS}.\\]\n\nThese formulas apply at inputs where \\(Q\\ne0\\) and \\(S\\ne0\\).\n\nDivision additionally requires the divisor to be nonzero:\n\n\\[\\frac{P/Q}{R/S} = \\frac{PS}{QR}.\\]\n\nAt an input, the original expression requires \\(Q\\ne0\\), \\(S\\ne0\\), and \\(R\\ne0\\). A simplified final formula may no longer display all these restrictions.\n\nFor example,\n\n\\[\\frac{1}{x-1}+\\frac{1}{x+1} = \\frac{2x}{x^2-1}, \\qquad x\\ne\\pm1.\\]\n\nA complex fraction—a fraction containing other fractions—can be simplified by multiplying its numerator and denominator by a common denominator. For instance,\n\n\\[\\frac{1/x+1/y}{1/x-1/y} = \\frac{x+y}{y-x},\\]\n\nwith the original restrictions\n\n\\[x\\ne0,\\qquad y\\ne0,\\qquad x\\ne y.\\]"
    },
    {
      "heading": "Equations involving rational expressions",
      "text": "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.\n\nFor example,\n\n\\[\\frac{x+1}{x-1}=\\frac{2}{x-1}\\]\n\nrequires \\(x\\ne1\\). Multiplication by \\(x-1\\) gives\n\n\\[x+1=2,\\]\n\nwhose only candidate is \\(x=1\\). Since this value is excluded, the original equation has no solution.\n\nFor 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."
    },
    {
      "heading": "Zeros, discontinuities, and graphs",
      "text": "For a real rational expression\n\n\\[f(x)=\\frac{P(x)}{Q(x)},\\]\n\na zero is a value \\(a\\) such that\n\n\\[P(a)=0,\\qquad Q(a)\\ne0.\\]\n\nA root of the numerator is therefore not automatically a zero of the function.\n\nA rational function is continuous wherever its denominator is nonzero. Denominator zeros can produce different features in its graph:\n\n- 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.\n- 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.\n\nFor example,\n\n\\[\\frac{x^2-1}{x-1}\\]\n\nhas a hole at \\((1,2)\\), while \\(1/(x-1)\\) has a vertical asymptote at \\(x=1\\). In the first case, the limit is\n\n\\[\\lim_{x\\to1}\\frac{x^2-1}{x-1}=2,\\]\n\nalthough the original quotient is undefined at \\(1\\).\n\nBehavior for large \\(|x|\\) follows from polynomial division:\n\n\\[\\frac{P(x)}{Q(x)} = A(x)+\\frac{R(x)}{Q(x)}, \\qquad \\deg R<\\deg Q.\\]\n\nThe remainder term tends to zero as \\(|x|\\to\\infty\\), so the graph approaches the polynomial \\(A(x)\\). This includes horizontal and oblique asymptotes as special cases."
    },
    {
      "heading": "Calculus and decomposition",
      "text": "Rational expressions remain rational under differentiation. The quotient rule gives the derivative\n\n\\[\\left(\\frac{P}{Q}\\right)' = \\frac{P'Q-PQ'}{Q^2}\\]\n\nwhere \\(Q\\ne0\\).\n\nIntegration often uses polynomial division followed by partial fraction decomposition. For example,\n\n\\[\\frac{1}{x^2-1} = \\frac{1}{2(x-1)}-\\frac{1}{2(x+1)}.\\]\n\nConsequently,\n\n\\[\\int\\frac{1}{x^2-1}\\,dx = \\frac12\\log|x-1| -\\frac12\\log|x+1|+C\\]\n\non any interval avoiding \\(x=\\pm1\\).\n\nUnlike differentiation, integration does not generally produce another rational expression. Logarithms and inverse trigonometric functions commonly occur."
    },
    {
      "heading": "Algebraic interpretation and applications",
      "text": "In abstract algebra, rational functions in one variable over a field \\(K\\) form the field \\(K(x)\\). Its elements are equivalence classes of pairs of polynomials \\((P,Q)\\), with \\(Q\\ne0\\), under the equivalence relation\n\n\\[(P,Q)\\sim(R,S) \\quad\\Longleftrightarrow\\quad PS=RQ.\\]\n\nAddition 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.\n\nRational 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.\n\nTheir 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."
    }
  ],
  "links": [
    "polynomial",
    "fraction",
    "rational-number",
    "real-number",
    "complex-number",
    "field-mathematics",
    "mathematical-function",
    "domain-of-a-function",
    "greatest-common-divisor",
    "euclidean-algorithm",
    "equation",
    "continuous-function",
    "graph-of-a-function",
    "limit",
    "derivative",
    "abstract-algebra",
    "equivalence-relation",
    "generating-function",
    "differential-equation",
    "function-approximation",
    "floating-point-arithmetic"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}