Polynomials & Factoring

Degree of a Polynomial

The degree of a polynomial is its largest exponent after you simplify, and with several variables it is the largest sum of exponents inside a single term. For 5x4−3x+25x^4 - 3x + 2 the degree is 44.

deg⁡P=max⁡ (e1+e2+⋯+ek) over the nonzero terms c x1e1x2e2⋯xkek\deg P = \max\,(e_1+e_2+\cdots+e_k) \text{ over the nonzero terms } c\,x_1^{e_1}x_2^{e_2}\cdots x_k^{e_k}

Degree is the first label a polynomial receives, and it quietly controls how many roots there are, how the graph bends and how a division or factoring problem will unfold. Below are the traps that cost points (hidden degrees, parameters, zero) and quick checks that catch them.

How do you find the degree of a polynomial?

Every term has the shape axnax^n, and its degree is nn. A bare number is ax0ax^0, so it has degree 00, and xx alone is x1x^1. The degree of the whole polynomial is the biggest term degree among terms whose coefficient is not zero.

  1. Simplify: expand products and combine like terms.
  2. Write down the degree of each remaining term.
  3. Take the largest.

Try it on 3x2−7x5+4x−13x^2 - 7x^5 + 4x - 1. The term degrees are 22, 55, 11 and 00, so the degree is 55. In standard form the polynomial reads

−7x5+3x2+4x−1-7x^5 + 3x^2 + 4x - 1

and the leading term is −7x5-7x^5, even though it was not written first. Terms in scrambled order are a favorite way to hide the answer.

The coefficients never vote. The reason is one clean idea: degree measures growth. For large xx, a polynomial behaves like its leading term, p(x)≈anxnp(x) \approx a_n x^n, so 0.001x30.001x^3 eventually overtakes 1,000,000x21{,}000{,}000x^2. Only the exponent decides who wins.

Quick check

What is the degree of 23x4−50x3+1000x\tfrac{2}{3}x^4 - 50x^3 + 1000x?

Degree of a polynomial with two or more variables

With several variables, the degree of a term is the sum of the exponents on all its variables. The reason is that x2y3x^2y^3 is x⋅x⋅y⋅y⋅yx\cdot x\cdot y\cdot y\cdot y, five variable factors multiplied, and degree counts those factors. It is also why area (xyxy) is degree 22 and volume (xyzxyz) is degree 33.

Find the degree of

4x2y3−6xy4+x3y2z+94x^2y^3 - 6xy^4 + x^3y^2z + 9

The term degrees are 2+3=52+3=5, then 1+4=51+4=5, then 3+2+1=63+2+1=6 (an unwritten exponent is 11), then 00 for the constant. The largest is 66, so the polynomial has degree 66.

Total degree versus degree in one variable

The degree in xx looks only at exponents of xx. In the polynomial above that is 33, while the total degree is 66. If a question says "degree in yy", ignore every other variable.

The most common slip is grabbing the single biggest exponent (here the 44 in y4y^4) instead of adding within a term. Another is treating letters like aa and bb as constants when the problem says they are variables, so read which letters the question treats as variables. Products of binomials in two variables, such as (x+2y)(3x−y)(x+2y)(3x-y), expand with the FOIL method into terms that are all degree 22.

Why simplify before finding the degree of a polynomial?

Steps showing (2x+1)³ − 8x³ expanding and cancelling to 12x² + 6x + 1 of degree 2
Expanding (2x+1)³ − 8x³ cancels the x³ terms, leaving a polynomial of degree 2.

A polynomial in unexpanded form can lie about its degree. Take

(2x+1)3−8x3(2x+1)^3 - 8x^3

It looks cubic. Expanding the cube with the binomial theorem (coefficients 1,3,3,11, 3, 3, 1) gives 8x3+12x2+6x+18x^3 + 12x^2 + 6x + 1, and the subtraction cancels the leading term:

(2x+1)3−8x3=(8x3+12x2+6x+1)−8x3=12x2+6x+1(2x+1)^3 - 8x^3 = (8x^3 + 12x^2 + 6x + 1) - 8x^3 = 12x^2 + 6x + 1

The degree is 22, not 33. Cancellation can only happen in sums and differences. In a product the leading terms multiply and never vanish, so when multiplying polynomials you can read the degree without expanding: (x2+3)(x3−1)(x^2+3)(x^3-1) has degree 2+3=52+3=5 immediately.

