Graph Linear Relations from a Table
Loading the math board and drawing, please wait…
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
Sequence((i, -4.8), i, 14.5, 18.5, 1) → homeBasePointsPolygon((-9, -9), (-9, 9), (9, 9), (9, -9)) → viewBox, f, g, h, iElement(questionList, questionListIndex) → questionNumElement(C2:C5, questionNum) → currentXValuesElement(B2:B5, questionNum) → currentYInterceptElement(A2:A11, questionNum) → currentSlopeZip(dottedCorrectLine(A), A, currentXValues) → currentYValuesZip(A ≟ B, A, usersPreTaskValues, B, currentYValues) → arePreTasksCorrectUnicodeToLetter(10007) → xmarkUnicodeToLetter(10003) → cmarkDynamicCoordinates(freeA, If[IsInRegion[freeA, viewBox], x(freeA), x(Element[homeBasePoints, 1])], If[IsInRegion[freeA, viewBox], y(freeA), y(Element[homeBasePoints, 1])]) → ADynamicCoordinates(freeB, If[IsInRegion[freeB, viewBox], x(freeB), x(Element[homeBasePoints, 2])], If[IsInRegion[freeB, viewBox], y(freeB), y(Element[homeBasePoints, 2])]) → BDynamicCoordinates(freeC, If[IsInRegion[freeC, viewBox], x(freeC), x(Element[homeBasePoints, 3])], If[IsInRegion[freeC, viewBox], y(freeC), y(Element[homeBasePoints, 3])]) → CDynamicCoordinates(freeD, If[IsInRegion[freeD, viewBox], x(freeD), x(Element[homeBasePoints, 4])], If[IsInRegion[freeD, viewBox], y(freeD), y(Element[homeBasePoints, 4])]) → DDynamicCoordinates(freeE, If[IsInRegion[freeE, viewBox], x(freeE), x(Element[homeBasePoints, 5])], If[IsInRegion[freeE, viewBox], y(freeE), y(Element[homeBasePoints, 5])]) → EZip((A, B), A, currentXValues, B, currentYValues) → correctPointsLaTeX("\text{Points:}") → pointsLabelLaTeX("\text{Please plot all points.}") → feedbackPlotAllPointsSequence(i, i, -8, 8, 4) → C3Sequence(i, i, -4, 4, 2) → C5FitPoly(usersPoints, 1) → usersLineLaTeX(Element[D2:D5, questionNum]) → displayEquationZip("\vphantom{\tfrac{1}{2}}" + (A), A, currentXValues) → sizedXValuesTableText({Join[{{"\cellcolor{#ffcc80}{x}"}, sizedXValues}], Join[{{"\cellcolor{#ffcc80}{y}"}, currentYValues}]}, "|_vc") → preTaskLabelTextfield(textPreTask1) → ansBoxPreTask1Textfield(textPreTask2) → ansBoxPreTask2Textfield(textPreTask3) → ansBoxPreTask3Textfield(textPreTask4) → ansBoxPreTask4Textfield(textPreTask5) → ansBoxPreTask5LaTeX("\text{Substitute the values of \(x\) into\\\(" + displayEquation + "\) and solve for the\\corresponding \(y\) values.}") → feedbackPreTaskZip("\vphantom{\tfrac{\tfrac{1}{2}}{3}}" + (If[¬A, ("y=" * B), ""]), A, arePreTasksCorrect, B, currentYValues) → hintsTableText({hints}, "v") → preTaskLabelHintLaTeX("\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.