Graph y = sin(x) and y = cos(x) on the same axes from 0 to 2π and study their relationship.
Explanation
Plotted side-by-side, sine and cosine reveal a beautiful relationship: they have the exact same shape, but cosx is shifted to the left by π/2 (or equivalently, sine is shifted to the right by π/2). One is the other in disguise.
The Phase Relationship
These two formulas are equivalent:
cosx=sin(x+2π)
sinx=cos(x−2π)
Step-by-Step Solution
Given:f(x)=sinx and g(x)=cosx on [0,2π].
Find: Their values at the four axis-aligned angles, the relationship between them, and where they intersect.
Step 1 — Tabulate at the cardinal angles.
x=0: sin0=0, cos0=1
x=π/2 (90°): sin(π/2)=1, cos(π/2)=0
x=π (180°): sinπ=0, cosπ=−1
x=3π/2 (270°): sin(3π/2)=−1, cos(3π/2)=0
x=2π (360°): sin2π=0, cos2π=1
Notice the pattern: when one is at a peak (±1), the other is at a zero. They alternate.
Step 2 — Find where the two curves intersect.
We want sinx=cosx. Dividing both sides by cosx (assuming it's nonzero):
cosxsinx=1⟹tanx=1
Solving on [0,2π]:
x=4πorx=π+4π=45π
Step 3 — Find the values at the intersection points.
At x=π/4: sin(π/4)=cos(π/4)=22≈0.707. So they cross at (π/4,2/2).
At x=5π/4: sin(5π/4)=cos(5π/4)=−22≈−0.707. They cross at (5π/4,−2/2).
Step 4 — Verify the phase shift formula at one point.
At x=0: sin(0+π/2)=sin(π/2)=1=cos0. ✓
At x=π/2: sin(π/2+π/2)=sinπ=0=cos(π/2). ✓
The identity cosx=sin(x+π/2) holds at every x.
Answer: Sine and cosine are identical curves shifted by π/2. On [0,2π], they intersect at:
(4π,22)≈(0.785,0.707)
(45π,−22)≈(3.927,−0.707)
Both have period 2π, range [−1,1], and amplitude 1. Cosine "leads" sine by π/2 — wherever sine is, cosine was a quarter-period ago.
Try It
Slide the point widget — watch both functions read out simultaneously.
The two yellow dots mark intersection points sinx=cosx at x=π/4 and x=5π/4.
Notice how one is at a peak whenever the other crosses zero.
Interactive Visualization
Parameters
0.79
Your turn
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.