Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.4: Inequalities with Absolute Value and Quadratic Functions

( \newcommand{\kernel}{\mathrm{null}\,}\)

In this section, not only do we develop techniques for solving various classes of inequalities analytically, we also look at them graphically. The first example motivates the core ideas.

Example 2.4.1:

Let f(x)=2x1 and g(x)=5.

  1. Solve f(x)=g(x).
  2. Solve f(x)<g(x).
  3. Solve f(x)>g(x).
  4. Graph y=f(x) and y=g(x) on the same set of axes and interpret your solutions to parts 1 through 3 above.

Solution

  1. To solve f(x)=g(x), we replace f(x) with 2x1 and g(x) with 5 to get 2x1=5. Solving for x, we get x=3.
  2. The inequality f(x)<g(x) is equivalent to 2x1<5. Solving gives x<3 or (,3).
  3. To find where f(x)>g(x), we solve 2x1>5. We get x>3, or (3,).
  4. To graph y=f(x), we graph y=2x1, which is a line with a y-intercept of (0,1) and a slope of 2. The graph of y=g(x) is y=5 which is a horizontal line through (0,5).

2.4.1a.png

To see the connection between the graph and the Algebra, we recall the Fundamental Graphing Principle for Functions in Section 1.6: the point (a,b) is on the graph of f if and only if f(a)=b. In other words, a generic point on the graph of y=f(x) is (x,f(x)), and a generic point on the graph of y=g(x) is (x,g(x)). When we seek solutions to f(x)=g(x), we are looking for x values whose y values on the graphs of f and g are the same. In part 1, we found x=3 is the solution to f(x)=g(x). Sure enough, f(3)=5 and g(3)=5 so that the point (3,5) is on both graphs. In other words, the graphs of f and g intersect at (3,5). In part 2, we set f(x)<g(x) and solved to find x<3. For x<3, the point (x,f(x)) is below (x,g(x)) since the y values on the graph of f are less than the y values on the graph of g there. Analogously, in part 3, we solved f(x)>g(x) and found x>3. For x>3, note that the graph of f is above the graph of g, since the y values on the graph of f are greater than the y values on the graph of g for those values of x.

2.4.1b.png

The preceding example demonstrates the following, which is a consequence of the Fundamental Graphing Principle for Functions.

Graphical Interpretation of Equations and Inequalities

Suppose f and g are functions.

  • The solutions to f(x)=g(x) are the x values where the graphs of y=f(x) and y=g(x) intersect.
  • The solution to f(x)<g(x) is the set of x values where the graph of y=f(x) is \textit{below} the graph of y=g(x).
  • The solution to f(x)>g(x) is the set of x values where the graph of y=f(x) \textit{above} the graph of y=g(x).

The next example turns the tables and furnishes the graphs of two functions and asks for solutions to equations and inequalities.

Example 2.4.2:

The graphs of f and g are below. (The graph of y=g(x) is bolded.) Use these graphs to answer the following questions.

2.4.2a.png

  1. Solve f(x)=g(x).
  2. Solve f(x)<g(x).
  3. Solve f(x)g(x).

Solution

  1. To solve f(x)=g(x), we look for where the graphs of f and g intersect. These appear to be at the points (1,2) and (1,2), so our solutions to f(x)=g(x) are x=1 and x=1.
  2. To solve f(x)<g(x), we look for where the graph of f is below the graph of g. This appears to happen for the x values less than 1 and greater than 1. Our solution is (,1)(1,).
  3. To solve f(x)g(x), we look for solutions to f(x)=g(x) as well as f(x)>g(x). We solved the former equation and found x=±1. To solve f(x)>g(x), we look for where the graph of f is above the graph of g. This appears to happen between x=1 and x=1, on the interval (1,1). Hence, our solution to f(x)g(x) is [1,1].

2.4.2b.png

We now turn our attention to solving inequalities involving the absolute value. We have the following theorem from Intermediate Algebra to help us.

Theorem 2.4: Inequalities Involving the Absolute Value

Let c be a real number. \index{inequality ! absolute value} \index{absolute value ! inequality}

  • For c>0, |x|<c is equivalent to c<x<c.
  • For c>0, |x|c is equivalent to cxc.
  • For c0, |x|<c has no solution, and for c<0, |x|c has no solution.
  • For c0, |x|>c is equivalent to x<c or x>c.
  • For c0, |x|c is equivalent to xc or xc.
  • For c<0, |x|>c and |x|c are true for all real numbers.

