The formulas should always be read with two reservations:
the respective derivatives must of course exist
the denominator of a fraction must of course not be zero
If one of these conditions is not met for a parameter, the respective formula is not valid for this parameter (but then also makes no sense).