Equation of a Line Through Two Points

Equation of a Line Through Two Points
Loading the math board and drawing, please wait…
2019-03-01 21:48
This example demonstrates how to determine the equation of a line passing through two points. It involves core math concepts like linear equations, slope, y-intercept, and coordinate geometry. Construction highlights include commands such as UnicodeToLetter, Textfield, Polygon, Line, Slope, LaTeX, TryAnother, targetPoint1, targetPointTemp, targetPoint2, cmark, correct, Initialize, textUserFunction, ansBoxEquation, userFunction, viewBox, f, g, h, i, correctLineSolid, isChecked, isCorrect, HowDidIDo, xmark, incorrect, dataEntryInstructions, mDecimal, bDecimal, p, equationLabel, TEXT, feedback, correctLineDotted, lineLabel. Suitable for high school students learning coordinate geometry.

GeoGebra Commands & Parameters

  1. UnicodeToLetter(10003) → cmark
  2. Textfield(textUserFunction) → ansBoxEquation
  3. Polygon((-11, -11), (-11, 11), (11, 11), (11, -11)) → viewBox, f, g, h, i
  4. Line(targetPoint1, targetPoint2) → correctLineSolid
  5. UnicodeToLetter(10007) → xmark
  6. Slope(correctLineSolid) → mDecimal
  7. LaTeX("\vphantom{\dfrac{1}{2}}y=") → equationLabel
  8. LaTeX((((("\text{\textbf{Question: }A line passes through the points \(" * targetPoint1) * "\) and \(") * targetPoint2) * "\). What is the\\equation of this line?\\\textbf{Instructions: }Enter an equation for this line in the form \(y=mx+b\).}")) → TEXT
  9. Line(targetPoint1, targetPoint2) → correctLineDotted
  10. LaTeX(("y=" * p)) → lineLabel

AI Drawing Prompt Reference

Draw a coordinate plane with two lines passing through two points, one solid and one dashed. Label the slope and equation of the lines. First, draw a bounding box, then mark two points and connect them with a solid line, showing their coordinates. Next, calculate the slope of the line and display its value next to it. Finally, label the equation of the line as y=mx+b, where m is the slope and b is the y-intercept.
The prompt above was compiled from the original drawing commands and is for reference only.