y=xsinxy = x \sin x

Graph of the Function y=xsinxy = x \sin x

The function y=xsinxy = x \sin x is the product of the linear function xx and the sine sinx\sin x. It produces a distinctive graph that oscillates with growing amplitude.

Definition

y=xsinxy = x \sin x

Its domain is all real numbers.

Symmetry

Both xx and sinx\sin x are odd, so their product is even: indeed (x)sin(x)=(x)(sinx)=xsinx(-x)\sin(-x) = (-x)(-\sin x) = x \sin x, and the graph is symmetric about the yy-axis.

Amplitude and envelope

Since 1sinx1-1 \le \sin x \le 1, we have xsinxx|x \sin x| \le |x|, so the graph is contained between the two lines y=xy = x and y=xy = -x. These lines y=±xy = \pm x form its envelope. The curve touches the envelope where sinx=1|\sin x| = 1, at x=π2+nπx = \dfrac{\pi}{2} + n\pi, and its swing grows in proportion to x|x|. Unlike an ordinary trigonometric function it is not periodic, because the amplitude keeps increasing.

Zeros and behavior near the origin

The function is zero where x=0x = 0 or sinx=0\sin x = 0, that is at x=nπx = n\pi. Near the origin sinxx\sin x \approx x, so xsinxx2x \sin x \approx x^2: the curve meets the xx-axis from above like a parabola. Thus the origin is a local minimum of 00, and nearby the function stays y0y \ge 0.

Specific values and derivative

For instance y=π21.57y = \dfrac{\pi}{2} \approx 1.57 at x=π2x = \dfrac{\pi}{2} (touching the envelope y=xy = x), y=0y = 0 at x=πx = \pi, and y=3π24.71y = -\dfrac{3\pi}{2} \approx -4.71 at x=3π2x = \dfrac{3\pi}{2} (touching y=xy = -x). Its derivative is ddx(xsinx)=sinx+xcosx\dfrac{d}{dx}(x \sin x) = \sin x + x \cos x, whose zeros locate the local maxima and minima.

Range and limits

Because the amplitude grows without bound, yy takes arbitrarily large positive and negative values, so its range is all real numbers. As x±x \to \pm\infty it does not converge but keeps oscillating with ever-larger swings.

Applications

Expressions of the form xsinxx \sin x (or tsinωtt \sin \omega t) arise when the amplitude of a resonating oscillator grows with time, and in the analysis of beats and amplitude modulation.