Variables [poly]
gives a list of all independent variables in a polynomial.
Variables
Variables [poly]
gives a list of all independent variables in a polynomial.
Examples
open all close allBasic Examples (1)
Find a list of variables of a polynomial:
Variables[(x + y) ^ 2 + 3z ^ 2 - y z + 7]Scope (4)
A polynomial:
Variables[x ^ 4 + y ^ 4 + z ^ 4 - 3x y z]A list of polynomials:
Variables[{x ^ 2 - a y, y ^ 2 - b z, z ^ 2 - c x}]A rational function:
Variables[(a - b) / (x + y) - 2 / z]Find variables in a radical expression:
Variables[Sqrt[x + y - z ^ 2] + (-2 t) ^ (2 / 3)]Options (1)
Modulus (1)
Find variables present after reducing coefficients modulo 2:
Variables[x + 2y + 3z, Modulus -> 2]Properties & Relations (2)
Use CoefficientList to find coefficients of polynomials:
f = x ^ 2 - 2 x y + 3 y ^ 2 + 4 x + 5y + 6;CoefficientList[f, Variables[f]]Use NonCommutativeVariables to find variables in a noncommutative polynomial:
NonCommutativeVariables[(x + 2y)**(3w**z + 4z**z)]Possible Issues (1)
Variables looks for variables only inside sums, products, and rational powers:
Variables[Sin[x] + Cos[x]]Variables[E ^ x]Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Variables, Wolfram Language function, https://reference.wolfram.com/language/ref/Variables.html.
CMS
Wolfram Language. 1988. "Variables." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Variables.html.
APA
Wolfram Language. (1988). Variables. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Variables.html
BibTeX
@misc{reference.wolfram_2026_variables, author="Wolfram Research", title="{Variables}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Variables.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_variables, organization={Wolfram Research}, title={Variables}, year={1988}, url={https://reference.wolfram.com/language/ref/Variables.html}, note=[Accessed: 13-June-2026]}