y=sinxy = |\sin x|

Graph of the Function y=sinxy = |\sin x|

The function y=sinxy = |\sin x| is the absolute value of the sine. Its negative half-waves are folded up to the positive side, giving a graph of repeated arches.

Definition

sinx={sinx(sinx0)sinx(sinx<0)|\sin x| = \begin{cases} \sin x & (\sin x \ge 0) \\ -\sin x & (\sin x < 0) \end{cases}

Domain and range

Its domain is all real numbers. Being an absolute value, it is always non-negative, so its range is 0y10 \le y \le 1.

Periodicity

The sine has period 2π2\pi, but taking the absolute value folds the negative half-wave onto the positive side, halving the period to π\pi. Indeed sin(x+π)=sinx=sinx|\sin(x + \pi)| = |-\sin x| = |\sin x|.

Symmetry

Since sin(x)=sinx=sinx|\sin(-x)| = |-\sin x| = |\sin x|, it is an even function, symmetric about the yy-axis.

Behavior and corners

On each interval it rises from 00 to a maximum of 11 and back to 00, forming a repeated arch. The maximum 11 occurs at x=π2+nπx = \dfrac{\pi}{2} + n\pi. At x=nπx = n\pi the value is 00, but there the slope reverses sign, producing a sharp corner where the function is not differentiable. Unlike the smooth sine wave, the points touching the xx-axis are corners.

Relation to other functions

The waveform of full-wave rectification, which converts alternating current toward direct current, is exactly the shape of sinx|\sin x|. Its Fourier series is

sinx=2π4πk=1cos2kx4k21|\sin x| = \frac{2}{\pi} - \frac{4}{\pi}\sum_{k=1}^{\infty}\frac{\cos 2kx}{4k^2 - 1}

a sum of even-frequency cosines about the average value 2π\dfrac{2}{\pi}.

Specific values and continuity

For example sinπ6=12\left|\sin\dfrac{\pi}{6}\right| = \dfrac{1}{2} and sinπ2=1\left|\sin\dfrac{\pi}{2}\right| = 1. The function is continuous everywhere but fails to be differentiable only at the corners x=nπx = n\pi. Its average height over one period is 2π0.64\dfrac{2}{\pi} \approx 0.64, matching the constant term of the Fourier series above.

Applications

Besides the analysis of rectifier circuits, it serves as a model for periodic signals with kinks and as a classic exercise in differentiating and integrating combinations of absolute values and trigonometric functions.