Completing the Square (Part 3): A Geometric View

Completing the Square (Part 3): A Geometric View
Loading the math board and drawing, please wait…
2020-09-08 16:14
This example demonstrates, in a step-by-step geometric way, how completing the square rewrites a quadratic expression into a perfect-square form and how the corresponding graph structure changes under translation. It focuses on the key ideas of completing the square, converting a quadratic function to vertex (top) form, and interpreting linear/constant terms through geometric construction. Construction-wise, it leverages GeoGebra commands and objects shown in the summary: Polygon to build the main geometric pieces used for the visual “rearrangement”; Sequence together with Segment to create adjustable segmented elements and boundary lines; Textfield/Text to label parameters and intermediate steps; inputBox1 to drive parameters and computed helper quantities; add to maintain/update constructed relationships; and multiple buttons/step controls (button1~button7, step) to guide the incremental completion process. Suitable for middle/high school students learning quadratic functions and algebra-to-geometry connections, and ideal for classroom demonstrations or self-study visualization.

GeoGebra Commands & Parameters

  1. Polygon((0, 0), (x1, 0), (x1, x1), (0, x1)) → Poly1, f, g, h, i
  2. Sequence(Polygon[(0, x1 - 1 + i), (x1, x1 - 1 + i), (x1, x1 + i), (0, x1 + i)], i, 1, b / 2) → hori
  3. Sequence(Polygon[(x1 - 1 + i, 0), (x1 + i, 0), (x1 + i, x1), (x1 - 1 + i, x1)], i, 1, b / 2) → vert
  4. Textfield(c) → inputBox1
  5. Sequence(Sequence[Polygon[(x1 - 1 + i, x1 - 1 + j), (x1 + i, x1 - 1 + j), (x1 + i, x1 + j), (x1 - 1 + i, x1 + j)], i, 1, b / 2], j, 1, b / 2) → add
  6. Textfield(fx2) → inputBox2
  7. Polygon((0, x1 + b2 / 2), (x1, x1 + b2 / 2), (x1, x1 + b2 / 2 + 0.5), (0, x1 + b2 / 2 + 0.5)) → poly2, j, k, l, m
  8. Polygon((x1 + b2 / 2, 0), (x1 + b2 / 2 + 0.5, 0), (x1 + b2 / 2 + 0.5, x1), (x1 + b2 / 2, x1)) → poly3, n, p, q, r
  9. Segment((x1, x1 + b1), (x1 + b1, x1 + b1)) → s1
  10. Segment((x1 + b1, x1), (x1 + b1, x1 + b1)) → s2
  11. Polygon((10, 0), (10 + x1, 0), (10 + x1, x1), (10, x1)) → Poly4, s, t, e, f_1
  12. Sequence(Polygon[(10, x1 - 1 + i), (10 + x1, x1 - 1 + i), (10 + x1, x1 + i), (10, x1 + i)], i, 1, b / 2) → hori2
  13. Sequence(Polygon[(10 + x1 - 1 + i, 0), (10 + x1 + i, 0), (10 + x1 + i, x1), (10 + x1 - 1 + i, x1)], i, 1, b / 2) → vert2
  14. Polygon((10, x1 + b2 / 2), (10 + x1, x1 + b2 / 2), (10 + x1, x1 + b2 / 2 + 0.5), (10, x1 + b2 / 2 + 0.5)) → poly5, g_1, h_1, i_1, j_1
  15. Polygon((10 + x1 + b2 / 2, 0), (10 + x1 + b2 / 2 + 0.5, 0), (10 + x1 + b2 / 2 + 0.5, x1), (10 + x1 + b2 / 2, x1)) → poly6, k_1, l_1, m_1, n_1
  16. Sequence(Sequence[Polygon[(10 + x1 - 1 + i, x1 - 1 + j), (10 + x1 + i, x1 - 1 + j), (10 + x1 + i, x1 + j), (10 + x1 - 1 + i, x1 + j)], i, 1, b / 2], j, 1, b / 2) → add2
  17. Segment((10 + x1, x1 + b1), (10 + x1 + b1, x1 + b1)) → s3
  18. Segment((10 + x1 + b1, x1), (10 + x1 + b1, x1 + b1)) → s4

AI Drawing Prompt Reference

This is a geometric illustration of completing the square. The figure includes a square that is divided and rearranged into a perfect-square form, with a translated version shown. Key objects are the square, horizontal line segments, vertical line segments, text annotations, and addition operations. The construction order is: first draw a square, then create segmented lines using sequences, add auxiliary figures, and finally translate the figure to show changes.
The prompt above was compiled from the original drawing commands and is for reference only.