037Mathematics · Polynomials

Polynomial remainder for a linear divisor

Polynomial remainder for a linear divisor

Polynomial remainder for a linear divisor · x₀,R

  • 56 bytes
  • COMP mode
01

Worked examples

Example 1

Let f(x)=3x³−4x²+2x+5. Find the remainder when f(x) is divided by x−2.

  1. A.1
  2. B.7
  3. C.17
  4. D.25
Answer
C R=f(2)=17
Standard solution (without a calculator)
  1. Remainder theorem: set the divisor Ax+B=0 to get x₀=−B/A; the remainder when P(x) is divided by Ax+B is P(x₀). If the remainder is 0, Ax+B is a factor of P(x).
  2. Zero of the divisor: x−2=0 gives x=2, so by the remainder theorem the remainder is f(2).
  3. Substitute directly: f(2)=3×2³−4×2²+2×2+5=24−16+4+5=17, so the answer is C.
  4. Check with Horner's form: f(x)=((3x−4)x+2)x+5; substituting 2 gives ((6−4)×2+2)×2+5=17, the same as the direct calculation.
  5. Conclusion: the remainder is R=f(2)=17, answer C.
Do it on the calculator

Example 2

Let g(x)=2x⁴−5x²+3x+7. Find the remainder when g(x) is divided by 2x+1.

  1. A.11/8
  2. B.35/8
  3. C.59/8
  4. D.5
Answer
B R=g(−1/2)=35/8
Standard solution (without a calculator)
  1. Remainder theorem: set the divisor Ax+B=0 to get x₀=−B/A; the remainder when P(x) is divided by Ax+B is P(x₀). If the remainder is 0, Ax+B is a factor of P(x).
  2. Non-monic divisor: 2x+1=0 gives x=−1/2. The substitution point must account for both the sign of the constant and the coefficient 2 of x; using −1 or +1/2 would be wrong.
  3. Substitute with exact fractions: g(−1/2)=2×(1/16)−5×(1/4)+3×(−1/2)+7=1/8−5/4−3/2+7=(1−10−12+56)/8=35/8, so the answer is B.
  4. Missing term and display: the full coefficients are 2, 0, −5, 3, 7; the 0 is the missing x³ term. The remainder is 35/8 = 4 3/8 = 4.375; by default the calculator shows the mixed number 4┘3┘8, not 4.38.
  5. Conclusion: the remainder is R=g(−1/2)=35/8, answer B.
Do it on the calculator

Example 3

Let P(x)=6x³−x²−17x+10. (a) Find the remainder when P(x) is divided by 3x−2. (b) Determine whether 3x−2 is a factor of P(x), and give a reason.

Answer
(a) 0 (b) 3x−2 is a factor of P(x)
Standard solution (without a calculator)
  1. Remainder theorem: set the divisor Ax+B=0 to get x₀=−B/A; the remainder when P(x) is divided by Ax+B is P(x₀). If the remainder is 0, Ax+B is a factor of P(x).
  2. Substitution point: 3x−2=0 gives x=2/3, so the remainder is P(2/3).
  3. Use a common denominator: P(2/3)=6×(8/27)−4/9−17×(2/3)+10=16/9−4/9−102/9+90/9=0.
  4. Decide the factor by the remainder theorem: P(2/3)=0, so the remainder when P(x) is divided by 3x−2 is 0 and 3x−2 is a factor of P(x). Expanding (3x−2)(2x²+x−5)=6x³−x²−17x+10 gives an independent check.
  5. Give the reason in a written answer: every rational step here can be checked exactly, so the factor conclusion may be written; if the calculator shows only a tiny approximate 0, the exact working cannot be skipped.
Do it on the calculator
02

When to use it

For P(x)=(Ax+B)Q(x)+R, substituting x₀=−B/A gives P(x₀)=R. The program evaluates this value by Horner’s method without finding the quotient.

Enter the polynomial and divisor

  • Enter D = polynomial degree, A = coefficient of x in the divisor, then B = its signed constant. For x−2, use A=1 and B=−2.
  • At each C? enter one coefficient from c_D down to c₀, including all D+1 positions. C is reset to 0 each time, so a blank EXE supplies 0 for a missing term.

Read the zero and remainder

  • Read X=x₀=−B/A, then press EXE for Y=R=P(x₀). X is the divisor’s zero; it is also a zero of the polynomial only when R=0.

Question types

  • Original HKDSE Mathematics Compulsory Part practice: remainders for linear divisors, non-monic divisors and factor checks using the remainder theorem.

Before you start

  • Use COMP; angle units do not affect the calculation, and the examples use Deg/P1. The program needs 56 bytes; P1–P4 share 680 bytes. Choose an empty slot with sufficient space.
  • D must be an integer from 0 to 69 and A≠0. Negative, noninteger or D≥70 inputs fail the factorial check with Math ERROR; A=0 causes division by zero.
  • Use known real coefficients and a linear divisor; solve any symbolic parameters first. Dense degree-0 to degree-4 polynomials are the main use; direct powers may be quicker for sparse high-degree polynomials. Represent the zero polynomial with D=0 and c₀=0.
  • Enter D, A and B explicitly for every question. Supply coefficients in descending order without skipping missing terms. A, B, C, D, X, Y, M and Ans are overwritten; save important values first.
  • The program sets Norm 1 but leaves the fraction-display preference unchanged. The examples use ab/c: 4┘3┘8 means 4 3/8; d/c instead shows 35┘8, the same number.
  • Small integers and short fractions can retain exact arithmetic. Decimals or intermediate fractions exceeding 10 display positions use finite-precision decimals. Large cancellations, tiny values or fraction overflow can lose precision; a displayed 0 alone need not prove an exact factor.
  • The first zero screen has Disp lit; press EXE to see the remainder. At the final remainder, press AC to leave; another EXE restarts. The LCD does not label x₀ or R.

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.