Write the value of
As we need to differentiate f(x) = x |x|
We know the property of mod function that
∴
Hence,
As