Inverse formulas: from elementary geometry to differential calculus