Triangle area and derivatives