Numerator[expr]
gives the numerator of expr.
Numerator
Numerator[expr]
gives the numerator of expr.
Details and Options
- Numerator picks out terms which do not have superficially negative exponents. Denominator picks out the remaining terms.
- An exponent is "superficially negative" if it has a negative number as a factor.
- The standard representation of rational expressions as products of powers means that you cannot simply use Part to extract numerators.
- Numerator can be used on rational numbers.
- Numerator takes the following options:
-
Modulus 0 modulus to assume for integers Trig False whether to do trigonometric as well as algebraic transformations
Examples
open all close allBasic Examples (3)
Extract the numerator of a rational number:
Numerator[2 / 3]Extract the numerator of a rational expression:
Numerator[(x - 1)(x - 2) / (x - 3) ^ 2]Extract the numerator of a symbolic expression:
Numerator[Sin[x] ^ a(Sin[x] - 2) ^ -b]Scope (9)
Numerator[3 / 7]Numerator[3 / 7 + I / 11]Numerator[(x - 1) ^ 2 / ((x - 2)(x - 3))]Select terms without syntactically negative exponents:
expr = a x ^ n y ^ -m Exp[a - b - 2c + 3d]Numerator[expr]All exponents syntactically negative:
Numerator[a ^ -b / x]No syntactically negative exponents:
Numerator[2x ^ y b ^ 2]Numerator automatically threads over lists:
Numerator[{1, 2, 3, 4, 5, 6} / 3]Compute the numerator over the integers modulo 5:
Numerator[24x ^ y (3b) ^ -3, Modulus -> 5]Compute the numerator while incorporating common trigonometric identities:
Numerator[Tan[x], Trig -> True]Options (2)
Applications (2)
Explore patterns in reduced rational numbers:
MatrixPlot@Table[Numerator[i / j], {i, 1, 100}, {j, 1, 100}]View the occurrences of integers as the numerator in reduced rational numbers:
Histogram[Flatten@Table[Numerator[i / j], {i, 1, 2000}, {j, 1, 2000}], 100]Properties & Relations (4)
Denominator gives the terms with negative exponents:
Denominator[2 / 3(x - 1) / (x - 2)]An expression is a quotient of its numerator and denominator:
expr = 5 / 7(x - 1) ^ 2 / (x - 2) ^ 3a ^ b c ^ -d;num = Numerator[expr]den = Denominator[expr]expr === num / denUse Cancel to cancel common factors between the numerator and the denominator:
Cancel[(x - 1)(x - 2) / (x ^ 2 - 1)]Together writes an expression as a fraction and cancels common terms:
Together[x(x - 2) / (x ^ 2 - 1) + x / (x ^ 2 - 1) - 2 / (x ^ 2 - 1)]Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Numerator, Wolfram Language function, https://reference.wolfram.com/language/ref/Numerator.html.
CMS
Wolfram Language. 1988. "Numerator." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Numerator.html.
APA
Wolfram Language. (1988). Numerator. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Numerator.html
BibTeX
@misc{reference.wolfram_2026_numerator, author="Wolfram Research", title="{Numerator}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Numerator.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_numerator, organization={Wolfram Research}, title={Numerator}, year={1988}, url={https://reference.wolfram.com/language/ref/Numerator.html}, note=[Accessed: 12-June-2026]}