Graphing Absolute Value of a Linear Function with Random Practice

Graphing Absolute Value of a Linear Function with Random Practice
Loading the math board and drawing, please wait…
2019-02-27 22:36
① This example demonstrates how to graph the absolute value of a linear function y = |mx + b|, with randomly generated parameters for interactive practice. ② Core math concepts include the V-shaped graph of absolute value functions, slope and intercept of linear functions, x-intercepts, and graphing using key points such as the vertex and intercepts. ③ Construction highlights: from the summary, it uses Random and Element to select random parameters, If and Intersect to compute intersections, Zip, Sort, Flatten to manage point lists, Point and Polygon to construct key points and shapes, LaTeX for formula display, Ray for drawing rays, and many interactive objects (buttons, feedback marks) for self-assessment. ④ Suitable for middle or high school algebra classes or self-study, helping students understand the graph of absolute value functions and practice sketching graphs from function expressions.

GeoGebra Commands & Parameters

  1. Random(1, 10) → aIndx
  2. Element(aValLst, aIndx) → mVal
  3. If(abs(mVal) ≥ 1 / 2, Random[-4, 4], If[abs(mVal) ≤ 1 / 4, Random[-1, 1], Random[-2, 2]]) → bVal
  4. Intersect(g, xAxis) → XinterceptPt
  5. Zip((A, f(A)), A, keyPtxVals) → keyPointsG
  6. Element(keyPointsG, 2) → vertexPoint
  7. Sort(userPts) → userPtsSorted
  8. Element(userPtsSorted, 2) → UserPtMiddle
  9. Zip((A, g(A)), A, keyPtxVals) → keyPointsF
  10. Flatten(Sequence[Sequence[(i, j), i, -10, 10], j, -10, 10]) → gridSpace
  11. Point(Join[{gridSpace, keyPointsF, keyPointsG, {Element[homeBase, 2]}}]) → B3
  12. Point(Join[{gridSpace, keyPointsF, keyPointsG, {Element[homeBase, 1]}}]) → B2
  13. Point(Join[{gridSpace, keyPointsF, keyPointsG, {Element[homeBase, 3]}}]) → B4
  14. UnicodeToLetter(10007) → xmark
  15. UnicodeToLetter(10003) → cmark
  16. Polygon({bottomLeft, (x(bottomLeft), y(topRight)), topRight, (x(topRight), y(bottomLeft))}) → viewbox
  17. LaTeX(((("\vphantom{\dfrac{1}{1}}" * Element[aValFmt, aIndx]) * "x") * If[bVal ≟ 0, "", If[bVal < 0, ("" * bVal), ("+" * bVal)]])) → basicExpr
  18. LaTeX((((("\text{\textbf{Question: }The graph of \textcolor{#d32f2f}{\(y=" * basicExpr) * "\) } is shown. Graph \textcolor{#1565c0}{\(y=f(x)=\vert") * basicExpr) * "\vert\)}. ")) → MainInstruc
  19. LaTeX((("f(x) = \mid" * basicExpr) * "\mid")) → lblAbsFunc
  20. LaTeX(("y=" * basicExpr)) → lblLinearFunc
  21. LaTeX((((((("\text{Any point on \(y=" * basicExpr) * "\) whose \(y\)-value \\is \(0\) or positive will also be on \\\(f(x)=\mid") * basicExpr) * "\mid\). \\Any point on \(y=") * basicExpr) * "\) whose \(y\)-value \\is negative will be reflected in the \(x\)-axis.}")) → fbExplanation
  22. Element(userPtsSorted, 1) → UserPtLeft
  23. Element(userPtsSorted, 3) → UserPtRight
  24. Ray(UserPtMiddle, UserPtRight) → arm_1
  25. Ray(UserPtMiddle, UserPtLeft) → arm_2
  26. LaTeX("\text{\textbf{Instructions: }Drag one of the `Points to Plot' to the \(x\)-intercept of \(f(x)\), and the other \\two `Points to Plot' to two points on \(f(x)\) that lie on different sides of the \(x\)-intercept.}") → SpecInstruc

AI Drawing Prompt Reference

Draw the graph of an absolute value linear function y = |mx + b| with randomly generated m and b. Highlight the V-shaped graph, vertex, and x-intercepts. Use grid points and key points to plot the function, labeling the vertex and intercepts. Add interactive buttons allowing users to drag points to determine key points on the graph, with correct formulas and explanations displayed.
The prompt above was compiled from the original drawing commands and is for reference only.