We have `|y|=(x-1)(x-2)`
First draw the graph of `y=(x-1)(x-2)`, which is an upward parabola intereting the x-aixs at (1,0) and (2,0).
Now neglect the portion of the above graph for `x in(1,2)`. Consider the portion of the above graph for `xle1andxge2`. Reflect this portion of the graph in the x-axis, keeping the original graph.
Hence the graph of `|y|=(x-1)(x-2)` is as shown in the following figure.