Why the Order of Operations Matters
In a related-rates problem, quantities such as lengths, areas, and coordinates change with time. A constraint relates those quantities throughout their motion, and differentiating that relation connects their rates of change.
The order matters. If you substitute numerical values for changing quantities too soon, you may replace them with constants before differentiating. The resulting expression can lose the dependence on time that carries the rate information.
The safe principle is simple: differentiate the relation while its changing quantities are still variables, then substitute the values at the instant of interest. This tutorial focuses on why that order is necessary, when early substitution is genuinely valid, and how to check the result.
Values at an Instant Are Not Time Functions
Suppose \(x\) and \(y\) change with time \(t\). More explicitly, they are functions \(x(t)\) and \(y(t)\). A relation such as \(A=xy\) describes how the quantities are connected as they change. Their rates at a particular time \(t_0\) are \(x'(t_0)\), \(y'(t_0)\), and \(A'(t_0)\).
If the problem says \(x(t_0)=3\), that statement gives the value of \(x\) at one time. It does not say \(x(t)=3\) at all times. Replacing \(x(t)\) with the number \(3\) before differentiating discards the distinction between a changing function and its value at one instant.
A constraint used in a related-rates calculation must hold over an interval of time around the instant, not merely at that instant. That is what allows us to differentiate the relation and obtain information about rates. After differentiating, evaluating at \(t_0\) is appropriate: the derivative equation records the way the quantities are changing at that instant.
The General Reason: Differentiate the Constraint
Here is the general structure. Suppose \(x(t)\) and \(y(t)\) are differentiable and satisfy a fixed constraint \(F(x(t),y(t))=C\) throughout an interval, where \(F\) is differentiable and \(C\) is constant. The chain rule gives the rate equation
Here \(F_x\) and \(F_y\) are the partial derivatives of \(F\) with respect to its first and second inputs. The equation retains the rates \(x'(t)\) and \(y'(t)\). We can then evaluate it at the time specified by the problem.
The chain-rule statement follows directly from differentiating an identity that holds over time. Since \(F(x(t),y(t))=C\) throughout the interval, its derivative is the derivative of the constant \(C\), which is zero. Applying the chain rule to the left side gives the two terms in the rate equation. This is why the relation must remain in terms of its changing quantities until after differentiation.
Worked Example: Changing Sides of a Rectangle
Worked Example: Changing Sides of a Rectangle
A rectangle has side lengths \(x(t)\) and \(y(t)\), so its area is \(A(t)=x(t)y(t)\). At a particular time, \(x=3\), \(y=4\), \(x'=2\), and \(y'=-1\). Find the rate of change of area at that time.
If we substitute the instantaneous lengths into the area formula first, we get \(A=3\cdot4=12\). Differentiating \(A=12\) would give \(A'=0\). That conclusion is not justified: the number \(12\) is the area at one instant, not a formula for the area throughout the motion.
Instead, differentiate the formula while both side lengths are still changing:
Now substitute the values at the specified time:
Thus the area is increasing at \(5\) square units per unit of time at that instant. To check, take time \(0\) to be the instant in question and use the linear motions \(x(t)=3+2t\) and \(y(t)=4-t\). Then
The direct derivative agrees with the rate equation. The premature substitution produced zero because it replaced the changing area by its value at \(t=0\).
Worked Example: Area of a Growing Circle
Worked Example: Area of a Growing Circle
A circle’s radius \(r(t)\) is increasing. When \(r=5\), its radius is increasing at \(r'=0.4\) units per unit of time. Find the area’s rate of change at that instant.
The area formula is \(A=\pi r^2\). Substituting \(r=5\) before differentiating gives \(A=25\pi\). But \(25\pi\) is the area at the stated instant; treating it as the area for all times would incorrectly give \(A'=0\).
Differentiate the time-dependent formula first. The chain rule gives
Substitute the instantaneous values only now:
The area is increasing at \(4\pi\) square units per unit of time. For a direct check, let \(r(t)=5+0.4t\), with \(t=0\) at the instant in question. Then
This check confirms the result and shows explicitly why the value \(25\pi\) is not a time-independent area formula.
Worked Example: A Moving Point on a Circle
Worked Example: A Moving Point on a Circle
A point \((x(t),y(t))\) moves along the circle \(x^2+y^2=100\). At a particular instant, \(x=6\), \(y=8\), and \(x'=3\). Find \(y'\) at that instant.
The constraint holds throughout the motion. If we substitute the point’s coordinates into it first, we get \(6^2+8^2=100\), or \(100=100\). This numerical identity contains no changing quantities. Differentiating it would give \(0=0\), which does not determine \(y'\).
Keep the coordinates as functions of time and differentiate the constraint:
Now substitute \(x=6\), \(y=8\), and \(x'=3\):
Thus \(y\) is decreasing at \(9/4\) units per unit of time. To check, differentiate the original constraint \(x(t)^2+y(t)^2=100\): its derivative is \(2xx'+2yy'\). At the calculated rate, this becomes
The differentiated constraint is satisfied, as required for motion along the circle.
When Early Substitution Is Valid
The warning is not “never substitute before differentiating.” It is “do not replace a changing quantity with a value that is known only at one instant.” Early substitution is valid when the quantity is known to be constant throughout the motion, or when a relation is substituted that holds for all relevant times and still preserves the dependence on time.
For example, if \(c(t)=7\) for every time in the interval, then \(c\) is genuinely constant and \(c'=0\). But if the problem says only that \(c(t_0)=7\), you cannot infer \(c'=0\). A function can equal \(7\) at one instant and still be increasing or decreasing there.
Similarly, replacing a variable with its numerical value can be appropriate after differentiating the constraint, because the derivative equation has already captured how the quantities are related as they change. The order is not a ritual: it protects the information that the rate calculation needs.
A Practical Sequence for Rate Calculations
When a related-rates equation includes quantities with known values at a particular instant, use this sequence to avoid losing the time dependence:
Represent changing quantities as functions of time, or at least keep them as variables until the relation is differentiated.
Use the chain rule and product rule as needed, retaining the rates of the changing quantities.
Insert the given lengths, coordinates, or other values into the differentiated equation, along with any known rates.
Solve for the unknown rate, then check that it satisfies the differentiated constraint and interpret its sign.
Common Mistake: Treating an Instantaneous Value as Constant
A frequent error is to substitute numbers into a formula, obtain a numerical result, and then differentiate that result as though it described the quantity at all times. For the growing circle above, the wrong calculation is
The correction is to distinguish the value \(r=5\) at one instant from the function \(r(t)\) that changes over time. Differentiate the formula \(A=\pi r(t)^2\) first, giving \(A'=2\pi r r'\), and then use \(r=5\) and \(r'=0.4\). This gives \(A'=4\pi\), not zero.
The same issue appears even when the numerical substitution does not make an expression visibly constant. If substituting the data removes the variables from the relation, the resulting equation may no longer contain any information about their rates. A useful check is to ask: Does the equation I am differentiating still describe the quantities as functions of time, or have I reduced it to a statement about one instant?
Why This Distinction Matters
A related-rates calculation connects a geometric or physical constraint to instantaneous change. The constraint gives a relationship among quantities; the chain rule converts that relationship into one among their rates. Substituting too soon can erase one or more of those changing quantities, making the rate equation impossible to obtain or leading to a false zero rate.
Keeping the variables until after differentiation also makes the reasoning easier to audit. You can see which rates enter the calculation, where the chain rule is used, and which instant-specific values are inserted. In many problems, checking that the differentiated relation is satisfied is a strong way to detect a missing factor or an incorrect sign.
The essential distinction is between a value at an instant and a constant over time. Only the second can be treated as constant when differentiating. Preserve the time dependence, differentiate the constraint, and then evaluate.
Check Your Understanding
Use these questions to test whether you can recognize where the time dependence belongs in a rate calculation.
- A length \(x(t)\) equals \(4\) at one instant. Does that information alone imply \(x'=0\) at that instant? Explain.
- A rectangle has area \(A=xy\). Why is substituting the instantaneous values of \(x\) and \(y\) before differentiating potentially misleading?
- A point moves under the constraint \(x^2+y^2=25\). What equation should be differentiated to relate \(x'\) and \(y'\), and why does substituting one point first fail?
- Give one condition under which substituting a quantity before differentiating is valid.
- For a differentiable constraint \(F(x(t),y(t))=C\), write the rate equation obtained by differentiating with respect to time.