We were told we're allowed use that formula in ANU maths courses, because it saves needlessly deriving it each time for a specific case.
I derive it each time because it's automatic and fairly swift. But there's nothing worng with using the formula. Just make sure you know how to derive it.