Add harmonics one by one and watch convergence. Near a discontinuity, the overshoot persists at ~8.9% no matter how many terms — that is the Gibbs phenomenon. The circle on the left shows rotating phasors summing to the waveform.