Finding the equation of the tangent to a curve using differentiation