y=sin2xy = \sin^2 x

Graph of the Function y=sin2xy = \sin^2 x

y=sin2xy = \sin^2 x is the sine squared. Squaring folds the negative part upward and halves the period. It is the shape that recurs whenever the strength of an oscillation is at stake, from the root mean square of an alternating current to the intensity of light.

The half-angle formula

Solving the double-angle identity cos2x=12sin2x\cos 2x = 1 - 2\sin^2 x gives the following.

sin2x=1cos2x2\sin^2 x = \frac{1 - \cos 2x}{2}

As this shows, sin2x\sin^2 x is nothing but cos2x\cos 2x turned upside down, halved and lifted by 12\dfrac{1}{2}: a cosine wave of amplitude 12\dfrac{1}{2} about the level 12\dfrac{1}{2}, with period π\pi.

Domain and range

  • The domain is all real numbers
  • The range is 0y10 \leq y \leq 1
  • The period is π\pi
  • It is an even function

Period and symmetry

Although sin(x+π)=sinx\sin(x+\pi) = -\sin x, squaring erases the sign, so the period is π\pi, half that of sinx\sin x itself. That halving is easy to overlook. Squaring an odd function also produces an even one, so the graph is symmetric about the yy-axis.

Zeros and maxima

The zeros are at x=nπx = n\pi, where sinx=0\sin x = 0, but they are double zeros: the curve touches the xx-axis without passing below it. The maximum value 11 occurs at x=π2+nπx = \dfrac{\pi}{2} + n\pi. Unlike sinx\sin x with its alternating crests and troughs, this graph is a row of evenly spaced crests only.

xxsin2x\sin^2 xPosition
0000touches the xx-axis
π4\dfrac{\pi}{4}12\dfrac{1}{2}inflection point
π2\dfrac{\pi}{2}11maximum
3π4\dfrac{3\pi}{4}12\dfrac{1}{2}inflection point
π\pi00touches the xx-axis

Monotonicity and inflection

The double-angle formulas keep the derivatives short.

y=2sinxcosx=sin2xy=2cos2x\begin{align*} y' &= 2\sin x\cos x = \sin 2x \\ y'' &= 2\cos 2x \end{align*}

The inflection points are where cos2x=0\cos 2x = 0, at x=π4+nπ2x = \dfrac{\pi}{4} + \dfrac{n\pi}{2}, and the value there is 12\dfrac{1}{2}, exactly halfway up.

The average is one half

The identity sin2x+cos2x=1\sin^2 x + \cos^2 x = 1 holds everywhere, and cos2x\cos^2 x is merely a translate of sin2x\sin^2 x, so the two must have the same average. Since their sum averages 11, each averages 12\dfrac{1}{2}. Integration gives the same answer.

1π0πsin2xdx=12\frac{1}{\pi}\int_0^{\pi}\sin^2 x\,dx = \frac{1}{2}

The antiderivative is x2sin2x4+C\dfrac{x}{2} - \dfrac{\sin 2x}{4} + C.

Applications

Power dissipated by an alternating current is proportional to the square of the current, so a sinusoidal current produces power of exactly this shape. The average being 12\dfrac{1}{2} is what makes the root mean square value equal to 12\dfrac{1}{\sqrt{2}} times the peak, a cornerstone of electrical engineering1.

  • The root mean square and the power of an alternating current
  • Malus's law, giving the intensity of light passed by a polarizer2
  • The probability density of quantum mechanics, the squared modulus of a wave function
  1. Root mean square, Wikipedia
  2. Polarizer, Wikipedia