Concept of Gradient (Slope) of a Line
Loading the math board and drawing, please wait…
In collections
Mathematics Form 2
This interactive GeoGebra example visually demonstrates the geometric meaning of the gradient (slope) of a straight line. The core mathematical concept is the definition of slope as the ratio of vertical change to horizontal change between two points on a line, along with how positive and negative slopes indicate the direction of inclination. Construction highlights: the Line command draws the line, Slope command computes and displays the slope value, Intersect finds intercepts with axes, Segment and Length build a right triangle for visual ratio, Midpoint marks midpoints, Circle and Angle illustrate related angle relationships, and Text adds dynamic labels. Suitable for middle school to high school students learning linear functions, coordinate geometry, or introductory calculus, this example helps learners intuitively grasp the connection between slope, angle of inclination, sign, and rate of change.
GeoGebra Commands & Parameters
SelectedIndex(Bahasa) → nnIf(nn ≟ 1, LaTeX["\text{Undefined}"], LaTeX["\text{Tidak tertakrif}"]) → Tex5Line(P, Q) → fSlope(f) → sIf(y(P) < y(Q), P, Q) → MIf(y(P) < y(Q), Q, P) → NLine(M, xAxis) → gLine(N, yAxis) → hIntersect(g, h) → ASegment(M, A) → iSegment(N, A) → jLength(i) → bLength(j) → cMidpoint(i) → BMidpoint(j) → CCircle(C, 0.8) → dLine(C, xAxis) → kIntersect(d, k) → D, EIf(nn ≟ 1, " units", " unit") → UTexIf(b ≤ 1, Text[b] + " unit", Text[b] + UTex) → Tex1If(c ≤ 1, Text[c] + " unit", Text[c] + UTex) → Tex2If(c ≤ 1, Text[c] + " unit", Text[c] + UTex) → Tex3If(y(Q) < 0, "(" + (Text[y(Q)]) + ")", Text[y(Q)]) → TyQText(x(P)) → TxPIf(x(Q) < 0, "(" + (Text[x(Q)]) + ")", Text[x(Q)]) → TxQText(y(P)) → TyPIf(Defined[s] ≟ false, Tex5, If[s ≥ 0, FractionText[(y(P) - y(Q)) / (x(P) - x(Q))], LaTeX["-" + (FractionText[(y(Q) - y(P)) / (x(P) - x(Q))])]]) → GftIf(a ≟ true, Gft, Text[(y(P) - y(Q)) / (x(P) - x(Q))]) → GtAngle(M, A, N) → αIf(nn ≟ 1, LaTeX["\text{Gradient of line PQ"], LaTeX["\text{Kecerunan garis PQ}"]) → text1If(nn ≟ 1, "Line that slopes up", "Garis condong ke atas") → KecPosIf(nn ≟ 1, "Line that slopes down", "Garis condong ke bawah") → KecNegIf(nn ≟ 1, "Horizontal line", "Garis mengufuk") → KecSifarIf(nn ≟ 1, "Vertical line", "Garis menegak") → KecttIf(s > 0, KecPos, s < 0, KecNeg, s ≟ 0, KecSifar, Defined[s] ≟ false, Kectt) → Tex4