Graph y=x(x+|X|)


The function is
f(x) =0forx0 =2 x2 forx>0.

The first derivative:
f'(x) =0forx0 =4xforx>0

Hence the first derivative at the origin exists because f'(0)=0 on both the left and the right of the origin.

The second derivative:
f"(x) =0forx0 =4forx>0.

Hence the second derivative does not exist at the origin because on the left the limiting value of f"(x) as x0 is 0 whereas on the right the limiting value of f"(x) as x0 is 4.