Any repeating shape, however sharp, can be made by adding up plain smooth waves. Add circles and watch it happen.
Each circle is one smooth wave. Stacking them tip to tail adds the waves together.
This is the idea behind the Fourier series. Music files, phone calls and photos are all stored by breaking signals into waves like this.
Look at the corners of the square wave. A small overshoot stays there no matter how many circles you add.
Keep watching