MatheramaMatherama
← Polynomials
Polynomials·Section 3·13 min read

Dividing Polynomials

Rational Expression§

A rational expression is a fraction in which both the numerator and the denominator are polynomials. The numerator represents the dividend, and the denominator represents the divisor. The degree of the polynomial in the numerator can be less than, equal to, or greater than the degree of the polynomial in the denominator. Rational expressions are analogous to rational numbers, where the numerator and denominator are integers.

Here are four examples of rational expressions:

  1. x2−4x−2\frac{x^2 - 4}{x - 2}

  2. 3x3+2x−7x2+x+1\frac{3x^3 + 2x - 7}{x^2 + x + 1}

  3. 5x−13x2−x+4\frac{5x - 1}{3x^2 - x + 4}

  4. x4−2x2+x−6x3−3x+2\frac{x^4 - 2x^2 + x - 6}{x^3 - 3x + 2}

Proper and Improper Rational Expressions§

A rational expression is classified as proper if the degree of the numerator polynomial is less than the degree of the denominator polynomial. Conversely, it is termed improper if the degree of the numerator is equal to or greater than the degree of the denominator.

Examples of each include:

Proper rational expression:

2x+1x2+3x+2\frac{2x + 1}{x^2 + 3x + 2}

(The degree of the numerator is 1, and the degree of the denominator is 2.)

Improper rational expression:

x3+4x2−x+7x2−5x+6\frac{x^3 + 4x^2 - x + 7}{x^2 - 5x + 6}

(The degree of the numerator is 3, and the degree of the denominator is 2.)

Euclidian Division of Polynomials§

Before we understand what the algorithm is, let us try to solve the following problem:

The Euclidean Division of Polynomials is an algorithmic process akin to the familiar division of integers. It states that for any two polynomials p(x)p(x) and d(x)d(x), where d(x)d(x) is not the zero polynomial and its degree is less than or equal to the degree of p(x)p(x), there exist unique polynomials q(x)q(x) and r(x)r(x) such that:

p(x)=q(x)d(x)+r(x)p(x) = q(x)d(x) + r(x)

Here, q(x)q(x) is known as the quotient polynomial and r(x)r(x) as the remainder polynomial, with the degree of r(x)r(x) strictly less than the degree of d(x)d(x). This relationship can also be written as a rational expression:

p(x)d(x)=q(x)+r(x)d(x)\frac{p(x)}{d(x)} = q(x) + \frac{r(x)}{d(x)}

This resembles the division of integers, where you divide a number to get a quotient and a remainder.

In the context of polynomials:

  • p(x)p(x) is referred to as the dividend.
  • d(x)d(x) is the divisor.
  • The outcome of the division q(x)q(x) is the quotient.
  • r(x)r(x) is the remainder.

The degree of the quotient polynomial q(x)q(x) is the difference between the degrees of p(x)p(x) and d(x)d(x). Specifically, if the degree of p(x)p(x) is pp and the degree of d(x)d(x) is dd, then:

δ(q)=p−d\delta(q) = p - d δ(r)∈{0,1,2,…,d−1}\delta(r) \in \{0, 1, 2, \ldots, d - 1\}

The division can be performed using long division, which is methodical and mirrors integer division, or synthetic division, which is a shortcut applicable when the divisor d(x)d(x) is a monic linear polynomial. The Euclidean Division algorithm is particularly useful for finding roots, factoring polynomials, and simplifying rational expressions.

Long Division of Polynomials§

The long division of polynomials is a systematic method that mirrors the traditional long division of integers. Here's the step-by-step algorithm:

  1. Arrange Polynomials: Start by writing both the dividend p(x)p(x) and the divisor d(x)d(x) in descending order of their degrees. If there's any missing term in the polynomial sequence, introduce that term with a zero coefficient to maintain order.

  2. Divide Leading Terms: Take the leading term (the term with the highest power of xx) of the dividend and divide it by the leading term of the divisor. This gives you the first term of the quotient.

  3. Multiply and Subtract: Multiply the entire divisor by this first term of the quotient. Then, subtract this result from the dividend, which will give you a new polynomial, often referred to as the remainder.

  4. New Dividend: This remainder becomes the new dividend. Now, take its leading term and divide it by the leading term of the original divisor to get the next term of the quotient.

  5. Iterate the Process: Repeat the multiplication and subtraction steps with the new dividend and the divisor. Continue this process, each time appending the next term to the quotient, until you obtain a remainder with a degree that is less than the degree of the divisor.

  6. Conclude with Remainder: The process stops when you can no longer divide because the remainder's degree is lower than the divisor's. This remainder is then written over the divisor to complete the expression of the result.

Let us understand with a few examples how it works.

