Differentiation and solving equations