Graphing Linear Relations from Intercepts
Loading the math board and drawing, please wait…
This example demonstrates how to graph a line using intercepts. Key mathematical concepts include linear equations. Mainly uses GeoGebra commands such as Sequence, Polygon, Element, Zip, UnicodeToLetter, DynamicCoordinates, LaTeX, FitPoly, Textfield, Line, TableText, etc. Suitable for middle school and above students to learn how to graph linear relations.
GeoGebra Commands & Parameters
Sequence((i, -2.65), i, 11.5, 12.5, 1) → homeBasePointsPolygon((-7, -7), (-7, 7), (7, 7), (7, -7)) → viewBox, f, g, h, iElement(questionList, questionListIndex) → questionNumElement(B2:B5, questionNum) → currentYInterceptElement(A2:A5, questionNum) → currentXInterceptElement(C2:C5, questionNum) → dottedCorrectLineZip(A ≟ B, A, usersPreTaskValues, B, {currentXIntercept, currentYIntercept}) → 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])]) → BLaTeX("\text{Points:}") → pointsLabelLaTeX("\text{Please plot all points.}") → feedbackPlotAllPointsFitPoly(usersPoints, 1) → usersLineElement(D2:D5, questionNum) → displayEquationTextfield(textPreTask1) → ansBoxPreTask1Textfield(textPreTask2) → ansBoxPreTask2Zip("\vphantom{\dfrac{\dfrac{1}{2}}{\frac{3}{4}}}" + (If[¬A, B, ""]), A, arePreTasksCorrect, B, {("x\text{-intercept}=" * currentXIntercept), ("y\text{-intercept}=" * currentYIntercept)}) → hintsLine((A2, 0), (0, B2)) → C2Line((A3, 0), (0, B3)) → C3Line((A4, 0), (0, B4)) → C4Line((A5, 0), (0, B5)) → C5TableText({hints}, "v") → preTaskLabelHintLaTeX("\text{To find the \(x\)-intercept, substitute\\\(y=0\) into \(" + displayEquation + "\) and solve for \(x\).\\To find the \(y\)-intercept, substitute\\\(x=0\) into \(" + displayEquation + "\) and solve for \(y\).}") → feedbackPreTaskLaTeX("\text{\textbf{Question: }Graph the linear relation by \textbf{first} calculating the \(x\)- and \(y\)-intercepts.\\\textbf{Instructions: }Determine the intercepts. Then plot the intercepts by dragging points onto\\the grid.}") → TEXTTableText({{"\cellcolor{#ffcc80}{x\text{-intercept value}}"}, {"\vphantom{\tfrac{1}{2}}" + currentXIntercept}, {"\cellcolor{#ffcc80}{y\text{-intercept value}}"}, {"\vphantom{\tfrac{1}{2}}" + currentYIntercept}}, "|_c") → preTaskLabel
AI Drawing Prompt Reference
Draw a line by first finding its x-intercept and y-intercept. The x-intercept is where the line crosses the x-axis when y=0, and the y-intercept is where the line crosses the y-axis when x=0. Use the given x-intercept and y-intercept values to place points on the grid, then draw the line connecting these two points.
The prompt above was compiled from the original drawing commands and is for reference only.