🌊 Draw a Perfect Wave

Draw a freehand sine wave from left to right. Our algorithm fits A·sin(Bx+C)+D to your drawing and scores how mathematically perfect your wave is!

Draw a smooth, flowing wave across the canvas →

Your Wave Score
0%
Wave Fit
-
Amplitude Consistency
-
Frequency Regularity
-
Smoothness
-

How to Draw a Perfect Sine Wave

A sine wave is the most elegant curve in mathematics. Described by y = A·sin(Bx + C) + D, it's the foundation of music, physics, engineering, and signal processing. Here's how to improve your freehand wave:

Pro Tip: Think of your hand as a pendulum swinging side to side as you move it forward. The natural swinging motion of your wrist is actually close to a sine wave — trust the motion and don't overthink it!

How Wave Scoring Works

Our algorithm evaluates your wave drawing on four mathematical criteria:

The Mathematics of Sine Waves

The general equation of a sine wave is y = A·sin(Bx + C) + D, where each parameter controls a different aspect of the wave's shape:

When you draw on the canvas, our system samples your line as a set of (x, y) coordinate points and uses nonlinear least-squares fitting to find the values of A, B, C, and D that best match your drawing. The fitted sine is then drawn over your line so you can see how well you did.

Sine Waves in Nature and Technology

Sine waves are arguably the most important waveform in all of science. Here's where they appear:

Fourier's Discovery: Everything is Sine Waves

In 1822, Joseph Fourier proved one of the most profound results in mathematics: any periodic function can be expressed as a sum of sine and cosine waves. This is the Fourier Series, and it's the foundation of modern signal processing, audio compression (MP3), image compression (JPEG), MRI machines, and wireless communications.

What this means is that even complex, jagged waveforms — a square wave, a sawtooth wave, or the waveform of a guitar chord — can be perfectly reproduced by adding enough sine waves of different frequencies, amplitudes, and phases together. The sine wave is the fundamental atomic unit of all periodic motion.

Fun Fact: The human eye perceives color as a sine wave frequency. Red light oscillates at about 430 THz (430 trillion cycles per second), while violet light oscillates at about 750 THz. Your brain is a Fourier analyzer!

Average Scores by Experience Level

Based on typical freehand drawing accuracy:

Frequently Asked Questions

What's the difference between a sine wave and a cosine wave?

A cosine wave is just a sine wave shifted by 90 degrees (a quarter wavelength). Mathematically, cos(x) = sin(x + π/2). They have identical shapes — just different starting positions. Our algorithm handles this naturally through the phase parameter C, so whether you start at a peak, a trough, or a zero-crossing, it will still give you a good score.

Why is the sine wave a "perfect" wave?

The sine wave is considered "perfect" because it's the only waveform that maintains its shape when differentiated or integrated — the derivative of a sine is a cosine (also a sine wave, just phase-shifted). This mathematical self-similarity under calculus operations makes it the natural solution to virtually every differential equation in physics. It's the eigenvector of the differentiation operator.