A fast sanity check is to plug in a big number. At x=1000x = 1000, the expression gives 20013−8,000,000,000=12,006,0012001^3 - 8{,}000{,}000{,}000 = 12{,}006{,}001. That is about 12×10612\times 10^6, the size of x2x^2, not the 10910^9 you would expect from a cubic. A degree nn polynomial at x=1000x = 1000 lands near 103n10^{3n}, so the number of digits in the output tells you the degree.

What is the degree of a constant or the zero polynomial?

A nonzero constant such as 77 has degree 00, because 7=7x07 = 7x^0. The zero polynomial is the exception: 0=0xn0 = 0x^n for every nn, so no exponent can be chosen, and its degree is undefined. Some texts write −∞-\infty, which keeps the rule deg⁡(pq)=deg⁡p+deg⁡q\deg(pq) = \deg p + \deg q working, since adding anything to −∞-\infty stays at −∞-\infty.

There is a practical reason too. The zero polynomial has every number as a root, which would break the statement that a degree nn polynomial has at most nn roots. No finite nn could be correct.

The zero polynomial often appears by accident. When you subtract polynomials that are identical, such as (x2+5x)−(x2+5x)(x^2 + 5x) - (x^2 + 5x), every term cancels and nothing is left to take a degree of.

The same logic creates a trap with parameters. Consider

(k−2)x3+x(k-2)x^3 + x

For k≠2k \neq 2 the degree is 33. For k=2k = 2 the cubic term vanishes and the degree drops to 11. Whenever a coefficient contains a letter, ask which value would turn it to zero.

Which expressions are not polynomials and have no degree?

Degree is only defined for polynomials: sums of terms where each variable carries a whole-number exponent. Three things disqualify an expression:

  • a variable in a denominator, as in 3x\frac{3}{x}, which is 3x−13x^{-1}
  • a variable under a radical, as in x\sqrt{x}, which is x1/2x^{1/2}
  • a variable in an exponent, as in 2x2^x

Awkward-looking numbers do not disqualify anything. x25\frac{x^2}{5} and 2 x2\sqrt{2}\,x^2 are both polynomials of degree 22, because the strange part sits in the coefficient, and coefficients can be any real number.

A rational expression can be rescued by cancelling. The expression x2+xx\frac{x^2 + x}{x} is not a polynomial as written, but it equals x+1x + 1 wherever it is defined, so after cancelling you are looking at a degree 11 polynomial. Be careful, though: the original still excludes x=0x = 0.

How does the degree change when polynomials are combined?

These rules let you predict the degree of a result before doing any algebra.

Operation Degree of the result
p+qp + q at most max⁡(deg⁡p,deg⁡q)\max(\deg p, \deg q), lower if leading terms cancel
p⋅qp \cdot q deg⁡p+deg⁡q\deg p + \deg q
p(q(x))p(q(x)) deg⁡p⋅deg⁡q\deg p \cdot \deg q
quotient of p÷dp \div d deg⁡p−deg⁡d\deg p - \deg d
remainder of p÷dp \div d less than deg⁡d\deg d

The product rule comes from the leading terms: axm⋅bxn=abxm+nax^m \cdot bx^n = abx^{m+n}, and ab≠0ab \neq 0 whenever aa and bb are nonzero real numbers. That last condition is where the rule can fail. In arithmetic mod 66, (2x+1)(3x+1)=6x2+5x+1(2x+1)(3x+1) = 6x^2 + 5x + 1 reduces to 5x+15x + 1, so two degree 11 polynomials multiply to degree 11. With ordinary real coefficients this cannot happen.

Remainders are always lower

Dividing by a linear factor x−cx - c leaves a remainder of degree 00, a plain number. That is exactly what the remainder theorem evaluates.

The division rows are the engine behind polynomial long division: you keep subtracting multiples of the divisor until what is left has a smaller degree than the divisor, and then you must stop.

Quick check

pp has degree 33 and qq has degree 55. What is the degree of p(q(x))p(q(x))?

What does the degree of a polynomial tell you about its graph?

