Differentiate algebraic and transcendental functions