Synthetic Method of division of Polynomials:§

This is faster and requires lesser numerical calculations than long division method. Also instead of subtractions we are only dealing with the addition, so synthetic division is less prone to sign errors.

We can have two cases based on whether the divisor is a monic polynomial or not.

  1. Divisor is a monic polynomial.

    Let us explain this method with an example. Suppose we want to divide 2x5+4x3+3x−12x^5 + 4x^3 + 3x - 1 by x2−4x+6x^2 - 4x + 6.

    Step 1: Put the terms of divisor and dividend in descending order of degrees. The missing terms are replaced by terms having zero coefficients. Multiply the divisor with -1 (Negate all coefficients of divisor)

    −1(x2−4x+6)=−x2+4x−6-1(x^2 - 4x + 6) = -x^2 + 4x - 6

    Step 2: Neglect the leading coefficient and put the rest of coefficient in diagonal (let us call this diagonal the "divisor diagonal") as shown in the example. Also put the coefficients of dividend in a row (let us call this row as "dividend row") as shown in the example.

    Synthetic Division explantion of terms

    Step 3: Leave the space of number of rows equal to the number of elements in divisor diagonal(which is equal to degree of divisor) Copy down the first element of dividend row directly to the final result row.

    step 3

    Step 4: Now multiply the first element of final result row with the elements of divisor diagonal row. You will obtain a diagonal whose lower left most element is in the second column of dividend coefficients.

    Step 4

    Step 5: Add the elements of second column and put the sum in result row.

    Step 5

    Step 6: Multiply the second element of the final result row to the divisor diagonal and put the obtained diagonal below dividend row that lower left most element now is in the third column.

    Step 6

    Step 7: Now add the elements of the third column.

    Step 7

    Step 8: Now continue with this process in Step 6 and Step 7. Stop as soon as the last column is filled with upper right most element of diagonal and add the last column elements to get the last element of the final result row.

    Step 8

    Step 9: If the degree of the divisor is nn , then the last nn elements of the final result row are the coefficients of the remainder and the remaining elements are the coefficients of the quotient.

    Step 9

    So in the example the remainder is finally 51x+28751x + 287 and the quotient is 2x3+8x2+24x+482x^3 + 8x^2 + 24x + 48. Thus,

    2x5+4x3+3x−1x2−4x+6=2x3+8x2+24x+48+51x+287x2−4x+6\frac{2x^5 + 4x^3 + 3x - 1}{x^2 - 4x + 6} = 2x^3 + 8x^2 + 24x + 48 + \frac{51x + 287}{x^2 - 4x + 6}

    Let us take more examples which will make process clearer.

  2. Divisor is a non-monic polynomial

    When the divisor is a non-monic polynomial the synthetic division is modified a little bit. We first take the leading coefficient of divisor, let’s say kk, and what is left is a monic polynomial. We divide the dividend with this monic polynomial with the usual method. We obtain the quotient q(x)q(x) and r(x)r(x).

    Then q(x)k\frac{q(x)}{k} is the required quotient and r(x)r(x) is the remainder (remainder is the same).

    Why?

    Suppose we want to divide polynomial p(x)p(x) by non-monic polynomial d(x)d(x). Let us make d(x)d(x) monic by taking the leading coefficient kk common. Let’s say that the new monic divisor is d′(x)=d(x)kd'(x) = \frac{d(x)}{k}. Then by Euclid’s Division Lemma, when we divide p(x)p(x) by d′(x)d'(x), there exists polynomials q(x)q(x) and r(x)r(x) such that

    p(x)=q(x)d′(x)+r(x).....[1]p(x) = q(x)d'(x) + r(x) \quad .....[1]

    Suppose we rewrite [1] as

    p(x)=(q(x)k)(kd′(x))+r(x).....[2]p(x) = \left( \frac{q(x)}{k} \right)(kd'(x)) + r(x) \quad .....[2]

    Which is same as p(x)=(q(x)k)d(x)+r(x)p(x) = \left( \frac{q(x)}{k} \right)d(x) + r(x) (Since, d(x)=kd′(x)d(x) = kd'(x)) .....[3]

    Now [3] says that if we divide p(x)p(x) by d(x)d(x) then the quotient is q(x)k\frac{q(x)}{k} and the remainder is r(x)r(x).

    We may thus write the following theorem:

    "When a polynomial P(x)P(x) is divided by a non-zero polynomial d(x)d(x) if q(x)q(x) is the quotient and r(x)r(x) is the remainder, then when P(x)P(x) is divided by kd(x)kd(x), the remainder remains r(x)r(x) but the quotient becomes q(x)k\frac{q(x)}{k}."

Section 3 of 10 · Polynomials

Mark this section complete when you have worked through its proofs.