Intersection of a trigonometric function and a line

An intersection of a trigonometric function and a line amounts to solving a trigonometric equation. We find where y=sinxy = \sin x meets the line y=12y = \dfrac{1}{2}.

At an intersection sinx=12\sin x = \dfrac{1}{2}. On 0x<2π0 \leq x < 2\pi, this holds at x=π6x = \dfrac{\pi}{6} and x=5π6x = \dfrac{5\pi}{6}. Sine takes the value 12\dfrac{1}{2} at x=π6x = \dfrac{\pi}{6} and at the mirror position x=ππ6=5π6x = \pi - \dfrac{\pi}{6} = \dfrac{5\pi}{6}.

But sinx\sin x repeats with period 2π2\pi, so these are not the only intersections. The same crossings recur every 2π2\pi, and the solutions are x=π6+2πnx = \dfrac{\pi}{6} + 2\pi n and x=5π6+2πnx = \dfrac{5\pi}{6} + 2\pi n (with nn an integer) — infinitely many.

Sliding the line changes the number of intersections. A line y=ky = k with 1<k<1-1 < k < 1 gives two per period; k=1k = 1 or k=1k = -1 gives one per period (tangent at a peak or trough); and k>1|k| > 1 gives none. The large dots are the two intersections on 0x<2π0 \leq x < 2\pi: (π6,12)\left(\dfrac{\pi}{6}, \dfrac{1}{2}\right) and (5π6,12)\left(\dfrac{5\pi}{6}, \dfrac{1}{2}\right).