As with Theorem 2.1 in Section 2.2, we could argue Theorem 2.4 using cases. However, in light of what we have developed in this section, we can understand these statements graphically. For instance, if c>0, the graph of y=c is a horizontal line which lies above the x-axis through (0,c). To solve |x|<c, we are looking for the x values where the graph of y=|x| is below the graph of y=c. We know that the graphs intersect when |x|=c, which, from Section 2.2, we know happens when x=c or x=c. Graphing, we get

2.4a.png

We see that the graph of y=|x| is below y=c for x between c and c, and hence we get |x|<c is equivalent to c<x<c. The other properties in Theorem 2.4 can be shown similarly.

Example 2.4.3:

Solve the following inequalities analytically; check your answers graphically.

  1. |x1|3
  2. 43|2x+1|>2
  3. 2<|x1|5
  4. |x+1|x+42

Solution

  1. From Theorem 2.4, |x1|3 is equivalent to x13 or x13. Solving, we get x2 or x4, which, in interval notation is (,2][4,). Graphically, we have

2.4.3a.png

We see that the graph of y=|x1| is above the horizontal line y=3 for x<2 and x>4 hence this is where |x1|>3. The two graphs intersect when x=2 and x=4, so we have graphical confirmation of our analytic solution.

2. To solve 43|2x+1|>2 analytically, we first isolate the absolute value before applying Theorem 2.4. To that end, we get 3|2x+1|>6 or |2x+1|<2. Rewriting, we now have 2<2x+1<2 so that 32<x<12. In interval notation, we write (32,12). Graphically we see that the graph of y=43|2x+1| is above y=2 for x values between 32 and 12.

2.4.3b.png

3. Rewriting the compound inequality 2<|x1|5 as `\)2 < |x-1|\) and |x1|5' allows us to solve each piece using Theorem 2.4. The first inequality, 2<|x1| can be re-written as |x1|>2 so x1<2 or x1>2. We get x<1 or x>3. Our solution to the first inequality is then (,1)(3,). For |x1|5, we combine results in Theorems 2.1 and 2.4 to get 5x15 so that 4x6, or [4,6]. Our solution to 2<|x1|5 is comprised of values of x which satisfy both parts of the inequality, so we take intersection\footnote{See Definition 1.2 in Section 1.1 of (,1)(3,) and [4,6] to get [4,1)(3,6]. Graphically, we see that the graph of y=|x1| is `between' the horizontal lines y=2 and y=5 for x values between 4 and 1 as well as those between 3 and 6. Including the x values where y=|x1| and y=5 intersect, we get

2.4.3c.png

4. We need to exercise some special caution when solving |x+1|x+42. As we saw in Example 2.2.1 in Section 2.2, when variables are both inside and outside of the absolute value, it's usually best to refer to the definition of absolute value, Definition 2.4, to remove the absolute values and proceed from there. To that end, we have |x+1|=(x+1) if x<1 and |x+1|=x+1 if x1. We break the inequality into cases, the first case being when x<1. For these values of x, our inequality becomes (x+1)x+42. Solving, we get 2x2x+4, so that 3x6, which means x2. Since all of these solutions fall into the category x<1, we keep them all. For the second case, we assume x1. Our inequality becomes x+1x+42, which gives 2x+2x+4 or x2. Since all of these values of x are greater than or equal to 1, we accept all of these solutions as well. Our final answer is (,2][2,).

2.4.3d.png

We now turn our attention to quadratic inequalities. In the last example of Section 2.3, we needed to determine the solution to x2x6<0. We will now re-visit this problem using some of the techniques developed in this section not only to reinforce our solution in Section 2.3, but to also help formulate a general analytic procedure for solving all quadratic inequalities. If we consider f(x)=x2x6 and g(x)=0, then solving x2x6<0 corresponds graphically to finding the values of x for which the graph of y=f(x)=x2x6 (the parabola) is below the graph of y=g(x)=0 (the x-axis). We've provided the graph again for reference.

2.4b.png

We can see that the graph of f does dip below the x-axis between its two x-intercepts. The zeros of f are x=2 and x=3 in this case and they divide the domain (the x-axis) into three intervals: (,2), (2,3) and (3,). For every number in (,2), the graph of f is above the x-axis; in other words, f(x)>0 for all x in (,2). Similarly, f(x)<0 for all x in (2,3), and f(x)>0 for all x in (3,). We can schematically represent this with the signdiagrambelow.

2.4c.png

Here, the (+) above a portion of the number line indicates f(x)>0 for those values of x; the () indicates f(x)<0 there. The numbers labeled on the number line are the zeros of f, so we place 0 above them. We see at once that the solution to f(x)<0 is (2,3).

