The equation relating the changing quantities is

Since both A and r are functions of t, we use the chain rule in taking the derivative: