For small swings the sine of the angle is nearly the angle itself, so the restoring force becomes proportional to the swing, the spring condition for SHM.
Example
For small swings the sine of the angle is nearly the angle itself, so the restoring force becomes proportional to the swing — exactly the spring condition for simple harmonic motion.
highlighted = computed this step
The restoring force is not quite proportional
A spring's restoring force is exactly proportional to displacement, which is what makes it simple harmonic. The pendulum's restoring force is the weight times the sine of the angle, and the sine is not exactly proportional to the angle.
Frestore=mgsinθ
For small angles, sine of the angle is nearly the angle
But for a small angle, measured in radians, the sine of the angle is very close to the angle itself. So the restoring force becomes nearly the weight times the angle — proportional to the swing, just like a spring. That is why a gently swinging pendulum is simple harmonic. Swing it wide and the approximation breaks: the sine falls below the angle and the motion is no longer simple. The angle we used earlier to get a concrete restoring force is itself already too wide for this — it was just a convenient exact angle for a number; real simple harmonic motion needs much gentler swings.
sinθ≈θ⇒Frestore≈mgθ
mechanicssin(theta) is approximately theta for small angles, making the restoring force proportional to displacement; wide swings break it.