derivative of (vector{1,2} dot vector{x,x^2}) with respect to x