Synthetic division

Synthetic Division is the debut album by Crossbreed.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 8 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Synthetic Division is the debut album by Crossbreed. The album had three singles: "Underlined", "Seasons", and "Breathe".

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 Ruffini's rule) , but the method can be generalized to division by any polynomial.

The advantages of synthetic division are that it allows one to calculate without writing variables, it uses few calculations, and it takes significantly less space on paper than long division. Also, the subtractions in long division are converted to additions by switching the signs at the very beginning, helping to prevent sign errors.

The numerator can be written as p(x) = x^3 - 12x^2 + 0x - 42 . The zero of the denominator g(x) is 3 .

The coefficients of p(x) are arranged as follows, with the zero of g(x) on the left: \begin{array}{cc} \begin{array}{r} \\ 3 \\ \end{array} & \begin{array}{|rrrr} \ 1 & -12 & 0 & -42 \\ & & & \\ \hline \end{array} \end{array} The after the bar is "dropped" to the last row. \begin{array}{cc} \begin{array}{r} \\ 3 \\ \\ \end{array} & \begin{array}{|rrrr} \color{blue}1 & -12 & 0 & -42 \\ & & & \\ \hline \color{blue}1 & & & \\ \end{array} \end{array} The is multiplied by the before the bar and placed in the . \begin{array}{cc} \begin{array}{r} \\ \color{grey}3 \\ \\ \end{array} & \begin{array}{|rrrr} 1 & -12 & 0 & -42 \\ & \color{brown}3 & & \\ \hline \color{blue}1 & & & \\ \end{array} \end{array} An is performed in the next column. \begin{array}{cc} \begin{array}{c} \\ 3 \\ \\ \end{array} & \begin{array}{|rrrr} 1 & \color{green}-12 & 0 & -42 \\ & \color{green}3 & & \\ \hline 1 & \color{green}-9 & & \\ \end{array} \end{array} The previous two steps are repeated, and the following is obtained: \begin{array}{cc} \begin{array}{c} \\ 3 \\ \\ \end{array} & \begin{array}{|rrrr} 1 & -12 & 0 & -42 \\ & 3 & -27 & -81 \\ \hline 1 & -9 & -27 & -123 \end{array} \end{array} Here, the last term −123 is the remainder while the rest correspond to the coefficients of the quotient. The terms are written with increasing degree from right to left beginning with degree zero for both the remainder and the quotient. \begin{array}{rrr|r} 1x^2 & -9x & -27 & -123 \end{array} Hence the quotient and remainder are: \begin{align} q(x) &= x^2 - 9x - 27 \\ r(x) &= -123 \end{align} so: \frac{x^3 - 12x^2 - 42}{x - 3} = x^2 - 9x - 27 - \frac{123}{x - 3}.

Evaluating polynomials by the remainder theorem

The above form of synthetic division is useful in the context of the polynomial remainder theorem for evaluating univariate polynomials. To summarize, the value of p(x) at a is equal to the remainder of the division of p(x) by x-a . The advantage of calculating the value this way is that it requires just over half as many multiplication steps as naive evaluation.

An alternative evaluation strategy is Horner's method. \frac{x^3 - 12x^2 - 42}{x^2 + x - 3} = x - 13 + \frac{16x - 81}{x^2 + x - 3} h(x) = \frac{g(x)}{a} then using synthetic division with h(x) as the divisor, and then dividing the quotient by a to get the quotient of the original division (the remainder stays the same). But this often produces unsightly fractions which get removed later and is thus more prone to error.

It is possible to do it without first reducing the coefficients of g(x) . As can be observed by first performing long division with such a non-monic divisor, the coefficients of f(x) are divided by the leading coefficient of g(x) after "dropping", and before multiplying. Let's illustrate by performing the following division: \frac{6x^3+5x^2-7}{3x^2-2x-1} A slightly modified table is used: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & & \\ & & & \\ \hline & & & \\ & & & \\ \end{array} \end{array} Note the extra row at the bottom.

This is used to write values found by dividing the "dropped" values by the leading coefficient of g(x) (in this case, indicated by the /3; note that, unlike the rest of the coefficients of g(x) , the sign of this number is not changed). Next, the first coefficient of f(x) is dropped as usual: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & & \\ & & & \\ \hline 6 & & & \\ & & & \\ \end{array} \end{array} and then the dropped value is divided by 3 and placed in the row below: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & & \\ & & & \\ \hline 6 & & & \\ 2 & & & \\ \end{array} \end{array} Next, the new (divided) value is used to fill the top rows with multiples of 2 and 1, as in the expanded technique: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & 2 & \\ & 4 & & \\ \hline 6 & & & \\ 2 & & & \\ \end{array} \end{array} The 5 is dropped next, with the obligatory adding of the 4 below it, and the answer is divided again: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & 2 & \\ & 4 & & \\ \hline 6 & 9 & & \\ 2 & 3 & & \\ \end{array} \end{array} Then the 3 is used to fill the top rows: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & 2 & 3 \\ & 4 & 6 & \\ \hline 6 & 9 & & \\ 2 & 3 & & \\ \end{array} \end{array} At this point, if, after getting the third sum, we were to try and use it to fill the top rows, we would "fall off" the right side, thus the third sum is the first coefficient of the remainder, as in regular synthetic division.

But the values of the remainder are not divided by the leading coefficient of the divisor: \begin{array}{cc} \begin{array}{rrr} \\ &1& \\ 2&& \\ \\&&/3 \\ \end{array} \begin{array}{|rrrr} 6 & 5 & 0 & -7 \\ & & 2 & 3 \\ & 4 & 6 & \\ \hline 6 & 9 & 8 & -4 \\ 2 & 3 & & \\ \end{array} \end{array} Now we can read off the coefficients of the answer. As in expanded synthetic division, the last two values (2 is the degree of the divisor) are the coefficients of the remainder, and the remaining values are the coefficients of the quotient: \begin{array}{rr|rr} 2x & +3 & 8x & -4 \end{array} and the result is \frac{6x^3+5x^2-7}{3x^2-2x-1} = 2x + 3 + \frac{8x - 4}{3x^2-2x-1} def expanded_synthetic_division(dividend, divisor): """Fast polynomial division by using Expanded Synthetic Division.

Also works with non-monic polynomials. Dividend and divisor are both polynomials, which are here simply lists of coefficients.

E.g.: x**2 + 3*x + 5 will be represented as [1, 3, 5] """ out = list(dividend) # Copy the dividend normalizer = divisor[0] for i in range(len(dividend) - len(divisor) + 1): # For general polynomial division (when polynomials are non-monic), # we need to normalize by dividing the coefficient with the divisor's first coefficient out[i] /= normalizer coef = out[i] if coef != 0: # Useless to multiply if coef is 0 # In synthetic division, we always skip the first coefficient of the divisor, # because it is only used to normalize the dividend coefficients for j in range(1, len(divisor)): out[i + j] += -divisor[j] * coef # The resulting out contains both the quotient and the remainder, # the remainder being the size of the divisor (the remainder # has necessarily the same degree as the divisor since it is # what we couldn't divide from the dividend), so we compute the index # where this separation is, and return the quotient and remainder. separator = 1 - len(divisor) return out[:separator], out[separator:] # Return quotient, remainder.

See also

Euclidean domain Greatest common divisor of two polynomials Gröbner basis Horner scheme Polynomial remainder theorem Ruffini's rule

Text derived from https://en.wikipedia.org/w/index.php?oldid=1358695046 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

3 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.