The Moment Play Turns into Learning! The “Magic of Math” Hidden in Spirograph Patterns (Desmos Programming)
Hi, I’m Ken Kuwako, your Science Trainer. Life is one big experiment!
Do you remember playing with a “Design Ruler” when you were a kid? It’s that magical toy where you place a pen inside a small plastic gear and spin it around to create intricate, mesmerizing geometric patterns.
As it turns out, hidden behind those delicate, web-like designs is a world of mathematics so profound it actually connects to the laws of the universe. Today, I want to share a story about how one of my science club students turned a childhood pastime into a scientific discovery.
The Magic of Geometry: What Exactly is a Spirograph?
First off, are you familiar with the name “Spirograph”?

A Spirograph set consists of various gears with holes. You insert a pen into one of the holes and roll the gear along the inside or outside of a larger ring. While the motion is a simple repetition, the result is a sophisticated, kaleidoscope-like masterpiece. Check out this video to see the satisfying way these patterns come to life:
In Japan, you can find these at 100-yen shops like Seria, or easily pick up a set on Amazon or other online retailers as a Design Ruler. If this sparks your curiosity, why not try it for yourself?

From Play to Equations: A Student’s Challenge
A while back, a student in my science club became so obsessed with the Spirograph that just drawing wasn’t enough. He decided to reverse-engineer the math behind the patterns all on his own! He came to me and said, “Sir, if we use this formula, we can recreate the Spirograph on a computer!” Here is the documentation he put together. It’s truly impressive to see a middle school student organize such complex ideas so clearly.


In the world of mathematics, the paths traced by these gears are known as Hypotrochoids and Epitrochoids. What looks like a complex web is actually the result of overlapping simple circular rotations.
Geometry in Motion: Digital Art
Using the equations my student derived, we used the graphing tool “Desmos” to simulate the geometric patterns. Take a look:
The fascinating part is how a tiny tweak to the numbers can dramatically change the shape and density of the pattern. Click here to play with the simulation yourself. Go ahead and find your own unique pattern! For those curious about the “engine” behind the art, the formula looks like this:
![]()
When you break down the movement, it’s essentially one circular motion added to another circular motion spinning at a different speed. This is exactly why the formula uses sin and cos, which are staples of high school trigonometry.
It was a beautiful moment: seeing a middle schooler’s curiosity evolve into digital art through the universal language of math. Deep and elegant scientific seeds are hidden in our everyday play. When you look at the world through that lens, even a simple childhood toy starts to look like a masterpiece of engineering, doesn’t it?
Contact & More Information
I’m on a mission to make the wonders of science accessible to everyone! I share fun experiments you can try at home and tips for understanding the world around us. Feel free to explore more:
My blog “Science Notes” is now a book! Details here
Learn more about Ken Kuwako here
For inquiries regarding writing, speaking, science workshops, or TV consulting, please click here
– Stay updated on X (Twitter)!
Check out my experiment videos on the Science Notes Channel!
4月のイチオシ実験!
- 光の魔法CMYウォーターキューブ:光の魔法を体験せよ!水を注ぐと新たな立方体が出現する魔法のような実験です。
テレビ番組・科学監修等のお知らせ
- 4月9日(木)「THE突破ファイル」(日本テレビ )の科学監修を行いました。夜7時〜となります。
書籍のお知らせ
- サクセス15 4月号にて、野球の科学について記事を執筆しました(2026/3)
- 『大人のための高校物理復習帳』(講談社)…一般向けに日常の物理について公式を元に紐解きました。特設サイトでは実験を多数紹介しています。※増刷がかかり6刷となりました(2026/02/01)
- 『きめる!共通テスト 物理基礎 改訂版』(学研)… 高校物理の参考書です。イラストを多くしてイメージが持てるように描きました。授業についていけない、物理が苦手、そんな生徒におすすめです。特設サイトはこちら。

講師・ショー・研究等のお知らせ
- 3/20(金) 日本理科教育学会オンライン全国大会2026「慣性の法則の概念形成を目指した探究的な学びの実践」について発表しました。
- 6/14(日) 千葉大学インスタレーション「探究」にて講師を務めます
- 7/18(土) 教員向け実験講習会「ナリカカサイエンスアカデミー」の講師をします。お会いしましょう。
- 10/10(土) 秘密兵器「帯電ガン」が炸裂!ビリビリ!ドキドキ!静電気サイエンスショー@千葉市科学フェスタ(午後予定)
- 各種SNS X(Twitter)/instagram/Facebook/BlueSky/Threads
Explore
- 楽しい実験…お子さんと一緒に夢中になれるイチオシの科学実験を多数紹介しています。また、高校物理の理解を深めるための動画教材も用意しました。
- 理科の教材… 理科教師をバックアップ!授業の質を高め、準備を効率化するための選りすぐりの教材を紹介しています。
- Youtube…科学実験等の動画を配信しています。
- 科学ラジオ …科学トピックをほぼ毎日配信中!AI技術を駆使して作成した「耳で楽しむ科学」をお届けします。
- 講演 …全国各地で実験講習会・サイエンスショー等を行っています。
- About …「科学のネタ帳」のコンセプトや、運営者である桑子研のプロフィール・想いをまとめています。
- お問い合わせ …実験教室のご依頼、執筆・講演の相談、科学監修等はこちらのフォームからお寄せください。
- A Split-Second Miracle! Capture the “Law of Inertia” Hidden Inside a Water Balloon!
- The Moment Play Turns into Learning! The “Magic of Math” Hidden in Spirograph Patterns (Desmos Programming)
- Visualize Invisible Electric Potential in 3D! An Amazing Science Craft Using a Lunchbox Lid
- Shadows Reveal Physics Secrets! The Surprising Link Between Uniform Circular Motion and Simple Harmonic Motion
- A Dazzling Duet and a Grand Chorus of Light! Unraveling the Secret Colors of Shimmering Mica
- Recreate a Sunset with a Plastic Bottle! Discover the Magic of Light Scattering with Milk
- Style Meets Science! Choose Clothes That Beat Static with the Triboelectric Series
- Smash Together—Half the Speed? Exploring Momentum with Colliding Carts!
- Do Parasites Control Minds and Bare Fangs? The Astonishing Survival Strategies of Hidden Creatures Around Us (Meguro Parasitological Museum)











