y=x2(x1)y = x^2(x-1)

Graph of the Cubic Function y=x2(x1)y = x^2(x-1)

y=x2(x1)y = x^2(x-1) expands to x3x2x^3 - x^2. The factored form shows a double root at x=0x = 0 and a simple root at x=1x = 1, and the graph touches the xx-axis at the former while crossing it at the latter1. It is about as clean an illustration as one could want of how the multiplicity of a root shows up in a picture.

Intercepts and sign

Since x20x^2 \geq 0, the sign of the value is decided by x1x - 1 alone.

Range of xxSign of yy
x<0x < 0negative
x=0x = 000, touches the axis
0<x<10 < x < 1negative
x=1x = 100, cuts through
x>1x > 1positive

Around x=0x = 0 the sign does not change, so the curve merely brushes the axis and drops back below it.

Why a double root means tangency

When f(x)f(x) has (xa)2(x-a)^2 as a factor, not only f(a)=0f(a) = 0 but also f(a)=0f'(a) = 0. Indeed y=3x22x=x(3x2)y' = 3x^2 - 2x = x(3x-2), which vanishes at x=0x = 0. A point where both the value and the slope are zero is exactly a point where the xx-axis is the tangent line. A repeated root is therefore not just two coincident solutions but a geometric statement about tangency.

Monotonicity and extrema

xx\cdots00\cdots23\dfrac{2}{3}\cdots
yy'++00-00++
yyincreasingmaximum 00decreasingminimum 427-\dfrac{4}{27}increasing

Note that the double root is itself the location of the maximum: touching the axis and turning around are the same event.

Concavity and centre of symmetry

The second derivative is y=6x2y'' = 6x - 2, changing sign at x=13x = \dfrac{1}{3}, so the inflection point is (13,227)\left(\dfrac{1}{3}, -\dfrac{2}{27}\right). It lies exactly midway between the two extrema: its xx-coordinate is the average of 00 and 23\dfrac{2}{3}, and its yy-coordinate the average of 00 and 427-\dfrac{4}{27}. Since the inflection point of any cubic is its centre of symmetry, rotating the graph by 180180^\circ about that point maps it onto itself.

Classification by multiplicity

RootsBehaviour at the xx-axisExample
three distinctcrosses at three placesx33xx^3 - 3x
double and simpletouches at one, crosses at anotherx2(x1)x^2(x-1)
tripletouches and crosses at one pointx3x^3

This function is the representative of the middle case.

Counting solutions

The number of real solutions of x2(x1)=kx^2(x-1) = k can be read off as intersections with a horizontal line.

Range of kkReal solutions
427<k<0-\dfrac{4}{27} < k < 033
k=427k = -\dfrac{4}{27} or k=0k = 022
otherwise11

Being able to read repeated roots off the extrema, rather than computing a discriminant, is basic to how cubics are handled.

  1. Zero of a function, Wikipedia