Our next goal is to establish a procedure by which we can generate the sign diagram without graphing the function. An important property\footnote{We will give this property a name in Chapter 3 and revisit this concept then.} of quadratic functions is that if the function is positive at one point and negative at another, the function must have at least one zero in between. Graphically, this means that a parabola can't be above the x-axis at one point and below the x-axis at another point without crossing the x-axis. This allows us to determine the sign of all of the function values on a given interval by testing the function at just one value in the interval. This gives us the following.

Steps for Solving a Quadratic Inequality

  1. Rewrite the inequality, if necessary, as a quadratic function f(x) on one side of the inequality and 0 on the other.
  2. Find the zeros of f and place them on the number line with the number 0 above them.
  3. Choose a real number, called a \textbf{test value}, in each of the intervals determined in step 2.
  4. Determine the sign of f(x) for each test value in step 3, and write that sign above the corresponding interval.
  5. Choose the intervals which correspond to the correct sign to solve the inequality.

Example 2.4.4:

Solve the following inequalities analytically using sign diagrams. Verify your answer graphically.

  1. 2x23x
  2. x22x>1
  3. x2+12x
  4. 2xx2|x1|1

Solution

  1. To solve 2x23x, we first get 0 on one side of the inequality which yields 2x2+x30. We find the zeros of f(x)=2x2+x3 by solving 2x2+x3=0 for x. Factoring gives (2x+3)(x1)=0, so x=32 or x=1. We place these values on the number line with 0 above them and choose test values in the intervals (,32), (32,1) and (1,). For the interval (,32), we choose\footnote{We have to choose something_ in each interval. If you don't like our choices, please feel free to choose different numbers. You'll get the same sign chart.} x=2; for (32,1), we pick x=0; and for (1,), x=2. Evaluating the function at the three test values gives us f(2)=3>0, so we place (+) above (,32); f(0)=3<0, so () goes above the interval (32,1); and, f(2)=7, which means (+) is placed above (1,). Since we are solving 2x2+x30, we look for solutions to 2x2+x3<0 as well as solutions for 2x2+x3=0. For 2x2+x3<0, we need the intervals which we have a (). Checking the sign diagram, we see this is (32,1). We know 2x2+x3=0 when x=32 and x=1, so our final answer is [32,1].

To verify our solution graphically, we refer to the original inequality, 2x23x. We let g(x)=2x2 and h(x)=3x. We are looking for the x values where the graph of g is below that of h (the solution to g(x)<h(x)) as well as the points of intersection (the solutions to g(x)=h(x)). The graphs of g and h are given on the right with the sign chart on the left.

2.4.4a.png

2. Once again, we re-write x22x>1 as x22x1>0 and we identify f(x)=x22x1. When we go to find the zeros of f, we find, to our chagrin, that the quadratic x22x1 doesn't factor nicely. Hence, we resort to the quadratic formula to solve x22x1=0, and arrive at x=1±2. As before, these zeros divide the number line into three pieces. To help us decide on test values, we approximate 120.4 and 1+22.4. We choose x=1, x=0 and x=3 as our test values and find f(1)=2, which is (+); f(0)=1 which is (); and f(3)=2 which is (+) again. Our solution to x22x1>0 is where we have (+), so, in interval notation (,12)(1+2,). To check the inequality x22x>1 graphically, we set g(x)=x22x and h(x)=1. We are looking for the x values where the graph of g is above the graph of h. As before we present the graphs on the right and the sign chart on the left.

2.4.4b.png

3. To solve x2+12x, as before, we solve x22x+10. Setting f(x)=x22x+1=0, we find the only one zero of f, x=1. This one x value divides the number line into two intervals, from which we choose x=0 and x=2 as test values. We find f(0)=1>0 and f(2)=1>0. Since we are looking for solutions to x22x+10, we are looking for x values where x22x+1<0 as well as where x22x+1=0. Looking at our sign diagram, there are no places where x22x+1<0 (there are no ()), so our solution is only x=1 (where x22x+1=0). We write this as {1}. Graphically, we solve x2+12x by graphing g(x)=x2+1 and h(x)=2x. We are looking for the x values where the graph of g is below the graph of h (for x2+1<2x) and where the two graphs intersect (\)x^2+1 = 2x\)). Notice that the line and the parabola touch at (1,2), but the parabola is always above the line otherwise.\footnote{In this case, we say the line y=2x is tangent to y=x2+1 at (1,2). Finding tangent lines to arbitrary functions is a fundamental problem solved, in general, with Calculus.}

2.4.4c.png

