y=xsin⁡xy = x \sin x

Graph of the Function y=xsin⁡xy = x \sin x

y=xsin⁡xy = x \sin x is the product of the linear function xx and the sine sin⁡x\sin x. It draws a distinctive graph that oscillates with a swing that keeps growing.

Domain and symmetry

The domain is all real numbers. Both xx and sin⁡x\sin x are odd, so their product is even.

(−x)sin⁡(−x)=(−x)(−sin⁡x)=xsin⁡x(-x)\sin(-x) = (-x)(-\sin x) = x \sin x

The graph is therefore symmetric about the yy-axis.

The envelope

Since −1≤sin⁡x≤1-1 \leq \sin x \leq 1, we have ∣xsin⁡x∣≤∣x∣|x \sin x| \leq |x|, so the graph is caught between the two lines y=xy = x and y=−xy = -x. Those lines are its envelope.

The curve touches the envelope at x=π2+nπx = \dfrac{\pi}{2} + n\pi, where ∣sin⁡x∣=1|\sin x| = 1, and its swing grows in proportion to ∣x∣|x|. Unlike an ordinary trigonometric function it has no fixed amplitude.

Zeros

The value is 00 where x=0x = 0 or sin⁡x=0\sin x = 0, that is at x=nπx = n\pi. At x=0x = 0 the zeros of xx and of sin⁡x\sin x coincide, so that root is a double one.

Near the origin

Near the origin sin⁡x≈x\sin x \approx x, so the following holds.

xsin⁡x≈x2x \sin x \approx x^2

The curve meets the xx-axis from above like a parabola, so the origin is a local minimum of 00, and nearby the function stays y≥0y \geq 0.

Monotonicity

The product rule gives the derivative.

ddx(xsin⁡x)=sin⁡x+xcos⁡x\frac{d}{dx}(x \sin x) = \sin x + x \cos x

Its zeros locate the local maxima and minima. For large xx the term xcos⁡xx\cos x dominates, so those extrema drift toward the points where cos⁡x=0\cos x = 0, which are exactly where the curve touches the envelope.

Notable values

xxyyPosition
0000local minimum
π2\dfrac{\pi}{2}π2≈1.571\dfrac{\pi}{2} \approx 1.571touches the envelope y=xy = x
π\pi00zero
3π2\dfrac{3\pi}{2}−3π2≈−4.712-\dfrac{3\pi}{2} \approx -4.712touches the envelope y=−xy = -x
2π2\pi00zero

Range and limits

Because the swing grows without bound, yy takes arbitrarily large positive and negative values, so the range is all real numbers. As x→±∞x \to \pm\infty it does not converge but keeps oscillating ever more widely.

Applications

The form xsin⁡xx \sin x appears when the amplitude of a resonating system grows with time, and in the analysis of beats and amplitude modulation. When a driving frequency matches a system's natural frequency, the amplitude of the response grows in proportion to time1.

  1. Resonance, Wikipedia