Connecting differentiability and continuity: determining when derivatives do and do not exist