y=x33xy = x^3 - 3x

Graph of the Cubic Function y=x33xy = x^3 - 3x

y=x33xy = x^3 - 3x is the most convenient cubic with both a maximum and a minimum1. The bare y=x3y = x^3 merely increases, but subtracting 3x3x produces a crest and a trough. Because the coordinates of the extrema are integers, it is a favourite example for building sign charts.

Domain and symmetry

Both the domain and the range are all of the real numbers. Since f(x)=x3+3x=f(x)f(-x) = -x^3 + 3x = -f(x), the function is odd and the graph has rotational symmetry about the origin.

Intercepts

Factoring as x33x=x(x23)x^3 - 3x = x(x^2 - 3) gives three xx-intercepts, at x=0x = 0 and x=±3±1.732x = \pm\sqrt{3} \approx \pm 1.732. This is the case of a cubic equation with three distinct real roots.

Monotonicity and extrema

The derivative is y=3x23=3(x1)(x+1)y' = 3x^2 - 3 = 3(x-1)(x+1).

xx\cdots1-1\cdots11\cdots
yy'++00-00++
yyincreasingmaximum 22decreasingminimum 2-2increasing

Both extrema have integer coordinates, and the crest sits 44 above the trough.

Concavity

The second derivative is y=6xy'' = 6x, which changes sign at x=0x = 0. The inflection point is the origin, with the curve concave down to its left and concave up to its right. The general fact that a cubic's inflection point is its centre of symmetry appears here as the origin itself.

Counting solutions

Intersecting with the horizontal line y=ky = k counts the real solutions of x33x=kx^3 - 3x = k. The minimum 2-2 and maximum 22 are the thresholds.

Range of kkReal solutions
k>2|k| > 211
k=2|k| = 222, one of them repeated
k<2|k| < 233

At the thresholds a root is repeated, as the factorisations x33x2=(x+1)2(x2)x^3 - 3x - 2 = (x+1)^2(x-2) and x33x+2=(x1)2(x+2)x^3 - 3x + 2 = (x-1)^2(x+2) confirm.

A trigonometric form

Substituting x=2cosθx = 2\cos\theta and using the triple angle formula cos3θ=4cos3θ3cosθ\cos 3\theta = 4\cos^3\theta - 3\cos\theta turns the function into y=2cos3θy = 2\cos 3\theta. The interval 2x2-2 \leq x \leq 2 corresponds to one full turn of θ\theta, which is why the extrema are exactly ±2\pm 2.

In terms of Chebyshev polynomials the function is y=2T3 ⁣(x2)y = 2T_3\!\left(\dfrac{x}{2}\right)2, and it is the equioscillation property of those polynomials, crests and troughs of equal height alternating across the interval, that makes the extreme values come out as neat integers.

Solving the cubic

That substitution is also a practical tool. For k2|k| \leq 2, solving 2cos3θ=k2\cos 3\theta = k gives the three real roots.

x=2cos(13arccosk2+2nπ3)x = 2\cos\left(\frac{1}{3}\arccos\frac{k}{2} + \frac{2n\pi}{3}\right)

This is the casus irreducibilis, where all three roots are real and yet Cardano's formula can only reach them through cube roots of complex numbers; trigonometry gets there directly.

  1. Cubic function, Wikipedia
  2. Chebyshev polynomials, Wikipedia