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
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)
- (2x−1)(x−3)=0
- x=1/2 ∨ x=3
- (x₁+x₂)=7/2; x₁x₂=3/2
- Expand or substitute to verify each equality above.
Example 2
Original practice. Solve the following and show the algebra. 3x²−12x+12=0.
Answer
x=2
Standard solution (without a calculator)
- 3(x−2)²=0
- x=2
- Δ=144−144=0
- Expand or substitute to verify each equality above.
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)
- −(x−3)(x+2)=0
- x=−2 ∨ x=3
- −(−2)²−2+6=0; −3²+3+6=0
- Expand or substitute to verify each equality above.
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.
Checking access…