In mathematics, Ruffini's rule is a method for computation of the Euclidean division of a polynomial by a binomial of the form x – r. It was described by Paolo Ruffini in 1809.[1] The rule is a special case of synthetic division in which the divisor is a linear factor.
The rule establishes a method for dividing the polynomial:
n+a | |
P(x)=a | |
n-1 |
xn-1+ … +a1x+a0
Q(x)=x-r
R(x)=bn-1xn-1+bn-2xn-2+ … +b1x+b0.
The algorithm is in fact the long division of P(x) by Q(x).
To divide P(x) by Q(x):
\begin{array}{c|cccc|c} &an&an-1&...&a1&a0\\ r&&&&&\\ \hline &&&&&\\ \end{array}
\begin{array}{c|cccc|c} &an&an-1&...&a1&a0\\ r&&&&&\\ \hline &an&&&&\\ &=bn-1&&&& \end{array}
\begin{array}{c|cccc|c} &an&an-1&...&a1&a0\\ r&&bn-1 ⋅ r&&&\\ \hline &an&&&&\\ &=bn-1&&&& \end{array}
\begin{array}{c|cccc|c} &an&an-1&...&a1&a0\\ r&&bn-1 ⋅ r&&&\\ \hline &an&bn-1 ⋅ r+an-1&&&\\ &=bn-1&=bn-2&&& \end{array}
\begin{array}{c|cccc|c} &an&an-1&...&a1&a0\\ r&&bn-1 ⋅ r&...&b1 ⋅ r&b0 ⋅ r\\ \hline &an&bn-1 ⋅ r+an-1&...&b1 ⋅ r+a1&a0+b0 ⋅ r\\ &=bn-1&=bn-2&...&=b0&=s\\ \end{array}
The b values are the coefficients of the result (R(x)) polynomial, the degree of which is one less than that of P(x). The final value obtained, s, is the remainder. The polynomial remainder theorem asserts that the remainder is equal to P(r), the value of the polynomial at r.
Here is an example of polynomial division as described above.
Let:
P(x)=2x3+3x2-4
Q(x)=x+1.
P(x) will be divided by Q(x) using Ruffini's rule. The main problem is that Q(x) is not a binomial of the form x − r, but rather x + r. Q(x) must be rewritten as
Q(x)=x+1=x-(-1).
| 2 3 0 | -4 | | -1 | | ----|--------------------|------- | | | |
| 2 3 0 | -4 | | -1 | | ----|--------------------|------- | 2 | | |
| 2 3 0 | -4 | | -1 | -2 | ----|--------------------|------- | 2 | | |
| 2 3 0 | -4 | | -1 | -2 | ----|--------------------|------- | 2 1 | | |
| 2 3 0 | -4 | | -1 | -2 -1 | 1 ----|---------------------------- | 2 1 -1 | -3 |{result coefficients}|{remainder}
So, if original number = divisor × quotient + remainder, then
P(x)=Q(x)R(x)+s
R(x)=2x2+x-1
s=-3; ⇒ 2x3+3x2-4=(2x2+x-1)(x+1)-3
Ruffini's rule can be used when one needs the quotient of a polynomial by a binomial of the form
x-r.
A typical example, where one needs the quotient, is the factorization of a polynomial
p(x)
The remainder of the Euclidean division of
p(x)
q(x),
p(x)=q(x)(x-r).
This gives a (possibly partial) factorization of
p(x),
p(x)
q(x).
The fundamental theorem of algebra states that every polynomial of positive degree has at least one complex root. The above process shows the fundamental theorem of algebra implies that every polynomial can be factored as
p(x)=an(x-r1) … (x-rn),
r1,\ldots,rn
The method was invented by Paolo Ruffini, who took part in a competition organized by the Italian Scientific Society (of Forty). The challenge was to devise a method to find the roots of any polynomial. Five submissions were received. In 1804 Ruffini's was awarded first place and his method was published. He later published refinements of his work in 1807 and again in 1813.