Algebra · real student question

Solve the inequality |x^2 - 5x + 6| + |x - 4| >= -x^2 + 5x + 7.

Question

Solve the inequality

x25x+6+x4x2+5x+7\left|x^2-5x+6\right|+\left|x-4\right|\ge -x^2+5x+7

Step-by-step solution

  1. Factor inside the absolute value to find every breakpoint. Since x25x+6=(x2)(x3)x^2-5x+6=(x-2)(x-3), that expression changes sign at x=2x=2 and x=3x=3; the second absolute value changes at x=4x=4. The three breakpoints split the line into four intervals:

    (,2),[2,3),[3,4),[4,)(-\infty,2),\quad [2,3),\quad [3,4),\quad [4,\infty)

    On each one, both absolute values become ordinary polynomials and the inequality becomes a quadratic one.

  2. Case x<2x<2: both insides positive and negative respectively. Here (x2)(x3)>0(x-2)(x-3)>0 and x4<0x-4<0, so the left side is x25x+6(x4)=x26x+10x^2-5x+6-(x-4)=x^2-6x+10. The inequality becomes

    x26x+10x2+5x+7  2x211x+30x^2-6x+10\ge -x^2+5x+7\ \Longrightarrow\ 2x^2-11x+3\ge 0

    Its roots are x=11±974x=\dfrac{11\pm\sqrt{97}}{4}, i.e. about 0.28780.2878 and 5.2125.212. An upward parabola is non-negative outside its roots, and intersecting with x<2x<2 leaves

    x11974x\le\frac{11-\sqrt{97}}{4}

  3. Case 2x<32\le x<3: the quadratic inside flips sign. Now (x2)(x3)0(x-2)(x-3)\le 0, so x25x+6=x2+5x6|x^2-5x+6|=-x^2+5x-6, and still x4=4x|x-4|=4-x. The inequality becomes

    x2+4x2x2+5x+7-x^2+4x-2\ge -x^2+5x+7

    The x2-x^2 cancels on both sides, leaving the linear condition 9x-9\ge x. No point of [2,3)[2,3) satisfies x9x\le -9, so this case is empty.

  4. Case 3x<43\le x<4: back to a positive quadratic. Here x25x+6=x25x+6|x^2-5x+6|=x^2-5x+6 and x4=4x|x-4|=4-x, giving the same inequality as Case 1, 2x211x+302x^2-11x+3\ge 0, whose solution set is x0.2878x\le 0.2878 or x5.212x\ge 5.212. Neither region meets [3,4)[3,4), so this case is empty too.

  5. Case x4x\ge 4: both absolute values open positively. Now x4=x4|x-4|=x-4, so

    x24x+2x2+5x+7  2x29x50x^2-4x+2\ge -x^2+5x+7\ \Longrightarrow\ 2x^2-9x-5\ge 0

    This factors nicely: 2x29x5=(2x+1)(x5)2x^2-9x-5=(2x+1)(x-5), with roots x=12x=-\tfrac12 and x=5x=5. Outside the roots and intersected with x4x\ge 4 this gives

    x5x\ge 5

  6. Union the surviving cases and spot-check.

    (, 11974][5,)\left(-\infty,\ \frac{11-\sqrt{97}}{4}\right]\cup[5,\infty)

    Numerically the first endpoint is 0.287790.28779. Testing: at x=0x=0 the left side is 6+4=106+4=10 and the right is 77, so it holds ✓; at x=1x=1 we get 2+3=52+3=5 against 1111, which fails ✓; at x=5x=5 both sides equal 77, so the endpoint is included ✓; at x=6x=6 we get 12+2=1412+2=14 against 11 ✓.

Answer

(, 11974][5,)\left(-\infty,\ \frac{11-\sqrt{97}}{4}\right]\cup[5,\infty)

Need to solve a different problem like this? Open the solver →