Estimating Gas Mileage: Linear Functions and Scatter Plot

Estimating Gas Mileage: Linear Functions and Scatter Plot
Loading the math board and drawing, please wait…
2012-07-10 21:32
This GeoGebra example demonstrates how to estimate vehicle gas mileage (miles per gallon) by plotting recorded gallons of gas against total miles traveled and fitting a linear model to the data. It covers core algebra concepts including linear equations, linear functions, scatter plots, and coordinate geometry. The construction uses GeoGebra commands such as Corner, Polygon, Textfield, Sequence, Point, Line, and VerticalText, together with objects like Corn1–Corn4, poly1, Slid, and point pairs A1 through B11 to build an interactive coordinate interface. Suitable for middle school algebra and high school function instruction, it supports linear modeling, data trend analysis, and dynamic classroom demonstration.

GeoGebra Commands & Parameters

  1. Corner(2) → Corn2
  2. Corner(3) → Corn3
  3. Polygon(Corn1, Corn2, Corn3, Corn4) → poly1, corn1, corn2, corn3, corn4
  4. Textfield(A2) → InA2
  5. Textfield(A3) → InA3
  6. Textfield(A4) → InA4
  7. Textfield(A5) → InA5
  8. Textfield(A6) → InA6
  9. Textfield(A7) → InA7
  10. Textfield(A8) → InA8
  11. Textfield(A9) → InA9
  12. Textfield(A10) → InA10
  13. Textfield(A11) → InA11
  14. Textfield(B11) → InB11
  15. Textfield(B10) → InB10
  16. Textfield(B9) → InB9
  17. Textfield(B8) → InB8
  18. Textfield(B7) → InB7
  19. Textfield(B6) → InB6
  20. Textfield(B5) → InB5
  21. Textfield(B4) → InB4
  22. Textfield(B3) → InB3
  23. Textfield(B2) → InB2
  24. Sequence(Segment[(24.5, 60 + (40 * j)), (32.5, 60 + (40 * j))], j, 0, 11) → LnList
  25. Sequence(Segment[(24.5 + (4 * j), 60), (24.5 + (4 * j), 500)], j, 0, 2) → LnList2
  26. Point(a) → mpg10
  27. Line((0, 0), mpg10) → Lmpg10
  28. Line((0, 0), mpg22) → Lmpg22
  29. VerticalText("Miles") → LabelMiles

AI Drawing Prompt Reference

Draw a coordinate system with the x-axis representing gallons and the y-axis representing miles. Draw dashed lines for 10 miles per gallon and 22 miles per gallon. Mark the x-axis with 0 to 11 intervals, each representing 4 gallons. Mark the y-axis with 0 to 500 intervals, each representing 40 miles. Add a vertical text 'Miles' on the y-axis.
The prompt above was compiled from the original drawing commands and is for reference only.