Graphing Linear Relations from a Table of Values

Graphing Linear Relations from a Table of Values
Loading the math board and drawing, please wait…
2018-11-27 23:45
This example demonstrates how to graph a line using a table of values. Key mathematical concepts include linear equations. Construction highlights the use of GeoGebra commands such as Sequence, Polygon, Element, Zip, etc. Suitable for middle school and above students to learn how to graph linear relations.

GeoGebra Commands & Parameters

  1. Sequence((i, -4.8), i, 14.5, 18.5, 1) → homeBasePoints
  2. Polygon((-9, -9), (-9, 9), (9, 9), (9, -9)) → viewBox, f, g, h, i
  3. Element(questionList, questionListIndex) → questionNum
  4. Element(C2:C5, questionNum) → currentXValues
  5. Element(B2:B5, questionNum) → currentYIntercept
  6. Element(A2:A11, questionNum) → currentSlope
  7. Zip(dottedCorrectLine(A), A, currentXValues) → currentYValues
  8. Zip(A ≟ B, A, usersPreTaskValues, B, currentYValues) → arePreTasksCorrect
  9. UnicodeToLetter(10007) → xmark
  10. UnicodeToLetter(10003) → cmark
  11. DynamicCoordinates(freeA, If[IsInRegion[freeA, viewBox], x(freeA), x(Element[homeBasePoints, 1])], If[IsInRegion[freeA, viewBox], y(freeA), y(Element[homeBasePoints, 1])]) → A
  12. DynamicCoordinates(freeB, If[IsInRegion[freeB, viewBox], x(freeB), x(Element[homeBasePoints, 2])], If[IsInRegion[freeB, viewBox], y(freeB), y(Element[homeBasePoints, 2])]) → B
  13. DynamicCoordinates(freeC, If[IsInRegion[freeC, viewBox], x(freeC), x(Element[homeBasePoints, 3])], If[IsInRegion[freeC, viewBox], y(freeC), y(Element[homeBasePoints, 3])]) → C
  14. DynamicCoordinates(freeD, If[IsInRegion[freeD, viewBox], x(freeD), x(Element[homeBasePoints, 4])], If[IsInRegion[freeD, viewBox], y(freeD), y(Element[homeBasePoints, 4])]) → D
  15. DynamicCoordinates(freeE, If[IsInRegion[freeE, viewBox], x(freeE), x(Element[homeBasePoints, 5])], If[IsInRegion[freeE, viewBox], y(freeE), y(Element[homeBasePoints, 5])]) → E
  16. Zip((A, B), A, currentXValues, B, currentYValues) → correctPoints
  17. LaTeX("\text{Points:}") → pointsLabel
  18. LaTeX("\text{Please plot all points.}") → feedbackPlotAllPoints
  19. Sequence(i, i, -8, 8, 4) → C3
  20. Sequence(i, i, -4, 4, 2) → C5
  21. FitPoly(usersPoints, 1) → usersLine
  22. LaTeX(Element[D2:D5, questionNum]) → displayEquation
  23. Zip("\vphantom{\tfrac{1}{2}}" + (A), A, currentXValues) → sizedXValues
  24. TableText({Join[{{"\cellcolor{#ffcc80}{x}"}, sizedXValues}], Join[{{"\cellcolor{#ffcc80}{y}"}, currentYValues}]}, "|_vc") → preTaskLabel
  25. Textfield(textPreTask1) → ansBoxPreTask1
  26. Textfield(textPreTask2) → ansBoxPreTask2
  27. Textfield(textPreTask3) → ansBoxPreTask3
  28. Textfield(textPreTask4) → ansBoxPreTask4
  29. Textfield(textPreTask5) → ansBoxPreTask5
  30. LaTeX("\text{Substitute the values of \(x\) into\\\(" + displayEquation + "\) and solve for the\\corresponding \(y\) values.}") → feedbackPreTask
  31. Zip("\vphantom{\tfrac{\tfrac{1}{2}}{3}}" + (If[¬A, ("y=" * B), ""]), A, arePreTasksCorrect, B, currentYValues) → hints
  32. TableText({hints}, "v") → preTaskLabelHint
  33. LaTeX("\text{\textbf{Question: } Graph the linear relation by \textbf{first} completing the table of values.\\\textbf{Instructions: }Complete the table of values. Then plot the points by dragging them\\onto the grid.}") → TEXT