115Mathematics · More about equations

Small-Integer Quadratic Roots

Small-Integer Quadratic Roots

Find the real roots of a quadratic equation with small integer coefficients. A double root is shown twice, and inequality regions are interpreted separately.

  • 98 bytes
  • COMP mode
01

Worked examples

Example 1

Original practice. Solve the following and show the algebra. 2x²−7x+3=0.

Answer
x=1/2 ∨ x=3
Standard solution (without a calculator)
  1. (2x−1)(x−3)=0
  2. x=1/2 ∨ x=3
  3. (x₁+x₂)=7/2; x₁x₂=3/2
  4. Expand or substitute to verify each equality above.
Do it on the calculator

Example 2

Original practice. Solve the following and show the algebra. 3x²−12x+12=0.

Answer
x=2
Standard solution (without a calculator)
  1. 3(x−2)²=0
  2. x=2
  3. Δ=144−144=0
  4. Expand or substitute to verify each equality above.
Do it on the calculator

Example 3

Original practice. Solve the following and show the algebra. −x²+x+6=0.

Answer
x=−2 ∨ x=3
Standard solution (without a calculator)
  1. −(x−3)(x+2)=0
  2. x=−2 ∨ x=3
  3. −(−2)²−2+6=0; −3²+3+6=0
  4. Expand or substitute to verify each equality above.
Do it on the calculator
02

When to use it

Find the real roots of a quadratic equation with small integer coefficients. A double root is shown twice, and inequality regions are interpreted separately.

Input order

  • a,b,c
  • A=a; B=b; C=c; M=q; X=x₁; Y=x₂
  • Enter every value afresh; blank EXE retains old memory and is not zero. All working variables and Ans may be overwritten.

Output order

  • x₁,x₂
  • Only integer a,b,c with |a|,|b|,|c|≤10000 and a≠0 are supported. The program does not enforce this range. Set COMP and Norm 1. It displays the smaller real root then the larger root, repeating a double root twice. Math ERROR is not a dedicated no-real-root code: invalid coefficients and overflow may cause it too. It does not solve inequalities or count integer solutions. Preserve exact fractions or radicals and check rounded roots by substitution.

Conditions and limits

  • Use COMP and Norm 1; the images use Deg, which does not change this algebra.
  • a,b,c∈ℤ; a≠0; |a|,|b|,|c|≤10000
  • Only integer a,b,c with |a|,|b|,|c|≤10000 and a≠0 are supported. The program does not enforce this range. Set COMP and Norm 1. It displays the smaller real root then the larger root, repeating a double root twice. Math ERROR is not a dedicated no-real-root code: invalid coefficients and overflow may cause it too. It does not solve inequalities or count integer solutions. Preserve exact fractions or radicals and check rounded roots by substitution.
  • Use the original equation to check signs, excluded values and endpoint inclusion. Decimal screens are numerical approximations; preserve exact fractions or radicals in written answers.

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.