differentiate from first principles y