THE GEOMETRY CHALLENGE
One rule. Two different results.
A student-built line tool uses the slope formula. Compare what happens when the tool receives these two pairs of points.
The program draws the line. y = 2x
The program cannot calculate the slope. No line is drawn.
Find out why the program fails. Develop a rule that can draw the correct line through any two distinct points and recognize when the two selected points coincide.
From the problem to a computational solution
CT–STEM pedagogical framework applied to a mathematics task
Frame the problem
Engage
The tool receives the coordinates of two points. Clarify the required inputs and outputs, and identify the mathematical cases that the solution must address.
DESIGN TASK
How can a program draw the line through two selected points without failing on special cases?Problem information
Investigate the cases
Explore
Keep A(1, 2) fixed. Move B to investigate how changes in its coordinates affect the slope and the line determined by the two points.
Represent the findings
Explain
Organize the observations into three cases. Explain when the slope formula is valid and when the two points determine a unique line.
The unique line is y = 2x.
Develop and improve a solution
Elaborate
Compare the slope-only rule with a rule that checks the input conditions. Use the point pairs in Explore to test what each rule returns, then explain the necessary changes.
Test a nonvertical line, a vertical line, and coincident points. Which input reveals the problem with the slope-only rule?
Evidence-based evaluation across all phases
Evaluate
Use evidence from each phase to examine students’ mathematical understanding, CT practices, and the quality of their developing solution. Evaluation informs feedback and may lead to further exploration, explanation, or revision.
Distinguish nonvertical, vertical, and coincident cases, and explain when the slope formula is defined.
Identify relevant information, represent cases, develop conditional rules, and test and debug solutions.
Check that the rule handles all three cases and explain why the conditions cover every pair of input points.