Writing Line Equations from Two Points

Writing Line Equations from Two Points
Loading the math board and drawing, please wait…
2020-08-18 05:59
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

  1. Random(-15, 15) → x_{1}
  2. Random(-15, 15) → x_{2}
  3. Random(-15, 15) → y_{1}
  4. Random(-15, 15) → y_{2}
  5. Line(PointA, PointB) → answer1
  6. Textfield(guess1) → InputBox1
  7. Textfield(guess2) → InputBox2
  8. Textfield(guess3) → InputBox3
  9. Line((0, y_{1}), y = (m * x)) → answer3
  10. Textfield(guess4) → InputBox4
  11. Line((x_{1}, 0), y = (m * x)) → answer4
  12. Line((x_{1}, 0), (0, y_{1})) → answer5
  13. Textfield(guess5) → InputBox5
  14. Textfield(guess6) → InputBox6
  15. Textfield(guess6b) → InputBox6b
  16. RandomDiscrete({1, 2, 3, 4, 5, 6, 7, 8, 9}, {5, 3, 2, 3, 4, 2, 5, 5, 2}) → whatweget
  17. Textfield(guess7) → InputBox7
  18. Random(-15, 15) → C
  19. Line(PointA, (x_{2} * x) + (y_{2} * y) = C) → answer7
  20. Textfield(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.