Building the Q2(a) square-wave graph from absolute zero, every step
Goal: start from a blank page and end at the app’s graph, with no step assumed. The function is the one from Q2(a):
Step 0: what a graph even is
A graph is a lookup table drawn as a picture. The horizontal axis is the floor: every position on it is a time . The vertical axis is the wall: every position on it is a height. A point drawn at floor-position and wall-height is the statement “at time , the function’s value is ”. Drawing the whole graph means doing that for every time at once.
Before drawing anything, mark the landmark times the brace mentions. is just the number 3.14…, so the landmarks are , , and :
Step 1: draw the first line of the brace
Line one says: for every time between and , the height is . Pick any such time and plot its point: at , height 1. At , height 1. At , height 1. Every single point lands at the SAME height, so joining them gives a flat shelf at height 1 running from to :
Step 2: draw the second line, height 0 lies ON the axis
Line two says: for every time between and , the height is . Height zero is not “nothing drawn”, it is a real shelf that happens to sit at the level of the floor itself. So the graph between and is a flat segment lying exactly ON the t-axis. This is why the app’s picture looks like the wave “disappears” there: it has not disappeared, it is at height 0.
At itself, the value jumps: just left of the height is 1, just right of it the height is 0. Nothing is drawn vertically at the jump, a function has exactly one value per time, so there is no wall connecting the shelves. The dashed vertical in the app is only a visual guide marking where the teleport happens. (Fine print: the brace uses strict < signs, so at exactly it does not define a value at all; for Fourier purposes the series will later converge to the midpoint ½ there.)
The window we have drawn runs from 0 to , length . That length is the period: , hence rad/s.
Step 3: photocopy the block both ways forever
“Periodic” means : shift the picture by one period and it must look identical. So stamp the Step-2 block at every shift of . Shift right: shelf at 1 on , zero on . Shift left: shelf at 1 on , zero on :
Step 4: verify against the app’s picture
- 1Just right of 0: shelf at 1, width π. Matches (the app’s hump from 0 to π). ✓
- 2Just LEFT of 0: the app shows the wave on the axis from −π to 0. Our copy rule predicts exactly that: is the zero shelf of the left-shifted block. ✓
- 3Spot values: (inside the first hump), (on the zero shelf), matching the earlier reading-a-value entry. ✓
Contrast with Q2(b) below: same recipe exactly (draw the brace once, tile by the period), only the ingredients differ, Q2(b)’s shelves are −1 and +1 with unequal widths and the stamp distance is 3 instead of 2π. Master the recipe once and every “sketch over a few periods” question is the same two moves.