Use implicit differentiation where is a function of to find the derivative of
Taking the derivative gives . Solving for gives