HOME

TheInfoList



OR:

In
algebra Algebra () is one of the broad areas of mathematics. Roughly speaking, algebra is the study of mathematical symbols and the rules for manipulating these symbols in formulas; it is a unifying thread of almost all of mathematics. Elementary ...
, polynomial long division is an
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
for dividing a
polynomial In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An example ...
by another polynomial of the same or lower degree, a generalized version of the familiar arithmetic technique called
long division In arithmetic, long division is a standard division algorithm suitable for dividing multi-digit Hindu-Arabic numerals (Positional notation) that is simple enough to perform by hand. It breaks down a division problem into a series of easier steps ...
. It can be done easily by hand, because it separates an otherwise complex division problem into smaller ones. Sometimes using a shorthand version called
synthetic division In algebra, synthetic division is a method for manually performing Euclidean division of polynomials, with less writing and fewer calculations than long division. It is mostly taught for division by linear monic polynomials (known as the Ruffini ...
is faster, with less writing and fewer calculations. Another abbreviated method is polynomial short division (Blomqvist's method). Polynomial long division is an algorithm that implements the
Euclidean division of polynomials In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factor of both the two original polynomials. This concept is analogous to the greatest common ...
, which starting from two polynomials ''A'' (the ''dividend'') and ''B'' (the ''divisor'') produces, if ''B'' is not zero, a ''
quotient In arithmetic, a quotient (from lat, quotiens 'how many times', pronounced ) is a quantity produced by the division of two numbers. The quotient has widespread use throughout mathematics, and is commonly referred to as the integer part of a ...
'' ''Q'' and a ''remainder'' ''R'' such that :''A'' = ''BQ'' + ''R'', and either ''R'' = 0 or the degree of ''R'' is lower than the degree of ''B''. These conditions uniquely define ''Q'' and ''R'', which means that ''Q'' and ''R'' do not depend on the method used to compute them. The result ''R'' = 0 occurs
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is b ...
the polynomial ''A'' has ''B'' as a
factor Factor, a Latin word meaning "who/which acts", may refer to: Commerce * Factor (agent), a person who acts for, notably a mercantile and colonial agent * Factor (Scotland), a person or firm managing a Scottish estate * Factors of production, suc ...
. Thus long division is a means for testing whether one polynomial has another as a factor, and, if it does, for factoring it out. For example, if a
root In vascular plants, the roots are the organs of a plant that are modified to provide anchorage for the plant and take in water and nutrients into the plant body, which allows plants to grow taller and faster. They are most often below the su ...
''r'' of ''A'' is known, it can be factored out by dividing ''A'' by (''x'' – ''r'').


Example


Polynomial long division

Find the quotient and the remainder of the division of x^3 - 2x^2 - 4, the ''dividend'', by x-3, the ''divisor''. The dividend is first rewritten like this: :x^3 - 2x^2 + 0x - 4. The quotient and remainder can then be determined as follows:
  1. Divide the first term of the dividend by the highest term of the divisor (meaning the one with the highest power of ''x'', which in this case is ''x''). Place the result above the bar (''x''3 ÷ ''x'' = ''x''2). : \begin x^2\\ x-3\ \overline \end
  2. Multiply the divisor by the result just obtained (the first term of the eventual quotient). Write the result under the first two terms of the dividend (). : \begin x^2\\ x-3\ \overline\\ x^3 - 3x^2 \end
  3. Subtract the product just obtained from the appropriate terms of the original dividend (being careful that subtracting something having a minus sign is equivalent to adding something having a plus sign), and write the result underneath (). Then, "bring down" the next term from the dividend. : \begin x^2\\ x-3\ \overline\\ \underline\\ + x^2 + 0x \end
  4. Repeat the previous three steps, except this time use the two terms that have just been written as the dividend. : \begin x^2 + x \\ x-3\ \overline\\ \underline\\ +x^2 + 0x \\ \underline\\ +3x - 4\\ \end
  5. Repeat step 4. This time, there is nothing to "bring down". : \begin x^2 + x + 3\\ x-3\ \overline\\ \underline\\ +x^2 + 0x \\ \underline\\ +3x - 4\\ \underline\\ +5 \end
The polynomial above the bar is the quotient ''q''(''x''), and the number left over (5) is the remainder ''r''(''x''). : = (x-3)\,\underbrace_ +\underbrace_ The
long division In arithmetic, long division is a standard division algorithm suitable for dividing multi-digit Hindu-Arabic numerals (Positional notation) that is simple enough to perform by hand. It breaks down a division problem into a series of easier steps ...
algorithm for arithmetic is very similar to the above algorithm, in which the variable ''x'' is replaced (in base 10) by the specific number 10.


Polynomial short division

Blomqvist's method is an abbreviated version of the long division above. This pen-and-paper method uses the same algorithm as polynomial long division, but
mental calculation Mental calculation consists of arithmetical calculations using only the human brain, with no help from any supplies (such as pencil and paper) or devices such as a calculator. People may use mental calculation when computing tools are not availab ...
is used to determine remainders. This requires less writing, and can therefore be a faster method once mastered. The division is at first written in a similar way as long multiplication with the dividend at the top, and the divisor below it. The quotient is to be written below the bar from left to right. :\begin \qquad \qquad x^3-2x^2+-4 \\ \underline\end Divide the first term of the dividend by the highest term of the divisor (''x''3 ÷ ''x'' = ''x''2). Place the result below the bar. ''x''3 has been divided leaving no remainder, and can therefore be marked as used with a backslash. The result ''x''2 is then multiplied by the second term in the divisor −3 = −3''x''2. Determine the partial remainder by subtracting −2''x''2 − (−3''x''2) = ''x''2. Mark −2''x''2 as used and place the new remainder ''x''2 above it. :\begin \qquad x^2 \\ \qquad \quad \bcancel+\bcancel+-4 \\ \underline\\x^2 \qquad \qquad \end Divide the highest term of the remainder by the highest term of the divisor (''x''2 ÷ ''x'' = ''x''). Place the result (+x) below the bar. ''x''2 has been divided leaving no remainder, and can therefore be marked as used. The result ''x'' is then multiplied by the second term in the divisor −3 = −3''x''. Determine the partial remainder by subtracting 0''x'' − (−3''x'') = 3''x''. Mark 0''x'' as used and place the new remainder 3''x'' above it. :\begin \qquad \qquad \quad\bcancel \quad3x\\ \qquad \quad \bcancel+\bcancel+\bcancel-4 \\ \underline\\x^2 +x \qquad \end Divide the highest term of the remainder by the highest term of the divisor (3x ÷ ''x'' = 3). Place the result (+3) below the bar. 3x has been divided leaving no remainder, and can therefore be marked as used. The result 3 is then multiplied by the second term in the divisor −3 = −9. Determine the partial remainder by subtracting −4 − (−9) = 5. Mark −4 as used and place the new remainder 5 above it. :\begin \quad \qquad \qquad \qquad\bcancel \quad \bcancel \quad5\\ \qquad \quad \bcancel+\bcancel+\bcancel\bcancel \\ \underline\\ x^2 +x +3\qquad \end The polynomial below the bar is the quotient ''q''(''x''), and the number left over (5) is the remainder ''r''(''x'').


Pseudocode

The algorithm can be represented in pseudocode as follows, where +, −, and × represent polynomial arithmetic, and / represents simple division of two terms: function n / d is require d ≠ 0 q ← 0 r ← n // At each step n = d × q + r while r ≠ 0 and degree(r) ≥ degree(d) do t ← lead(r) / lead(d) // Divide the leading terms q ← q + t r ← r − t × d return (q, r) Note that this works equally well when degree(''n'') < degree(''d''); in that case the result is just the trivial (0, ''n''). This algorithm describes exactly the above paper and pencil method: is written on the left of the ")"; is written, term after term, above the horizontal line, the last term being the value of ; the region under the horizontal line is used to compute and write down the successive values of .


Euclidean division

For every pair of polynomials (''A'', ''B'') such that ''B'' ≠ 0, polynomial division provides a ''quotient'' ''Q'' and a ''remainder'' ''R'' such that :A=BQ+R, and either ''R''=0 or degree(''R'') < degree(''B''). Moreover (''Q'', ''R'') is the unique pair of polynomials having this property. The process of getting the uniquely defined polynomials ''Q'' and ''R'' from ''A'' and ''B'' is called ''Euclidean division'' (sometimes ''division transformation''). Polynomial long division is thus an
algorithm In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
for Euclidean division.


Applications


Factoring polynomials

Sometimes one or more roots of a polynomial are known, perhaps having been found using the
rational root theorem In algebra, the rational root theorem (or rational root test, rational zero theorem, rational zero test or theorem) states a constraint on rational solutions of a polynomial equation :a_nx^n+a_x^+\cdots+a_0 = 0 with integer coefficients a_i\in ...
. If one root ''r'' of a polynomial ''P''(''x'') of degree ''n'' is known then polynomial long division can be used to factor ''P''(''x'') into the form where ''Q''(''x'') is a polynomial of degree ''n'' − 1. ''Q''(''x'') is simply the quotient obtained from the division process; since ''r'' is known to be a root of ''P''(''x''), it is known that the remainder must be zero. Likewise, if more than one root is known, a linear factor in one of them (''r'') can be divided out to obtain ''Q''(''x''), and then a linear term in another root, ''s'', can be divided out of ''Q''(''x''), etc. Alternatively, they can all be divided out at once: for example the linear factors and can be multiplied together to obtain the quadratic factor which can then be divided into the original polynomial ''P''(''x'') to obtain a quotient of degree In this way, sometimes all the roots of a polynomial of degree greater than four can be obtained, even though that is not always possible. For example, if the rational root theorem can be used to obtain a single (rational) root of a
quintic polynomial In algebra, a quintic function is a function of the form :g(x)=ax^5+bx^4+cx^3+dx^2+ex+f,\, where , , , , and are members of a field, typically the rational numbers, the real numbers or the complex numbers, and is nonzero. In other words, a ...
, it can be factored out to obtain a quartic (fourth degree) quotient; the explicit formula for the roots of a quartic polynomial can then be used to find the other four roots of the quintic.


Finding tangents to polynomial functions

Polynomial long division can be used to find the equation of the line that is
tangent In geometry, the tangent line (or simply tangent) to a plane curve at a given point is the straight line that "just touches" the curve at that point. Leibniz defined it as the line through a pair of infinitely close points on the curve. Mo ...
to the graph of the function defined by the polynomial ''P''(''x'') at a particular point Strickland-Constable, Charles, "A simple method for finding tangents to polynomial graphs", ''
Mathematical Gazette ''The Mathematical Gazette'' is an academic journal of mathematics education, published three times yearly, that publishes "articles about the teaching and learning of mathematics with a focus on the 15–20 age range and expositions of attractive ...
'' 89, November 2005: 466-467.
If ''R''(''x'') is the remainder of the division of ''P''(''x'') by then the equation of the tangent line at to the graph of the function is regardless of whether or not ''r'' is a root of the polynomial.


Example

Find the equation of the line that is tangent to the following curve at : : y = x^3 - 12x^2 - 42. Begin by dividing the polynomial by : : \begin x - 10\\ x^2-2x+1\ \overline\\ \underline \\ -10x^2 - x - 42\\ \underline\\ -21x - 32 \end The tangent line is .


Cyclic redundancy check

A cyclic redundancy check uses the remainder of polynomial division to detect errors in transmitted messages.


See also

*
Polynomial remainder theorem In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exampl ...
*
Synthetic division In algebra, synthetic division is a method for manually performing Euclidean division of polynomials, with less writing and fewer calculations than long division. It is mostly taught for division by linear monic polynomials (known as the Ruffini ...
, a more concise method of performing Euclidean polynomial division *
Ruffini's rule In mathematics, Ruffini's rule is a method for computation of the Euclidean division of a polynomial by a Binomial (polynomial), binomial of the form ''x – r''. It was described by Paolo Ruffini (mathematician), Paolo Ruffini in 1804. The rule i ...
* Euclidean domain *
Gröbner basis In mathematics, and more specifically in computer algebra, computational algebraic geometry, and computational commutative algebra, a Gröbner basis is a particular kind of generating set of an ideal in a polynomial ring over a field . A Gröbn ...
*
Greatest common divisor of two polynomials In algebra, the greatest common divisor (frequently abbreviated as GCD) of two polynomials is a polynomial, of the highest possible degree, that is a factorization, factor of both the two original polynomials. This concept is analogous to the gre ...


References

{{Polynomials Polynomials Computer algebra Division (mathematics)