Slope of a Line: Horizontal and Vertical Change

Slope of a Line: Horizontal and Vertical Change
Loading the math board and drawing, please wait…
2024-08-23 09:23
This example demonstrates how to calculate the slope of a line using the horizontal change (run) and vertical change (rise) between any two points on the line. The construction features interactive points A and B that students can drag to different positions along the line, along with colored vectors u and v that visually represent the horizontal displacement and vertical displacement between the two points. These visual tools help learners intuitively grasp the geometric meaning of the slope formula m = rise / run. As students move points A and B, the applet dynamically updates the run and rise values, showing in real time how changes in position affect the calculated slope. The step-by-step presentation and dynamic adjustment capability reinforce the connection between the algebraic slope formula and its geometric interpretation. Special cases are also explored: when the line is horizontal, the rise is zero and the slope equals zero; when the line is vertical, the run is zero and the slope is undefined. This hands-on exploration allows students to discover key properties of slope on their own. The applet is particularly valuable for helping students understand why the slope of a straight line remains constant regardless of which two points are chosen, since any pair of points will yield the same ratio of rise to run. Educators can use this applet as an interactive teaching aid during lessons on linear functions, coordinate geometry, and the foundations of calculus. Students benefit from the immediate visual feedback and the ability to experiment freely, building both conceptual understanding and computational fluency with slope calculations.

GeoGebra Commands & Parameters

  1. Line(D, E) → g
  2. Point(g) → B
  3. Point(g) → A
  4. Line(A, B) → f
  5. Sequence(Vector[A + (sgn(x(B) - x(A)) * (i, 0)), A + (sgn(x(B) - x(A)) * (i + 1, 0))], i, 0, abs(x(B) - x(A)) - 1) → l1
  6. Sequence(Vector[(x(B), y(A)) + (sgn(y(B) - y(A)) * (0, i)), (x(B), y(A)) + (sgn(y(B) - y(A)) * (0, i + 1))], i, 0, abs(y(B) - y(A)) - 1) → l2
  7. If(step1 ∧ b ∧ (GCD[run, rise] ≠ 1 ∨ run < 0 ∨ rise < 0) ∧ IntegerPoints, true, false) → showstep2
  8. Vector(A, (x(B), y(A))) → u
  9. Vector((x(B), y(A)), B) → v

AI Drawing Prompt Reference

Draw a line with two draggable points on it. Represent the horizontal and vertical displacement between the points with two vectors of different colors. Dynamically show the start and end points of these vectors, as well as the horizontal and vertical vectors between them. When dragging the points, calculate and display the horizontal and vertical displacements and their ratio, which is the slope. Special cases for horizontal and vertical lines are noted: horizontal lines have a slope of zero, and vertical lines have an undefined slope.
The prompt above was compiled from the original drawing commands and is for reference only.