Graph of y = x sin x (x times sine)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = x sin x is an even oscillating curve whose swings grow in size, bounded by the lines y = x and y = −x. Domain: All real numbers (−∞, ∞); range: All real numbers (−∞, ∞). x-intercept: x = kπ (x = 0 is a double root); y-intercept: y = 0.

Functiony = x sin x
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = kπ (x = 0 is a double root)
y-intercepty = 0
Derivativesin x + x cos x
Graph of y = x sin x for −4π ≤ x ≤ 4π−4π−3π−2π−π0π2π3π4π−12−10−8−6−4−2024681012
Graph of y = x sin x for −4π ≤ x ≤ 4π, −12 ≤ y ≤ 12. Dots mark intercepts.
Zoom, pan and trace y = x sin x next to y = sin x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = x sin x looks like

Multiplying sin x by x makes the wave’s amplitude grow with distance from the origin: the curve wiggles between the envelope lines y = x and y = −x, touching them where sin x = ±1. It still crosses zero at every multiple of π, and at the origin it touches the axis like a parabola, since x sin x ≈ x² for small x.

The product of two odd functions is even, so the graph is a mirror image in the y-axis. The turning points are not at the sine peaks but slightly later, where tan x = −x. The area of the first hump, from 0 to π, is exactly π.

Key features of y = x sin x

Key features of y = x sin x
PropertyValue
Functiony = x sin x (x times sine)
FamilySpecial
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = kπ (x = 0 is a double root)
y-intercepty = 0
SymmetryEven — symmetric about the y-axis
AsymptotesNone
PeriodNot periodic
Increasing on[0, 2.029], [4.913, 7.979], … (and mirrored for x < 0)
Decreasing on[2.029, 4.913], … and [−2.029, 0]
Key pointsTurning points where tan x = −x: x ≈ ±2.029, ±4.913, ±7.979; local minimum (0, 0)
Derivative f′(x)sin x + x cos x
Antiderivative ∫ f(x) dxsin x − x cos x + C

Symmetry: Even — symmetric about the y-axis. For example f(2) = 1.8186 and f(−2) = 1.8186 are equal, so the left half mirrors the right half. Intercepts: the graph meets the x-axis at x = kπ (x = 0 is a double root) and the y-axis at y = 0.

Table of values for y = x sin x

Values of y = x sin x
xy = x sin xSlope f′(x)
−π03.1416
−π/21.5708−1
−π/40.5554−1.2625
000
π/60.26180.9534
π/40.55541.2625
π/30.90691.3896
π/21.57081
2π/31.8138−0.1812
3π/41.6661−0.959
π0−3.1416
3π/2−4.7124−1
2π06.2832

How to sketch y = x sin x by hand

Plot the points from the table — (−π, 0), (−π/2, 1.5708), (−π/4, 0.5554), (0, 0), (π/6, 0.2618), (π/4, 0.5554) — on axes running from about −4π to 4π horizontally. There are no asymptotes to draw. Then join the points with a smooth curve. As a check on the shape — increasing: [0, 2.029], [4.913, 7.979], … (and mirrored for x < 0); decreasing: [2.029, 4.913], … and [−2.029, 0].

Derivative, tangent line and area

The derivative of y = x sin x is sin x + x cos x, which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 0.8415 and its slope is f′(1) = 1.3818, so the tangent line there is y = 1.3818x − 0.5403.

The signed area under the curve from x = 0 to x = π is 3.1416, found using the antiderivative sin x − x cos x + C.

Related graphs and transformations

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

What is the domain and range of y = x sin x?

Domain: All real numbers (−∞, ∞). Range: All real numbers (−∞, ∞).

What are the intercepts of y = x sin x?

x-intercept(s): x = kπ (x = 0 is a double root). y-intercept: y = 0.

What is the derivative of y = x sin x?

f′(x) = sin x + x cos x. At x = 1 the curve is at height 0.8415 and its slope is f′(1) = 1.3818, so the tangent line there is y = 1.3818x − 0.5403.

Is y = x sin x even, odd or neither?

Even — symmetric about the y-axis. For example f(2) = 1.8186 and f(−2) = 1.8186 are equal, so the left half mirrors the right half.

Does y = x sin x have asymptotes?

None.