differentiate from first principles x 2