Solution: Given function:
f(x)=(x(x−2))2
Differentiate y w.r.t. x, we get:
dxdy=2x(x−2)[dxd(x(x−2))]
dxdy=2x(x−2)[x+(x−2)]
=2x(x−2)(2x−2)
=4x(x−2)(x−1)(1)
Now, solve 4x(x−2)(x−1)=0
x=0,x=2,x=1
Therefore, we have the intervals (−∞,0), (0,1), (1,2), and (2,∞).
For interval (−∞,0), picking x=−1:
dxdy=(−)(−)(−)=(−)⇒f(x) is decreasing.
For interval (0,1), picking x=21:
dxdy=(+)(−)(−)=(+)⇒f(x) is increasing.
For interval (1,2), picking x=1.5:
dxdy=(+)(−)(+)=(−)⇒f(x) is decreasing.
For interval (2,∞), picking x=3:
dxdy=(+)(+)(+)=(+)⇒f(x) is increasing.
Thus, f(x) is increasing in the intervals (0,1) and (2,∞), and decreasing in (−∞,0) and (1,2).