4. To solve our last inequality, 2xx2|x1|1, we re-write the absolute value using cases. For x<1, |x1|=(x1)=1x, so we get 2xx21x1, or x23x0. Finding the zeros of f(x)=x23x, we get x=0 and x=3. However, we are only concerned with the portion of the number line where x<1, so the only zero that we concern ourselves with is x=0. This divides the interval x<1 into two intervals: (,0) and (0,1). We choose x=1 and x=12 as our test values. We find f(1)=4 and f(12)=54. Hence, our solution to x23x0 for x<1 is [0,1). Next, we turn our attention to the case x1. Here, |x1|=x1, so our original inequality becomes 2xx2x11, or x2x20. Setting g(x)=x2x2, we find the zeros of g to be x=1 and x=2. Of these, only x=2 lies in the region x1, so we ignore x=1. Our test intervals are now [1,2) and (2,). We choose x=1 and x=3 as our test values and find g(1)=2 and g(3)=4. Hence, our solution to g(x)=x2x20, in this region is [1,2).

2.4.4d.png

Combining these into one sign diagram, we have that our solution is [0,2]. Graphically, to check 2xx2|x1|1, we set h(x)=2xx2 and i(x)=|x1|1 and look for the x values where the graph of h is above the the graph of i (the solution of h(x)>i(x)) as well as the x-coordinates of the intersection points of both graphs (where h(x)=i(x)). The combined sign chart is given on the left and the graphs are on the right.

2.4.4e.png

One of the classic applications of inequalities is the notion of tolerances.\footnote{The underlying concept of Calculus can be phrased in terms of tolerances, so this is well worth your attention.} Recall that for real numbers x and c, the quantity |xc| may be interpreted as the distance from x to c. Solving inequalities of the form |xc|d for d0 can then be interpreted as finding all numbers x which lie within d units of c. We can think of the number d as a `tolerance' and our solutions x as being within an accepted tolerance of c. We use this principle in the next example.

Example 2.4.5:

The area A (in square inches) of a square piece of particle board which measures x inches on each side is A(x)=x2. Suppose a manufacturer needs to produce a 24 inch by 24 inch square piece of particle board as part of a home office desk kit. How close does the side of the piece of particle board need to be cut to 24 inches to guarantee that the area of the piece is within a tolerance of 0.25 square inches of the target area of 576 square inches?

Solution

Mathematically, we express the desire for the area A(x) to be within 0.25 square inches of 576 as |A576|0.25. Since A(x)=x2, we get |x2576|0.25, which is equivalent to 0.25x25760.25. One way to proceed at this point is to solve the two inequalities 0.25x2576 and x25760.25 individually using sign diagrams and then taking the intersection of the solution sets. While this way will (eventually) lead to the correct answer, we take this opportunity to showcase the increasing property of the square root: if 0ab, then ab. To use this property, we proceed as follows

0.25x25760.25575.75x2576.25(add 576 across the inequalities.)575.75x2576.25(take square roots.)575.75|x|576.25(\)\sqrt{x^2} = |x|\))

By Theorem 2.4, we find the solution to 575.75|x| to be (,575.75][575.75,) and the solution to |x|576.25 to be [576.25,576.25]. To solve 575.75|x|576.25, we intersect these two sets to get [576.25,575.75][575.75,576.25]. Since x represents a length, we discard the negative answers and get [575.75,576.25]. This means that the side of the piece of particle board must be cut between 575.7523.995 and 576.2524.005 inches, a tolerance of (approximately) 0.005 inches of the target length of 24 inches.

Our last example in the section demonstrates how inequalities can be used to describe regions in the plane, as we saw earlier in Section 1.2.

Example 2.4.6:

Sketch the following relations.

  1. R={(x,y):y>|x|}
  2. S={(x,y):y2x2}
  3. T={(x,y):|x|<y2x2}

Solution

  1. The relation R consists of all points (x,y) whose y-coordinate is greater than |x|. If we graph y=|x|, then we want all of the points in the plane above the points on the graph. Dotting the graph of y=|x| as we have done before to indicate that the points on the graph itself are not in the relation, we get the shaded region below on the left.
  2. For a point to be in S, its y-coordinate must be less than or equal to the y-coordinate on the parabola y=2x2. This is the set of all points below or on the parabola y=2x2.

2.4.6a.png

3. Finally, the relation T takes the points whose y-coordinates satisfy both the conditions given in R and those of S. Thus we shade the region between y=|x| and y=2x2, keeping those points on the parabola, but not the points on y=|x|. To get an accurate graph, we need to find where these two graphs intersect, so we set |x|=2x2. Proceeding as before, breaking this equation into cases, we get x=1,1. Graphing yields


2.4.6b.png


2.4: Inequalities with Absolute Value and Quadratic Functions is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by LibreTexts.

Support Center

How can we help?