Intersection of sine and cosine

Find where y=sinxy = \sin x and y=cosxy = \cos x meet. Dividing sinx=cosx\sin x = \cos x by cosx\cos x gives tanx=1\tan x = 1, which holds when x=π4+nπx = \dfrac{\pi}{4} + n\pi for an integer nn.

For example, at x=π4x = \dfrac{\pi}{4} both equal 22\dfrac{\sqrt{2}}{2}, and at x=5π4x = \dfrac{5\pi}{4} both equal 22-\dfrac{\sqrt{2}}{2}. The large dots mark these two crossings; the curves keep meeting every π\pi thereafter.