x4 deriv calculated