Finding derivative using definition and tangent lines