Solving Quadratic Inequalities

April 12, 2026

Problem

Solve x²−5x+6 < 0. Factor: (x−2)(x−3) < 0. Solution: 2 < x < 3.

Explanation

Strategy: factor, find roots, test intervals

Quadratic inequalities are solved by: (1) factor the quadratic, (2) find the roots (boundary points), (3) test a point in each interval, (4) shade the intervals that satisfy the inequality.

Step-by-step: Solve x25x+6<0x^2 - 5x + 6 < 0

Step 1 — Factor: x25x+6=(x2)(x3)x^2 - 5x + 6 = (x - 2)(x - 3)

Step 2 — Find the roots (zeros): x=2x = 2 and x=3x = 3. These divide the number line into three intervals: (,2)(-\infty, 2), (2,3)(2, 3), (3,)(3, \infty).

Step 3 — Test a point from each interval:

  • Interval (,2)(-\infty, 2): try x=0x = 0. (02)(03)=(2)(3)=+6>0(0-2)(0-3) = (-2)(-3) = +6 > 0
  • Interval (2,3)(2, 3): try x=2.5x = 2.5. (2.52)(2.53)=(0.5)(0.5)=0.25<0(2.5-2)(2.5-3) = (0.5)(-0.5) = -0.25 < 0
  • Interval (3,)(3, \infty): try x=4x = 4. (42)(43)=(2)(1)=+2>0(4-2)(4-3) = (2)(1) = +2 > 0

Step 4 — Solution: Only the middle interval satisfies <0< 0.

2<x<3or in interval notation: (2,3)2 < x < 3 \quad \text{or in interval notation: } (2, 3)

Why this works graphically

The parabola y=x25x+6y = x^2 - 5x + 6 opens upward (positive x2x^2 coefficient). It crosses the x-axis at x=2x = 2 and x=3x = 3. The parabola is below the x-axis (negative) only between the roots — exactly the interval (2,3)(2, 3).

Quick rule for parabolas

  • ax2+bx+c>0ax^2 + bx + c > 0 with a>0a > 0: solution is outside the roots.
  • ax2+bx+c<0ax^2 + bx + c < 0 with a>0a > 0: solution is between the roots.
  • If a<0a < 0, everything flips.

Try it in the visualization

Adjust bb and cc. The parabola shows the positive and negative regions, with the solution interval highlighted on both the graph and the number line.

Interactive Visualization

Parameters

-5.00
6.00
< 0
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Solving Quadratic Inequalities | MathSpin