Distance Between Two Points - Interactive GeoGebra Example

Distance Between Two Points - Interactive GeoGebra Example
Loading the math board and drawing, please wait…
2017-12-29 11:25
In collections Mathematics Form 2
This example demonstrates how to visually derive and verify the distance formula between two points in a Cartesian plane using GeoGebra's geometric construction tools. Core mathematical concepts include: the distance formula (d = √[(x₂-x₁)² + (y₂-y₁)²]), the Pythagorean theorem as its geometric foundation, line segment length, slope, and angle of inclination. Construction details: define two draggable points P and Q with coordinate variables x_P, y_P, x_Q, y_Q; construct Segment PQ; draw a Circle centered at one point with radius equal to PQ to visualize distance; compute Midpoint M; display numerical distance via Length and Text; calculate Slope and Angle α of the segment; use If conditional logic for interactive feedback. The construction connects algebraic formulas with geometric intuition. Suitable for middle school to high school students studying analytic geometry, coordinate geometry, or Euclidean geometry foundations.

GeoGebra Commands & Parameters

  1. Segment(P, Q) → f
  2. Slope(Line[P, Q]) → s
  3. If(y(P) ≤ y(Q), P, Q) → M
  4. If(y(P) ≤ y(Q), Q, P) → N
  5. Line(M, xAxis) → g
  6. Line(N, yAxis) → h
  7. Intersect(g, h) → K
  8. Angle(N, K, M) → α
  9. Line(N, xAxis) → j
  10. Line(M, yAxis) → k
  11. Intersect(j, yAxis) → C
  12. Intersect(h, xAxis) → D
  13. Intersect(k, xAxis) → E
  14. Intersect(g, yAxis) → F
  15. Segment(N, D) → l
  16. Segment(N, C) → m
  17. Segment(M, F) → n
  18. Segment(M, E) → p
  19. Segment(N, K) → q
  20. Segment(M, K) → r
  21. Midpoint(N, K) → A
  22. Circle(A, 0.5) → c
  23. Line(A, xAxis) → t
  24. Intersect(c, t) → G, H
  25. Length(r) → a
  26. Length(q) → b
  27. Midpoint(M, K) → B
  28. Text(x(P)) → x_P
  29. Text(y(P)) → y_P
  30. If(x(Q) ≥ 0, Text[x(Q)], "(" + (Text[x(Q)]) + ")") → x_Q
  31. If(y(Q) ≥ 0, Text[y(Q)], "(" + (Text[y(Q)]) + ")") → y_Q
  32. If(Xv ≥ 0, Text[Xv], "(" + (Text[Xv]) + ")") → Xt
  33. If(Yv ≥ 0, Text[Yv], "(" + (Text[Yv]) + ")") → Yt
  34. SelectedIndex(Bahasa) → nn
  35. If(nn ≟ 1, "Distance PQ", "Jarak PQ") → text4
  36. If(nn ≟ 1, "units", "unit") → UTex

AI Drawing Prompt Reference

Create a Cartesian coordinate system and drag points P and Q to change their positions. Construct line segment PQ, calculate its slope and angle. Draw the midpoint M of PQ and a circle centered at M with radius PQ. Display the length of PQ and calculate its slope and angle. Construct auxiliary lines and intersections based on the positions of P and Q to help understand the distance formula and angle relationships.
The prompt above was compiled from the original drawing commands and is for reference only.