Back to homeMathematics · 1st Bach. Science · Change subject
Start for free
BAC1 tech · Mathematics
Equations · Algebra

Ruffini's Rule

Dividing a high-degree polynomial by $x-a$ with the general algorithm works, but it is long and easy to get wrong. Ruffini's rule does exactly the same thing using only numbers: one row of coefficients, a value $a$, and a three-row table that gives the quotient and the remainder in seconds.

Before you start, make sure you know: Factorisation and Ruffini's rule (4th ESO)
Before you start, make sure you know: Division of polynomials (3rd ESO)

The mechanics of Ruffini's rule

Write the coefficients of $P(x)$ in a row (with a $0$ for any missing degrees) and the value $a$ separately. The first coefficient is brought down unchanged; each following result is obtained by multiplying the last number in the bottom row by $a$ and adding the coefficient in its column.

Ruffini's rule table for dividing 3x³ − 2x² + 5x − 4 by x − 2, showing products, sums, quotient 3x² + 4x + 13 and remainder 22. 3−25−4 2 6826 3413 22 quotient: 3x² + 4x + 13remainder: 22
Practice★☆☆Not started
Divide the polynomial $P(x) = 3x^3 - 2x^2 + 5x - 4$ by the binomial $x - 2$ using Ruffini's rule, and state the resulting quotient and remainder.

Divide the polynomial $P(x) = 3x^3 - 2x^2 + 5x - 4$ by the binomial $x - 2$ using Ruffini's rule, and state the resulting quotient and remainder.

Solve
Practice★☆☆Not started
Apply Ruffini's rule to divide $P(x) = x^4 - 16$ by $x + 2$. Write down clearly the quotient polynomial and the value of the remainder.

Apply Ruffini's rule to divide $P(x) = x^4 - 16$ by $x + 2$. Write down clearly the quotient polynomial and the value of the remainder.

Solve

Ruffini also evaluates and confirms roots

The last number in the Ruffini row is the remainder, and the remainder of dividing by $(x-a)$ is, by the remainder theorem, $P(a)$. So Ruffini can be used to calculate the numerical value of a polynomial without substituting term by term, and to check whether a number is a root: if the remainder is $0$, it is.

Practice★☆☆Not started
Check, using Ruffini's rule, whether $x = 3$ is a root of the polynomial $P(x) = x^3 - 4x^2 + x + 6$.

Check, using Ruffini's rule, whether $x = 3$ is a root of the polynomial $P(x) = x^3 - 4x^2 + x + 6$.

Solve
Practice★☆☆Not started
Calculate the numerical value of the polynomial $P(x) = -2x^3 + 5x^2 - 3x + 1$ for $x = -1$ by applying the Remainder Theorem using Ruffini's rule.

Calculate the numerical value of the polynomial $P(x) = -2x^3 + 5x^2 - 3x + 1$ for $x = -1$ by applying the Remainder Theorem using Ruffini's rule.

Solve
Practice★☆☆Not started
Determine, without performing the full division and using the Remainder Theorem or Ruffini's rule, whether the binomial $x + 1$ is a factor of the polynomial…

Determine, without performing the full division and using the Remainder Theorem or Ruffini's rule, whether the binomial $x + 1$ is a factor of the polynomial $P(x) = x^4 + x^3 - x^2 + x + 2$.

Solve

Factorising with a known root

When a root $a$ is already known, Ruffini gives the quotient directly: a factor of one degree lower. By repeating the process with the quotient (if another obvious root appears) you arrive at the complete factorisation.

Ruffini's rule table applied to evaluating a polynomial at a point to check whether it is a root through the remainder obtained. P(x) = x³ − 2x² − 5x + 6, with x=1 a known root Ruffini (a=1) → quotient x² − x − 6 = (x−3)(x+2) P(x) = (x−1)(x−3)(x+2)
Practice★☆☆Not started
Factorise the polynomial $P(x) = x^3 - 2x^2 - 5x + 6$ knowing in advance that $x = 1$ is one of its roots.

Factorise the polynomial $P(x) = x^3 - 2x^2 - 5x + 6$ knowing in advance that $x = 1$ is one of its roots.

Solve
Practice★★☆Not started
Fully factorise the polynomial $P(x) = 2x^3 + 3x^2 - 8x + 3$ by finding all its roots.

Fully factorise the polynomial $P(x) = 2x^3 + 3x^2 - 8x + 3$ by finding all its roots.

Solve

Unknown parameters from a Ruffini condition

When the polynomial has an undetermined coefficient, a divisibility condition ("it is divisible by $x-a$", "the remainder when dividing by $x-a$ is $c$") turns into an equation with Ruffini: the last number in the row must equal whatever the condition says.

Calculation of the parameter k using Ruffini, setting the remainder equal to zero so that the division is exact. P(x) = x³ − kx² + 3x − 2, divisible by x − 1 Ruffini (a=1): remainder = 2 − k 2 − k = 0 → k = 2
Practice★☆☆Not started
Determine the value of the constant $k$ so that the polynomial $P(x) = x^3 - kx^2 + 3x - 2$ is exactly divisible by $x - 1$.

Determine the value of the constant $k$ so that the polynomial $P(x) = x^3 - kx^2 + 3x - 2$ is exactly divisible by $x - 1$.

Solve
Practice★★☆Not started
Determine the values of the parameters $m$ and $n$ so that the polynomial $P(x) = x^4 - 3x^3 + mx + n$ is exactly divisible by $x - 2$ and, at the same time, gives a…

