Rational Root Test for Polynomial Factorization (2020 Edition)

Rational Root Test for Polynomial Factorization (2020 Edition)
Loading the math board and drawing, please wait…
2020-01-09 19:50
This interactive GeoGebra example demonstrates the Rational Root Theorem applied to factor integer-coefficient polynomial functions into linear factors. It covers key algebraic concepts such as polynomial factorization, rational root candidates derived from divisors of constant and leading coefficients, and root verification. Constructed using commands like Sequence, Factors, DivisorsList, Coefficients, Length, Join, Unique, and conditional logic (If), the model dynamically generates all possible rational roots, tests them, and displays valid linear factors. Ideal for high school algebra instruction and exploratory learning in polynomial theory.

GeoGebra Commands & Parameters

  1. Sequence(x^(Simplify[n - i]), i, 0, n) → cx
  2. Expand(Sum[(cn * cx)]) → f
  3. Factors(f) → t2
  4. Sequence(t2(i, 1, x), i, 1, Length[t2]) → t3
  5. Sequence(Simplify[t3(i, x) / Element[Coefficients[t3(i, x)], 1]], i, 1, Length[t3]) → t6
  6. DivisorsList(p) → listp
  7. Factors(p) →
  8. Length(listp) → pn
  9. DivisorsList(q) → listq
  10. Factors(q) →
  11. Length(DivisorsList[q]) → qn
  12. Sequence(Sequence[listq(j) / listp(i), j, 1, qn], i, 1, pn) → lpq
  13. Join(Sequence[lpq(i), i, 1, Length[lpq]]) → lx
  14. Sequence(lx(i), i, 1, Length[lx]) → newlx
  15. Unique(lx) → unilx
  16. Reverse(Remove[Reverse[newlx], Remove[newlx, unilx]]) → endlx
  17. Sequence((endlx(floor((i + 1) / 2)) * (-1)^(i + 1)), i, 1, (2 * Length[endlx])) → alx
  18. Unique(Sequence[If[f(alx(i)) ≟ 0, x - alx(i), 1], i, 0, root]) → lr
  19. Sequence(IndexOf[lr(i, x), t6], i, 2, Length[lr]) → index
  20. Sequence(t2(i, 2), i, 1, Length[t2]) → t4
  21. Length(index) → rin
  22. Length(lr) → rn
  23. Textfield(cn) → cc
  24. Expand(te1) → te2
  25. Sequence(Simplify[alx(i)], i, 1, Length[alx]) → t0
  26. Textfield(cn) → 係數
  27. If(index ≠ {}, Zip[t3(k, x)^(t4(k)), k, index], {e}) → t5
  28. If(t5 ≠ {}, Product[t5], 1) → g
  29. Expand(Div[f, g]) → h
  30. If(index ≠ {}, (g(x) * h(x)), h) → t
  31. Expand(((((((3 * x) + 1)^(2) * (x + 2)) * (x - 5)) * (x^(2) - x + 1)) * ((2 * x) - 1))) → r
  32. Coefficients(r) → l1

AI Drawing Prompt Reference

Create an interactive algebra-style graphic that demonstrates the Rational Root Theorem for factoring an integer-coefficient polynomial: first present a polynomial function with integer coefficients, then generate rational root candidates formed from divisors of the constant term and the leading coefficient (ratio of possible divisors). Next, test each candidate by checking whether substituting it makes the polynomial equal zero. For every candidate that passes, construct the corresponding linear factor and multiply all valid factors to obtain the factorized expression. Display both the original polynomial and the resulting product of linear factors in the same workspace to show their relationship.
The prompt above was compiled from the original drawing commands and is for reference only.