For x>0, f=x3 so f′=3x2 and f′′=6x; for x<0, f=−x3 so f′=−3x2 and f′′=−6x. In both cases f′(x)=3x∣x∣ and f′′(x)=6∣x∣ which tends to 0 at x=0; the second derivative at 0 from the definition is limh3h∣h∣=0. Trap: assuming the modulus function always produces a corner.