Certain polynomials of degree $n$n can be factorised into $n$n linear factors over the real number field.
For example the $4$4th degree polynomial $P\left(x\right)=2x^4-x^3-17x^2+16x+12$P(x)=2x4−x3−17x2+16x+12 can be re-expressed as $P\left(x\right)=\left(x+3\right)\left(2x+1\right)\left(x-2\right)^2$P(x)=(x+3)(2x+1)(x−2)2. Note that there are two distinct factors, the $\left(x+3\right)$(x+3) and $\left(2x+1\right)$(2x+1) and two equal factors, the $\left(x-2\right)$(x−2) appears twice.
A polynomial function $y=P\left(x\right)$y=P(x) that can be completely factorised into its linear factors can be easily sketched. The function $y=\left(x+3\right)\left(2x+1\right)\left(x-2\right)^2$y=(x+3)(2x+1)(x−2)2 has roots immediately identifiable as $x=-3,-\frac{1}{2}$x=−3,−12 and $x=2$x=2.
A root is said to have multiplicity $k$k if a linear factor occurs $k$k times in the polynomial function. For example the function of degree $6$6 given by $y=\left(x-1\right)\left(x+1\right)^2\left(x-2\right)^3$y=(x−1)(x+1)2(x−2)3 is said to have a root $x=1$x=1 of multiplicity $1$1 (a single root), another root of $x=-1$x=−1 of multiplicity $2$2 (a double root or two equal roots) and a root $x=2$x=2 of multiplicity $3$3 (a triple root or three equal roots). In effect that is $6$6 roots all together.
The key to understanding how a root's multiplicity effects the graph is given in the following statement:
The curve's shape near a root depends on the root's multiplicity.
Look closely at the sketch of $y=\left(x-1\right)\left(x+1\right)^2\left(x-2\right)^3$y=(x−1)(x+1)2(x−2)3
The curve approaching a root of multiplicity $1$1 will behave like a linear function across that root (see position B on graph). The curve approaching a root of multiplicity $2$2 will behave like a quadratic function across that root (see position A on graph). The curve approaching a root of multiplicity $3$3 will behave like a cubic function across that root (see position C on graph).
In general, the curve approaching a root of multiplicity $k$k will behave like the function $y=x^k$y=xk across that root.
There is also two other considerations that will help with the graphing of the function.
Firstly, note that this function is an even degree function, so at the left and right extremes it will move away from the $x$x - axis in the same direction. Odd degree functions move away in opposite directions.
Secondly, because the coefficient of the highest power of the function is positive, the curve moves away from the $x$x - axis positively.
Thirdly, always check the position of the $y$y - intercept. For example, in the above sketch, at $x=0$x=0, $y=\left(0-1\right)\left(0+1\right)^2\left(0-2\right)^3=8$y=(0−1)(0+1)2(0−2)3=8 and this confirms the direction of the curve downward toward the first positive root.
In all this we need more mathematical tools to determine the positions of local turning points, but the important principles here allow us to understand the functions basic shape.
The function $y=x\left(x+3\right)\left(x-2\right)$y=x(x+3)(x−2) has three roots $0,-3$0,−3 and $2$2 all of multiplicity $1$1. It is of degree $3$3 with a $y$y-intercept of $\left(0\right)\left(-3\right)\left(2\right)=0$(0)(−3)(2)=0. The shape is shown as graph $G2$G2 here.
The function $y=-\left(x-1\right)\left(x+2\right)^2$y=−(x−1)(x+2)2 has a root of multiplicity $1$1 at $x=1$x=1 and a root of multiplicity $2$2 ($2$2 equal roots) at $x=-2$x=