Modeling a Linear Function from Context

Modeling a Linear Function from Context
Loading the math board and drawing, please wait…
2012-07-10 12:24
This example demonstrates how to build a linear function from a real-world context and visualize its graph. It covers linear functions, slope and intercept, input variables, function modeling, and table-based data representation. The construction uses Sequence to generate month or data lists, Function to define f, Line to draw the graph, Intersect to locate key points, Textfield and inputBox1/inputBox2 for user input, TableText and Table1/Table2 for tabular display, and VerticalText plus multiple text objects for explanations. It is suitable for middle-school or high-school algebra, introductory modeling, and GeoGebra classroom demonstrations.

GeoGebra Commands & Parameters

  1. Sequence(k, k, 0, maxmonth, 1) → Months
  2. Textfield(A_0) → inputBox1
  3. Textfield(m) → inputBox2
  4. Line(A, B) → e
  5. VerticalText("Cost \ in \ dollars") → text4
  6. Intersect(f, x = 0) → C
  7. Intersect(f, y = 0) → D
  8. Function(f, x(C), 100) → h
  9. TableText({{"Games", "Cost in dollars ", "Difference"}, {0, A_0}, {1, A_0 + m, form1}, {2, A_0 + (2 * m), form2}, {3, A_0 + (3 * m), form3}}, "c|_") → Table1
  10. TableText({{"Games", "Cost, f(x), in dollars "}, {0, formA0}, {1, formA1}, {2, formA2}, {3, formA3}}, "c|_") → Table2