Graph Linear Relations from a Table

Graph Linear Relations from a Table
Loading the math board and drawing, please wait…
2019-03-06 03:28
This example demonstrates how to graph linear relations from table values. Key math concepts include linear functions and coordinate geometry. It uses GeoGebra commands such as Sequence, Polygon, Element, Zip, UnicodeToLetter, DynamicCoordinates, LaTeX, FitPoly, TableText, and Textfield. Suitable for middle school and above students to learn graphing linear functions.

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

AI Drawing Prompt Reference

Graph the linear relation by first completing the table of values. Substitute the given x values into the linear equation to find the corresponding y values. Then, plot the points on the grid by dragging them to the correct x and y coordinates.
The prompt above was compiled from the original drawing commands and is for reference only.