Look at the term 3x^2 y. Two different letters — x and y — stand side by side. A natural question jumps out: is this one polynomial or two? And when a problem asks for "the degree," which degree does it mean — the exponent on x, the exponent on y, or the sum?

3x^2 y is one polynomial in two variables. And the word "degree" splits into three meanings when more than one variable is present. This article sorts out the vocabulary.

How many variables

Count the distinct letters. In 3x^2 y, the letters are x and y, so this is a polynomial in 2 variables. Compare with 3x^2, which has only x — one variable. And 2xyz, which has x, y, and z — three variables.

Three kinds of degree for multivariable polynomials

Once more than one variable is in play, the single word "degree" is not enough. Three distinct quantities all go by that name.

  1. Total degree (overall degree). For a single term, this is the sum of the exponents on all the variables. For 3x^2 y, the sum is 2 + 1 = 3. For a polynomial with multiple terms, the total degree is the largest such sum across its terms.

  2. Degree in x (or any one chosen variable). Treat every other variable as a constant, and look at the highest exponent on x. For 3x^2 y, the degree in x is 2.

  3. Degree in y. Treat x as constant, read off the highest exponent on y. For 3x^2 y, the degree in y is 1.

So 3x^2 y has three different "degrees" — 3 overall, 2 in x, 1 in y — and no single number is the degree. You have to say which one you mean.

Worked examples

Notice that in the last example every term has the same total degree — that structure has a name.

Which "degree" matters depends on the problem

The three degrees each answer a different kind of question.

Homogeneous polynomials

A polynomial is homogeneous of degree d when every term has total degree exactly d.

Homogeneous polynomials have nicely behaved zero sets: scaling any solution (x, y) by t gives another solution (tx, ty), so the zero set is a union of lines through the origin.

The case of constants

A plain number like 5 has:

A nonzero constant has degree 0, not undefined. The one exception is the zero polynomial (every coefficient is zero): its degree is left undefined or written as -\infty, by convention.

Three or more variables

Nothing new happens; the rules extend directly. For 2xyz: three variables, each with exponent 1, so total degree 3 and degree 1 in each variable. For 4x^2 y z^3: total degree 6; degree in x is 2, in y is 1, in z is 3.

Treating a multivariable polynomial as single-variable

Sometimes one variable is "privileged" — it is the unknown you want to solve for, while the other is a parameter. Then it pays to view the polynomial as a single-variable one whose coefficients involve the other letter.

Take x^2 + yx + y^2. As a polynomial in x, its coefficients are a_2 = 1, a_1 = y, a_0 = y^2. Now every tool for quadratics applies, with y tagging along as a parameter.

Example. For which y does x^2 + 2xy + y^2 = 9 have a real x-solution? Rewrite as x^2 + 2y \cdot x + (y^2 - 9) = 0. The discriminant is

\Delta = (2y)^2 - 4(y^2 - 9) = 36,

positive for every y, so the equation has a real x-solution for every real y.

In physics and geometry

Multivariable polynomials appear whenever a shape is written in coordinates. x^2 + y^2 = r^2 is a circle (total degree 2). x^2 + y^2 + z^2 = r^2 is a sphere (three variables, total degree 2). y^2 = 4ax is a parabola. x^3 + y^3 = 3xy is the folium of Descartes (total degree 3). The shape of the zero set depends on both the total degree and the number of variables.

Recognition drill

State the total degree and the degree in each variable:

Recipe: for total degree, sum exponents within each term and take the largest such sum; for degree in a specific variable, look at every term and take the largest exponent on that variable.

Common confusions

Closing

Multivariable polynomials carry three flavours of degree — total degree, and one per-variable degree for each variable. Total degree is the default whenever a problem says "degree." Per-variable degrees come in when you solve, factor, or slice with respect to one variable.

For the opener: 3x^2 y is one polynomial in two variables, with total degree 3, degree 2 in x, and degree 1 in y.