039Mathematics · Polynomials

Cubic Divided by a Monic Quadratic

Cubic Divided by a Monic Quadratic

Quotient and remainder when a cubic is divided by a monic quadratic x² + ux + v.

  • 52 bytes
  • COMP mode
01

Worked examples

Example 1

Divide 2x³ + 3x² − 5x + 7 by x² − x + 2. What are the quotient and the remainder? Each option below is a pair “quotient, remainder”.

  1. A.2x + 5, −4x − 3
  2. B.2x + 1, −8x + 5
  3. C.2x + 5, 4x + 3
  4. D.2x − 5, −14x + 17
Answer
A quotient 2x + 5, remainder −4x − 3
Standard solution (without a calculator)
  1. Cancel the cubic term: 2x³ ÷ x² = 2x. Subtract 2x(x² − x + 2) = 2x³ − 2x² + 4x from the dividend to get 5x² − 9x + 7.
  2. Cancel the quadratic term: 5x² ÷ x² = 5. Subtract 5(x² − x + 2) = 5x² − 5x + 10 to get the remainder −4x − 3, whose degree is lower than the divisor’s.
  3. Write the answer and multiply back: 2x³ + 3x² − 5x + 7 = (x² − x + 2)(2x + 5) + (−4x − 3). So the answer is A.
Do it on the calculator

Example 2

It is given that x³ − 4x + 1 = (x² + 2x + 1)(px + q) + rx + s for all real x. Find p, q, r and s.
Write out the two cancelling steps of the long division.
Explain why a 0 must still be entered when the expression has no x² term.

Answer
p = 1, q = −2, r = −1, s = 3; quotient x − 2, remainder −x + 3
Standard solution (without a calculator)
  1. Fill in the missing terms: write the dividend as x³ + 0x² − 4x + 1; the second coefficient is 0, and −4 must not be moved forward as the x² term.
  2. First the x term of the quotient: x³ ÷ x² = x. Subtract x(x² + 2x + 1) = x³ + 2x² + x from the dividend to get −2x² − 5x + 1.
  3. The constant of the quotient and the remainder: −2x² ÷ x² = −2. Subtract −2(x² + 2x + 1) = −2x² − 4x − 2 to get −x + 3. So p = 1, q = −2, r = −1 and s = 3.
  4. Check the identity: (x² + 2x + 1)(x − 2) + (−x + 3) = x³ − 4x + 1. The divisor is (x + 1)², and the repeated root does not affect the method.
Do it on the calculator

Example 3

Let f(x) = −2x³ + 9x² − 13x + 6. Determine whether x² − 3x + 2 is a factor of f(x); if it is, find the other factor and factorise f(x) completely.
Find the quotient and the remainder.
Use the remainder to decide divisibility, then complete the factorisation.

Answer
quotient −2x + 3, remainder 0; x² − 3x + 2 is a factor, f(x) = (x − 1)(x − 2)(−2x + 3)
Standard solution (without a calculator)
  1. Cancel the negative cubic term: −2x³ ÷ x² = −2x. Subtract −2x(x² − 3x + 2) = −2x³ + 6x² − 4x from the dividend to get 3x² − 9x + 6.
  2. Is the remainder zero? 3x² ÷ x² = 3. Subtract 3(x² − 3x + 2) = 3x² − 9x + 6 and the remainder is 0x + 0. Both remainder coefficients are 0, so it divides exactly.
  3. Factorise completely: the quotient is −2x + 3 and x² − 3x + 2 = (x − 1)(x − 2). So f(x) = (x − 1)(x − 2)(−2x + 3). The program gives the quotient and the zero remainder directly; the last step, factorising the quadratic, is done by the student.
Do it on the calculator
02

When to use it

DSE polynomial questions often divide a cubic by a quadratic and ask for the quotient and remainder, test whether a quadratic is a factor, or compare coefficients in an identity. Writing ax³ + bx² + cx + d = (x² + ux + v)(px + q) + (rx + s) and comparing coefficients gives p = a, q = b − au, r = c − av − qu and s = d − qv, which is exactly the two steps of long division. 039 takes a, b, c, d in descending order, then u and v, and shows the four answers one after another: read them as “quotient Ax + B, remainder Cx + D”. The capital X is a calculator variable that stores u, not the unknown x on paper.

What it is for

  • Dividing ax³ + bx² + cx + d (numeric coefficients, degree at most 3) by x² + ux + v
  • Getting the complete quotient and remainder, or testing divisibility (both remainder coefficients 0)
  • Checking the expansion of an identity such as (x² + ux + v)(px + q) + (rx + s)

What you enter

  • A, B, C, D: the coefficients a, b, c, d in descending order, 0 for a missing term
  • X, Y: u and v of the divisor x² + ux + v, with their signs
  • Always enter all six values, including 0 and 1; do not press EXE alone

What it shows

  • Quotient: A, the coefficient of x, then B, the constant term
  • Remainder: C, the coefficient of x, then D, the constant term
  • Press EXE after the first three values; the fourth is the last screen

Check before use

  • Directly usable only for a cubic (degree at most 3) with known numeric coefficients, divided by x² + ux + v. Enter 0 for a missing term; with A = 0 a lower-degree polynomial can also be divided.
  • Always enter all six numbers, including 0 and 1; do not press EXE alone, which keeps the current value. At the end B, C and D hold the answers, so the original coefficients of the dividend are no longer kept.
  • Create the program in COMP. The example uses an empty P1; the set-up keys MODE 6 → 3 → 1 clear P1, so follow them only if P1 is empty or its program is backed up. If you use another empty area, change the area number in the clearing, creating and running steps as well. Only addition, subtraction and multiplication are used, so the angle unit does not matter; the program sets Norm 1 itself to avoid misreading an old Fix or Sci setting.
  • When all six coefficients are integers with absolute value at most 1000, all intermediate values and answers are calculated exactly and shown in full, within the calculator’s numeric precision. This is a conservative guaranteed range, not a limit of the mathematics.
  • Ordinary decimals and short fractions can also be entered; enter fractions with the a b/c key, e.g. 1┘3, rather than 0.3333. The display length and internal significant digits are still limited, so arbitrary decimals or long fractions are not guaranteed to be exact.
  • Very large or very small numbers, or the subtraction of two very close large numbers, are outside the exact range. For example, 10¹³ + 1 minus 10¹³ can be cancelled to 0 by the calculator model, and this short program does not detect that. If a question depends on a tiny difference, simplify algebraically first; do not treat this output as an exact proof.
  • If the divisor is kx² + ux + v with k ≠ 0 and k ≠ 1, the program cannot be used directly. First divide the divisor by k: enter X = u/k and Y = v/k and the other four terms as in the question; after the output, divide only the two quotient coefficients by k and keep the remainder unchanged. This is an extra manual conversion.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.