Writing Line Equations from Two Points
Loading the math board and drawing, please wait…
In collections
A Plethora of Practice Problems
This example demonstrates how to construct the equation of a line in the coordinate plane from two given points, and how to verify students’ typed answers using interactive input and feedback. The key concepts are line equations (e.g., slope-intercept and general-form thinking), slope, special cases such as horizontal/vertical lines, and the perpendicular-slope relationship. Construction uses randomized selection of coordinates to create two points (objects x1, x2, y1, y2, PointA, PointB) and then generates the line (GeoGebra commands: Random, Line). It also includes a structured user interface for practice and checking: Textfield, InputBox, buttons, and multiple prompt/guess/answer objects (e.g., text1~text10, guess1~guess6, answer1~answer6). The model is well-suited for middle and high school coordinate geometry, function graphing practice, and interactive self-assessment.
GeoGebra Commands & Parameters
Random(-15, 15) → x_{1}Random(-15, 15) → x_{2}Random(-15, 15) → y_{1}Random(-15, 15) → y_{2}Line(PointA, PointB) → answer1Textfield(guess1) → InputBox1Textfield(guess2) → InputBox2Textfield(guess3) → InputBox3Line((0, y_{1}), y = (m * x)) → answer3Textfield(guess4) → InputBox4Line((x_{1}, 0), y = (m * x)) → answer4Line((x_{1}, 0), (0, y_{1})) → answer5Textfield(guess5) → InputBox5Textfield(guess6) → InputBox6Textfield(guess6b) → InputBox6bRandomDiscrete({1, 2, 3, 4, 5, 6, 7, 8, 9}, {5, 3, 2, 3, 4, 2, 5, 5, 2}) → whatwegetTextfield(guess7) → InputBox7Random(-15, 15) → CLine(PointA, (x_{2} * x) + (y_{2} * y) = C) → answer7Textfield(guess8) → InputBox8
AI Drawing Prompt Reference
Please draw a graph containing two random points. First, generate two points and construct a line using them. Then, add multiple input boxes and answer areas for students to input line equations and compare with correct answers. The construction order is: generate points first, then construct the line, and finally add interactive elements.
The prompt above was compiled from the original drawing commands and is for reference only.