Graphing Absolute-Value Equations and Inequalities via Intersections

Graphing Absolute-Value Equations and Inequalities via Intersections
Loading the math board and drawing, please wait…
2020-08-15 11:18
This example demonstrates how absolute-value equations and inequalities can be visualized and solved by translating them into intersection-based or region-based graph features. It highlights the key ideas of |x-a|=b (two-sided symmetry that yields zero/one/two solutions) and |x-a|≤b or |x-a|≥b (interval solution sets). The construction uses GeoGebra elements and commands from the build summary: Line and Segment to define the graphs/constraints whose intersections correspond to solutions; Random and RandomDiscrete (with parameter containers like vectors/Elements) to generate varying coefficients for interactive exploration; If to switch cases depending on the parameter relationship; Max and Min to implement the absolute-value behavior through equivalent piecewise upper/lower envelopes; and Textfield/Text to label parameters and interpret the resulting solution regions. Best suited for high school to early undergraduate learners, supporting graph-to-algebra reasoning and teaching intersection counting for solution sets.

GeoGebra Commands & Parameters

  1. RandomDiscrete({1, 2, 3, 4, 5}, {2, 5, 5, 5, 5}) → whatweget
  2. Vector(C, D) → u
  3. Vector(E, F) → a
  4. Segment(G, H) → f
  5. Random(-60, 60) → K
  6. Random(-60, 60) → Qstart
  7. RandomDiscrete({Qstart, 0}, {8, 2}) → Q
  8. DivisorsList(abs(K - Q)) → Lpos
  9. Factors(abs(K - Q)) →
  10. If(K - Q > 0, Lpos, K - Q < 0, Lneg, RandomElement[{-3, -2, -1, 1, 2, 3, 4, 5}]) → Lwin
  11. If(K - Q < 0, Lpos, K - Q > 0, Lneg, RandomElement[{-3, -2, -1, 1, 2, 3, 4}]) → Lloss
  12. RandomDiscrete({RandomElement[Lwin], RandomElement[Lloss]}, {85, 15}) → L
  13. Random(-20, 20) → Pstart
  14. RandomDiscrete({Pstart, 0}, {8, 2}) → P
  15. RandomDiscrete({-10, 10, 8, -8, 5, -5, 4, -4, 3, -3, 2, -2, 1, -1}, {1, 1, 1, 1, 3, 2, 3, 2, 3, 2, 4, 3, 5, 2}) → M
  16. Max({x_{one}, x_{two}}) → ans_{1}
  17. Min({x_{one}, x_{two}}) → ans_{2}
  18. If((K - Q) / L ≥ 0, 1, (K - Q) / L < 0, 0) → Finish
  19. If(Finish ≟ 1, ans_{1}, Finish ≟ 0, NaN) → x_{1}
  20. If(Finish ≟ 1, ans_{2}, Finish ≟ 0, NaN) → x_{2}
  21. If(Finish ≟ 1, "yes", Finish ≟ 0, "no") → obvious
  22. Textfield(text4) → InputBox1
  23. Textfield(guess2) → InputBox2
  24. Textfield(guess1) → InputBox3
  25. RandomElement({1, 2, 3, 4}) → whatweget2
  26. Element({{equal1, equal2, equal3, equal4}, {GT1, GT2, GT3, GT4}, {LT1, LT2, LT3, LT4}, {GTE1, GTE2, GTE3, GTE4}, {LTE1, LTE2, LTE3, LTE4}}, whatweget, whatweget2) → whattheysee
  27. Textfield(multchoice) → InputBox4
  28. If(Finish ≟ 1 ∧ L > 0, 1, Finish ≟ 1 ∧ L < 0, 2, Finish ≟ 0 ∧ L > 0, 3, Finish ≟ 0 ∧ L < 0, 4) → flipsign
  29. Element({{"G", "G", "A", "A"}, {"D", "F", "A", "B"}, {"F", "D", "B", "A"}, {"C", "E", "A", "B"}, {"E", "C", "B", "A"}}, whatweget, flipsign) → multchoiceanswer
  30. Vector(LeftPt, (x_{2} - 5, 0)) → LeftVector
  31. Vector(RightPt, (x_{1} + 5, 0)) → RightVector
  32. Line(LeftPt, RightPt) → WholeLine
  33. Segment(LeftPt, RightPt) → Segment1
  34. If(whatweget ≟ 1, Element[{equal1, equal2, equal3, equal4}, whatweget2]) → whattheysee2

AI Drawing Prompt Reference

Draw a horizontal number line with two key points marking the left and right bounds of the solution set. Connect these points with a thick segment to represent the interval. Above the line, sketch a V-shaped graph (absolute value function) with its vertex at the midpoint of the two points, opening upward. Based on the inequality type, shade the region between the points for ≤ or outside them for ≥. Below the line, display parameter values and an input box for a guessed solution, with text indicating whether a solution exists. The graph visually demonstrates how absolute-value equations and inequalities yield solution intervals or disjoint regions.
The prompt above was compiled from the original drawing commands and is for reference only.