Determine the values of the parameters $m$ and $n$ so that the polynomial $P(x) = x^4 - 3x^3 + mx + n$ is exactly divisible by $x - 2$ and, at the same time, gives a remainder of $4$ when divided by $x + 1$.

Solve
Practice★★★Not started
Find the values of $a$ and $b$ so that the polynomial $P(x) = x^4 + ax^3 + bx^2 - 12x + 4$ is divisible by $(x - 2)^2$.

Find the values of $a$ and $b$ so that the polynomial $P(x) = x^4 + ax^3 + bx^2 - 12x + 4$ is divisible by $(x - 2)^2$.

Solve

Ruffini in modelling problems

Volumes, profits and trajectories are expressed as polynomials in which it is useful to find factors: a volume that is a product of dimensions, or the moments at which a profit passes through zero.

Relationship between the volume of a box and the product of its height and the area of its base through polynomial division. V(x) = (x−1)·A(x) · height x−1 Ruffini divides V(x) by (x−1)and gives A(x)
Practice★★☆Not started
The volume of a box in the shape of a right rectangular prism is given by the polynomial $V(x) = x^3 + 5x^2 + 2x - 8$. If the height of the box is known to be $x - 1$,…

The volume of a box in the shape of a right rectangular prism is given by the polynomial $V(x) = x^3 + 5x^2 + 2x - 8$. If the height of the box is known to be $x - 1$, determine the polynomial representing the base area $A(x)$.

A(x) = ? x - 1 V(x) = x³ + 5x² + 2x - 8
Solve
Practice★★☆Not started
The profits of a company, in thousands of euros, are modelled during its first years of operation by the polynomial $B(x) = -x^3 + 10x^2 - 31x + 30$, where $x$…

The profits of a company, in thousands of euros, are modelled during its first years of operation by the polynomial $B(x) = -x^3 + 10x^2 - 31x + 30$, where $x$ represents time in years. Find the exact years in which the company's profit was zero (break-even points).

Solve
Practice★★☆Not started
The position of a particle in straight-line motion is given by the equation $s(t) = t^3 - 7t^2 + 14t - 8$, where $t$ is the time in seconds. Determine the instants in…

The position of a particle in straight-line motion is given by the equation $s(t) = t^3 - 7t^2 + 14t - 8$, where $t$ is the time in seconds. Determine the instants in time at which the particle passes through the origin of coordinates ($s(t) = 0$).

Solve

When the divisor is not exactly $x-a$

Ruffini is designed for dividing by $x-a$, with coefficient $1$ on the $x$. Dividing by $x-\frac12$ is no problem: $a=\frac12$. But to divide by a binomial such as $2x-3$, you must first take out the $2$ as a factor: $2x-3=2\left(x-\frac32\right)$, apply Ruffini with $a=\frac32$, and then divide the quotient obtained by $2$ to compensate.

Explanatory diagram for adapting Ruffini to the non-monic divisor 2x − 3 by dividing the quotient by 2. 2x − 3 = 2(x − 3/2) Ruffini with a = 3/2 → quotient from the table true quotient = quotient from the table ÷ 2; same remainder
Practice★★☆Not started
Divide the polynomial $P(x) = 2x^3 - 5x^2 + 3x - 1$ by the binomial $x - \frac{1}{2}$ using Ruffini's rule. Express the final result by stating the quotient and…

Divide the polynomial $P(x) = 2x^3 - 5x^2 + 3x - 1$ by the binomial $x - \frac{1}{2}$ using Ruffini's rule. Express the final result by stating the quotient and remainder.

Solve
Practice★★★Not started
Perform the division of the polynomial $P(x) = 4x^3 - 8x^2 + 7x - 3$ by the binomial $2x - 3$ using Ruffini's rule. Note that you must adapt the divisor to apply the…

Perform the division of the polynomial $P(x) = 4x^3 - 8x^2 + 7x - 3$ by the binomial $2x - 3$ using Ruffini's rule. Note that you must adapt the divisor to apply the algorithm and subsequently adjust the quotient and remainder obtained.

Solve

Designing, testing and comparing an algorithm

Ruffini also allows you to evaluate a polynomial. For $P(x)=a_nx^n+\cdots+a_1x+a_0$, the Horner scheme chains together multiplications and additions. First design how you would do it with pencil and paper; then compare your procedure with this pseudocode:

entrada: coeficientes [a_n, ..., a_0] y valor t

v ← a_n

para cada coeficiente c restante, de mayor a menor grado:

    v ← v * t + c

devolver v

Each arrow represents the next multiplication and addition:

Diagram of Horner's method for the nested evaluation of a polynomial, showing the reduction in the number of multiplications. 2 ×2 − 3 1 ×2 + 0 2 ×2 + 5 9 remainder

For a polynomial of degree n, Horner performs n multiplications and n additions. If your direct algorithm calculates each power from scratch by repeated products and then multiplies by its coefficient, it uses $n(n+1)/2$ multiplications and n additions. If it reuses powers, the count changes: always state which algorithm you are comparing. For the cubic above, the general counts are 3 versus 6 multiplications, without simplifying zero terms.

Modify the algorithm to evaluate the same polynomial at a list of values, resetting v for each value. Write down the modification, run it by hand or in a program, and keep a table of input, expected output and actual output. Also check $t=1$: the result must be the sum of the coefficients. Explain why, after processing every coefficient, v represents exactly the nested polynomial $((2t-3)t+0)t+5$.

Summary

See all the exercises in this section