Tutorials › AP Calculus › Differentiating Constraints with Respect to Time

Related Rates Models · Tutorial 281 of 999

Differentiating Constraints with Respect to Time

Translate changing quantities into functions of time, differentiate their constraint equations correctly, and evaluate the resulting rates at a specified instant.

Intermediate 8 min read

What You'll Learn

  • Express changing quantities as functions of time before differentiating
  • Use the chain rule when differentiating powers of time-dependent quantities
  • Apply the product rule to constraints involving products of changing quantities
  • Differentiate an implicit relation between two quantities
  • Derive an area rate from the circle-area formula
  • Find a leg’s rate of change from a right-triangle constraint

Why Differentiate a Constraint with Respect to Time?

In a related-rates situation, quantities may change while remaining linked by a geometric or physical relationship. For example, the area of a circle depends on its radius, and the legs of a right triangle are linked when its hypotenuse is fixed. The relationship holds as time passes, so its quantities should be treated as functions of time.

If a quantity is called \(x\), write it as \(x(t)\) when it changes with time. Its instantaneous rate is \(x'(t)=\frac{dx}{dt}\). A constraint such as \(x^2+y^2=169\) then means that \(x(t)^2+y(t)^2=169\) throughout the interval being considered.

Definition: Differentiating a constraint with respect to time means taking the derivative of both sides of an equation whose quantities depend on \(t\). The chain rule and product rule account for that time dependence.

The result is an equation connecting instantaneous rates. Once that equation has been found, values at a particular instant can be used to calculate an unknown rate.

The Chain Rule for Time-Dependent Quantities

If \(x=x(t)\) is differentiable, then differentiating a power of \(x\) requires the chain rule. In particular,

$$ \frac{d}{dt}\bigl(x(t)^2\bigr) = 2x(t)\frac{dx}{dt}. $$

The factor \(\frac{dx}{dt}\) is essential: the inside quantity \(x(t)\) itself changes with time. More generally, for a differentiable function \(F\),

$$ \frac{d}{dt}F(x(t)) = F'(x(t))\frac{dx}{dt}. $$

For a relation involving two time-dependent quantities, differentiate each term with respect to \(t\). For example, if \(x(t)^2+y(t)^2=169\), then

$$ 2x(t)\frac{dx}{dt}+2y(t)\frac{dy}{dt}=0. $$

This is implicit differentiation with respect to time: the equation relates \(x\) and \(y\), but neither needs to be solved explicitly as a function of the other before differentiating.

The Product Rule for a Constraint

When two changing quantities are multiplied, use the product rule. If \(x=x(t)\) and \(y=y(t)\) are differentiable, then

$$ \frac{d}{dt}\bigl(x(t)y(t)\bigr) = \frac{dx}{dt}y(t)+x(t)\frac{dy}{dt}. $$

Therefore, if their product is constant, \(x(t)y(t)=C\), differentiating gives

$$ y(t)\frac{dx}{dt}+x(t)\frac{dy}{dt}=0. $$

Both terms appear because either factor can change. The product is not differentiated by multiplying the two rates, nor by differentiating just one factor.

Why the Differentiation Works

The method follows directly from treating the constraint as an equation of functions. Here is the argument for a right-triangle constraint with constant hypotenuse.

1
Write the relationship for all relevant times.
If the legs are \(x(t)\) and \(y(t)\), and the fixed hypotenuse is \(c\), the Pythagorean theorem gives \(x(t)^2+y(t)^2=c^2\).
2
Differentiate the identity.
Because the identity holds as \(t\) varies, its derivative is \(2x(t)x'(t)+2y(t)y'(t)=0\). The chain rule supplies \(x'(t)\) and \(y'(t)\).
3
Use the relation at the instant of interest.
If \(y(t)\ne 0\), rearranging gives \(y'(t)=-\frac{x(t)}{y(t)}x'(t)\). The equation follows by differentiating the original identity, not by assuming one leg is a function already solved from the other.

This derivation assumes the legs are differentiable functions of time. The division in the final formula also requires \(y(t)\ne 0\). Keeping these conditions in view helps distinguish a valid rate equation from an expression that cannot be used at a particular point.

Worked Example: Rate of Change of a Circle’s Area

Worked Example: Rate of Change of a Circle’s Area

The radius \(r(t)\) of a circle is \(4\) meters at an instant and is increasing at \(\frac{3}{2}\) meters per minute. Find the instantaneous rate of change of its area at that instant.

Step 1: Write the area as a time-dependent quantity. The circle-area formula is \(A(t)=\pi r(t)^2\).

Step 2: Differentiate with respect to time. By the chain rule,

$$ \frac{dA}{dt} = \pi\cdot 2r(t)\frac{dr}{dt} = 2\pi r(t)\frac{dr}{dt}. $$

Step 3: Substitute the values for this instant.

$$ \frac{dA}{dt} = 2\pi(4)\left(\frac{3}{2}\right) = 8\pi\cdot\frac{3}{2} = 12\pi. $$

The area is increasing at \(12\pi\) square meters per minute at this instant. To check the rate formula, differentiating \(A(t)=\pi r(t)^2\) again by the chain rule gives \(2\pi r(t)r'(t)\), the same expression used above.

Worked Example: A Fixed Right-Triangle Constraint

Worked Example: Finding a Leg’s Rate of Change

A right triangle has a fixed hypotenuse of \(13\) centimeters. At an instant, one leg has length \(x=5\) centimeters and is increasing at \(3\) centimeters per second. The other leg has length \(y=12\) centimeters. Find \(\frac{dy}{dt}\) at that instant.

Step 1: Write the constraint. The Pythagorean theorem gives \(x(t)^2+y(t)^2=13^2=169\).

Step 2: Differentiate the whole equation with respect to time.

$$ 2x\frac{dx}{dt}+2y\frac{dy}{dt}=0. $$

Step 3: Substitute the instantaneous values and solve.

$$ 2(5)(3)+2(12)\frac{dy}{dt}=0, $$ $$ 30+24\frac{dy}{dt}=0, $$ $$ 24\frac{dy}{dt}=-30, \qquad \frac{dy}{dt}=-\frac{30}{24}=-\frac{5}{4}. $$

Thus the other leg’s instantaneous rate is \(-\frac{5}{4}\) centimeters per second. Check by substituting into the differentiated constraint: \(2(5)(3)+2(12)(-\frac{5}{4})=30-30=0\). The original constraint also holds at the stated instant, since \(5^2+12^2=25+144=169\).

Worked Example: Differentiating a Product Constraint

Worked Example: Two Quantities with a Fixed Product

Two positive quantities \(x(t)\) and \(y(t)\) satisfy \(x(t)y(t)=48\). At an instant, \(x=6\), \(y=8\), and \(\frac{dx}{dt}=\frac{3}{2}\). Find \(\frac{dy}{dt}\) at that instant.

Step 1: Differentiate using the product rule.

$$ \frac{d}{dt}(xy) = y\frac{dx}{dt}+x\frac{dy}{dt}. $$

The derivative of the constant \(48\) is \(0\), so \(y\frac{dx}{dt}+x\frac{dy}{dt}=0\).

Step 2: Substitute the given values and solve.

$$ 8\left(\frac{3}{2}\right)+6\frac{dy}{dt}=0, $$ $$ 12+6\frac{dy}{dt}=0, $$ $$ \frac{dy}{dt}=-2. $$

Therefore, \(\frac{dy}{dt}=-2\) in the units of \(y\) per unit of time. Check the differentiated constraint: \(8(\frac{3}{2})+6(-2)=12-12=0\). The stated values also satisfy the original constraint because \(6\cdot 8=48\).

A Common Mistake: Omitting the Rate Factor

When differentiating \(x(t)^2\), it is incorrect to write only \(2x\). That expression is the derivative of \(x^2\) with respect to \(x\), not with respect to time when \(x\) changes with time. The chain rule requires the additional factor \(\frac{dx}{dt}\).

For the triangle in the earlier example, omitting that factor would produce the incorrect equation \(2x+2y\frac{dy}{dt}=0\). Substituting \(x=5\) and \(y=12\) would then give

$$ 10+24\frac{dy}{dt}=0 \qquad\Longrightarrow\qquad \frac{dy}{dt}=-\frac{5}{12}. $$

This does not satisfy the correctly differentiated constraint with \(\frac{dx}{dt}=3\): \(2(5)(3)+2(12)(-\frac{5}{12})=30-10=20\ne 0\). The correction is to differentiate \(x(t)^2\) as \(2x(t)\frac{dx}{dt}\), giving the verified rate \(-\frac{5}{4}\).

Differentiate Before Using Instantaneous Values

A constraint relates quantities throughout their motion, whereas numerical values describe only one instant. Differentiate the relationship while the quantities are still variables; then substitute the values and known rates for the instant in question. Substituting values into the original constraint first may simply produce a numerical identity, which no longer contains the changing quantities needed to find their rates.

The essential sequence is: represent changing quantities as functions of time, differentiate the full constraint using the appropriate rules, and then evaluate the resulting rate equation at the specified instant. The chain rule handles composed quantities such as \(r(t)^2\); the product rule handles products such as \(x(t)y(t)\); and implicit differentiation applies these rules directly to equations linking quantities.

Check Your Understanding

For each question, identify the constraint and the differentiation rule that applies before calculating.

  1. If \(u(t)^2+v(t)^2=100\), what equation results from differentiating with respect to \(t\)?
  2. If \(A(t)=\pi r(t)^2\), write \(\frac{dA}{dt}\) in terms of \(r\) and \(\frac{dr}{dt}\).
  3. If \(p(t)q(t)=36\), what equation relates \(\frac{dp}{dt}\) and \(\frac{dq}{dt}\)?
  4. For a right triangle with fixed hypotenuse, why does differentiating the squared leg lengths produce rate factors?
  5. Why should you differentiate a constraint before substituting values for a particular instant?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon