Determine the Equation of a Straight Line Given Two Points
Loading the math board and drawing, please wait…
In collections
Coordinate Geometry of Straight Lines (E Math)
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
Line(C, B) → aIntersect(c, b) → NAngle(B, N, C) → αDistance(N, B) → distanceNBMidpoint(N, B) → MidptNBMidpoint(C, N) → MidptCNDistance(C, N) → distanceCNSegment(C, N) → dSegment(N, B) → eIntersect(g, f) → SSegment(B, S) → hSegment(S, P) → iMidpoint(S, P) → MidptSPMidpoint(B, S) → MidptBSPolygon(C, N, B) → poly1, j, k, lPolygon(B, S, P) → poly2, p, b_1, sTextfield(gradientanswer) → inputBox1Textfield(yinterceptanswer) → inputBox2If(yinterceptcorrect, "Well done!", "Oops, check your workings, try again!") → text16If(gradientcorrect, "Well done!", "Oops, check your workings, try again!") → text15Random(-4, 6) → P_1yRandom(-4, 6) → P_1xRandom(-4, 8) → P_2xRandom(-4, 8) → P_2yIf(P_1y < P_2y, (P_2x, P_2y), (P_1x, P_1y)) → B_rIf(¬(P_1y < P_2y), (P_2x, P_2y), (P_1x, P_1y)) → C_rIf(x(B) ≟ x(C), true, false) → verticallineBCTextfield(gradientanswertext) → inputBox1textFunction(((-(x(a) / y(a))) * x) - z(a) / y(a), Min[x(B), x(C)] - 15, Max[x(B), x(C)] + 15) → f_lCurveCartesian(x(B), t_y, t_y, y(C) - 15, y(B) + 15) → BCverticalTextfield(equationanswertext) → inputBox3textIf(gradientcorrect, "Well done!", "What is the rise/run of the vertical line?") → text15verticallineBCIf(yinterceptcorrect, "Well done!", "Are you sure the line cuts the y axis?!") → text16verticallineBCTextfield(yinterceptanswertext) → inputBox2textTextfield(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.