A polynomial of degree nn has at most nn real roots, and exactly nn complex roots counting multiplicity. The reason is that each root rr lets you pull out a factor (x−r)(x - r), as the factor theorem states, and each factor uses up one degree. When you are hunting for roots of an integer polynomial, the rational root theorem supplies the candidates, and the degree tells you when to stop looking.

The graph has at most n−1n - 1 turning points. End behavior follows from the leading term:

  • Even degree: both ends point the same way (up if the leading coefficient is positive).
  • Odd degree: the ends point opposite ways, so the graph must cross the xx-axis at least once.

The standard names are linear (11), quadratic (22), cubic (33), quartic (44) and quintic (55).

Try this: Factor f(x)=x3−4xf(x) = x^3 - 4x completely and list its roots. Then count how many turning points the graph needs to pass through all of them. The degree allows at most 22.

You should find roots at 00, 22 and −2-2, and the graph uses both of its allowed turning points.

How can you find the degree from a table of values?

Difference pyramid for x³ outputs 0, 1, 8, 27, 64 becoming constant 6 after three rounds
For x³ at x = 0 to 4, the third differences are constant, so the degree is 3.

When the inputs are evenly spaced, you can get the degree from the outputs alone. The idea is that taking differences lowers the degree by one, because (x+1)n−xn(x+1)^n - x^n has degree n−1n - 1. Repeat the differences, and a degree nn polynomial reaches a constant row after exactly nn rounds.

Try f(x)=x3f(x) = x^3 at x=0,1,2,3,4x = 0, 1, 2, 3, 4. The outputs are 0,1,8,27,640, 1, 8, 27, 64.

first differences:1, 7, 19, 37second differences:6, 12, 18third differences:6, 6\begin{aligned} \text{first differences:}&\quad 1,\ 7,\ 19,\ 37 \\ \text{second differences:}&\quad 6,\ 12,\ 18 \\ \text{third differences:}&\quad 6,\ 6 \end{aligned}

The third differences are constant, so the degree is 33. The constant itself equals n! ann!\,a_n, here 3!⋅1=63! \cdot 1 = 6, which also gives you the leading coefficient.

Constant first differences mean an arithmetic sequence, and that is a line, which you can write in slope-intercept form. Constant second differences mean a quadratic, the pattern in free-fall height measured at equal time steps. Measured data with noise will not produce exact constants, so use this on exact tables, not raw measurements.

Quick check

A polynomial has values 1,3,9,19,331, 3, 9, 19, 33 at x=0,1,2,3,4x=0,1,2,3,4. What is its degree?

Practice problems

0 of 5 solved

  1. Find the degree of 6x3−2x7+x−56x^3 - 2x^7 + x - 5.

  2. Find the degree of 5x2y4−3x3y2+8xy5x^2y^4 - 3x^3y^2 + 8xy.

  3. Find the degree of (x2+3)(x3−1)(x^2+3)(x^3-1).

  4. For what value of kk does (k−4)x3+2x2−5(k-4)x^3 + 2x^2 - 5 have degree 22?

  5. Find the degree of (3x2−x+1)2−9x4(3x^2 - x + 1)^2 - 9x^4.

Common questions

What is the degree of a polynomial?

It is the highest degree among its terms, after like terms are combined. For one variable that is the largest exponent. For several variables, add the exponents inside each term first, then take the largest sum.

What is the degree of a constant such as 7?

A nonzero constant has degree 00, because 7=7x07 = 7x^0. Only the zero polynomial is different: its degree is left undefined.

What is the degree of the zero polynomial?

It is undefined. Since 0=0xn0 = 0x^n for every nn, no exponent can be singled out. Some books assign −∞-\infty so that the rule deg⁡(pq)=deg⁡p+deg⁡q\deg(pq)=\deg p+\deg q still holds.

Does the coefficient affect the degree?

No. The degree depends only on exponents of terms whose coefficient is not zero. A coefficient matters only if it equals zero, because that removes the term entirely.

Can a polynomial have a negative or fractional degree?

No. A polynomial's exponents are whole numbers, so its degree is a whole number 0,1,2,…0, 1, 2, \dots. An expression with x−1x^{-1} or x1/2x^{1/2} is not a polynomial at all.

How does the degree relate to the number of roots?

A polynomial of degree nn has at most nn real roots, and exactly nn complex roots when each is counted with its multiplicity.

Up next