Determine the Equation of a Straight Line Given Two Points

Determine the Equation of a Straight Line Given Two Points
Loading the math board and drawing, please wait…
2012-03-19 18:03
This example demonstrates how to determine the equation of a straight line given two points. Key mathematical concepts include straight line equations and coordinate geometry. It uses commands such as Line, Intersect, Angle, Distance, Midpoint, Segment, Polygon, Textfield, If, Random, Function, CurveCartesian in GeoGebra. Suitable for students at middle school level and above to learn about constructing and applying straight line equations.

GeoGebra Commands & Parameters

  1. Line(C, B) → a
  2. Intersect(c, b) → N
  3. Angle(B, N, C) → α
  4. Distance(N, B) → distanceNB
  5. Midpoint(N, B) → MidptNB
  6. Midpoint(C, N) → MidptCN
  7. Distance(C, N) → distanceCN
  8. Segment(C, N) → d
  9. Segment(N, B) → e
  10. Intersect(g, f) → S
  11. Segment(B, S) → h
  12. Segment(S, P) → i
  13. Midpoint(S, P) → MidptSP
  14. Midpoint(B, S) → MidptBS
  15. Polygon(C, N, B) → poly1, j, k, l
  16. Polygon(B, S, P) → poly2, p, b_1, s
  17. Textfield(gradientanswer) → inputBox1
  18. Textfield(yinterceptanswer) → inputBox2
  19. If(yinterceptcorrect, "Well done!", "Oops, check your workings, try again!") → text16
  20. If(gradientcorrect, "Well done!", "Oops, check your workings, try again!") → text15
  21. Random(-4, 6) → P_1y
  22. Random(-4, 6) → P_1x
  23. Random(-4, 8) → P_2x
  24. Random(-4, 8) → P_2y
  25. If(P_1y < P_2y, (P_2x, P_2y), (P_1x, P_1y)) → B_r
  26. If(¬(P_1y < P_2y), (P_2x, P_2y), (P_1x, P_1y)) → C_r
  27. If(x(B) ≟ x(C), true, false) → verticallineBC
  28. Textfield(gradientanswertext) → inputBox1text
  29. Function(((-(x(a) / y(a))) * x) - z(a) / y(a), Min[x(B), x(C)] - 15, Max[x(B), x(C)] + 15) → f_l
  30. CurveCartesian(x(B), t_y, t_y, y(C) - 15, y(B) + 15) → BCvertical
  31. Textfield(equationanswertext) → inputBox3text
  32. If(gradientcorrect, "Well done!", "What is the rise/run of the vertical line?") → text15verticallineBC
  33. If(yinterceptcorrect, "Well done!", "Are you sure the line cuts the y axis?!") → text16verticallineBC
  34. Textfield(yinterceptanswertext) → inputBox2text
  35. Textfield(f_{ans}) → inputBox3

AI Drawing Prompt Reference

Draw a graph with two random points B and C. Draw the line through B and C. Calculate the intersection point N, angle α, distances, and midpoints. Then construct line segments, parallel lines, perpendicular lines, triangles, and rectangles. Finally, provide the equation of the line.
The prompt above was compiled from the original drawing commands and is for reference only.