Lesson goal: Graphically adding $\sin^2+\cos^2$

Previous: Test the famous sin/cos identity | Home | Next: Make cool polar plots

Here is a graphical version that proves that $\sin^2(x)+\cos^2(x)=1$. We did a textual version of this in a past lesson. This one allows you to really see the behavior of the sine vs the cosine and see how they add after each is squared.

Now you try. Try fixing the A= and f= statements. Can you see the graphical verification of $\sin^2(x)+\cos^2(x)$?

Type your code here:

See your results here:

This code will not run. You have to choose a value for $A$ and $f$, the amplitude and frequency. We'd recommend starting with $A=50$, $f=0.01$. Can you do it? Dismiss.
Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.