Tutorials › AP Calculus › Similar Triangles and Moving Shadows

Related Rates Models · Tutorial 283 of 999

Similar Triangles and Moving Shadows

Build the similar-triangle constraint for a person and a lamppost, then use it to find the changing shadow length and shadow-tip speed.

Intermediate 9 min read

What You'll Learn

  • Identify the two similar right triangles in a lamppost-shadow diagram.
  • Relate the person’s distance from the pole to the shadow length.
  • Differentiate the geometric constraint with respect to time.
  • Distinguish the rate of shadow growth from the speed of the shadow tip.
  • Interpret positive and negative rates using a consistent coordinate direction.
  • Check a proposed relation by substituting it into the original geometry.

Why Similar Triangles Model a Moving Shadow

A person walking away from a lamppost changes the length of the shadow cast on level ground. The person’s distance from the pole, the shadow length, and the distance from the pole to the shadow tip all change together. Similar triangles turn that geometry into an equation, and differentiating the equation relates the corresponding rates.

The key is to label the distances carefully. The shadow itself is not the same distance as the shadow tip’s position measured from the pole. That distinction determines whether a calculated rate describes the shadow length or the tip’s motion.

Set Up the Geometry

Let \(H\) be the height of the lamppost and \(h\) the height of the person. Assume both heights remain constant, the ground is level, and the lamppost is taller than the person, so \(H>h>0\).

At time \(t\), let \(x(t)\) be the person’s horizontal distance from the base of the lamppost, and let \(s(t)\) be the length of the person’s shadow. The shadow tip is therefore \(x(t)+s(t)\) units from the pole. The lamppost, the person, and the shadow tip lie along the same straight ground line.

The large right triangle has vertical side \(H\) and horizontal side \(x+s\). The smaller right triangle, formed by the person and the person’s shadow, has vertical side \(h\) and horizontal side \(s\). The triangles share an acute angle along the light ray, so they are similar by the angle-angle criterion.

Geometric constraint: For a person at distance \(x\) from the pole with shadow length \(s\), similar triangles give \(\frac{H}{x+s}=\frac{h}{s}\). The horizontal side of the large triangle is the full pole-to-tip distance \(x+s\), not just \(x\).

Cross-multiplying gives a useful equivalent form. Because \(H>h\), it can also be solved for the shadow length:

$$ Hs=h(x+s) \qquad\Longrightarrow\qquad (H-h)s=hx \qquad\Longrightarrow\qquad s=\frac{h}{H-h}x. $$

This relationship says that, for fixed heights, the shadow length is proportional to the person’s distance from the pole. It describes the geometry at every instant; it is not yet a statement about speed.

Differentiate the Constraint

To relate rates, differentiate the equation \((H-h)s=hx\) with respect to time. Since the heights \(H\) and \(h\) are constant, the result is \((H-h)\frac{ds}{dt}=h\frac{dx}{dt}\). Thus the shadow-length rate is a constant multiple of the person’s distance rate.

$$ (H-h)\frac{ds}{dt}=h\frac{dx}{dt} \qquad\Longrightarrow\qquad \frac{ds}{dt}=\frac{h}{H-h}\frac{dx}{dt}. $$

The tip’s distance from the pole is \(x+s\). Differentiating this position gives its signed velocity along the ground. Substituting the shadow-length rate produces a second, especially useful relationship:

$$ \frac{d}{dt}(x+s) = \frac{dx}{dt}+\frac{ds}{dt} = \frac{dx}{dt}+\frac{h}{H-h}\frac{dx}{dt} = \frac{H}{H-h}\frac{dx}{dt}. $$
Theorem: With fixed heights \(H>h>0\), the rates satisfy \(\frac{ds}{dt}=\frac{h}{H-h}\frac{dx}{dt}\) and \(\frac{d}{dt}(x+s)=\frac{H}{H-h}\frac{dx}{dt}\). Here \(\frac{ds}{dt}\) is the rate at which the shadow length changes, while \(\frac{d}{dt}(x+s)\) is the signed velocity of the shadow tip measured away from the pole.

Why the Rate Relationship Works

The derivation follows from two facts. First, similar triangles give a fixed proportion between the horizontal lengths: \((H-h)s=hx\). Second, the heights are constant, so differentiating this constraint leaves only the rates of the changing horizontal distances.

The result also has a direct interpretation. If \(H>h\), then both multipliers \(\frac{h}{H-h}\) and \(\frac{H}{H-h}\) are positive. So if the person walks away from the pole, with \(\frac{dx}{dt}>0\), the shadow length grows and the tip moves away too. The tip moves faster than the person because its rate multiplier is greater than \(1\): \(\frac{H}{H-h}>1\).

If the person walks toward the pole, then \(\frac{dx}{dt}<0\). The shadow length is shrinking, so \(\frac{ds}{dt}<0\), and the tip’s signed velocity is also negative. A negative signed velocity here means motion toward the pole; it does not mean the tip’s speed is negative.

Worked Examples

Worked Example: Find the Shadow Growth and Tip Speed

A \(2\)-meter-tall person walks away from a \(6\)-meter lamppost at \(1.5\) meters per second. At the instant considered, the person is \(8\) meters from the pole. Find the rate at which the shadow length changes and the speed of the shadow tip.

First check the geometry. The shadow length is \(s=\frac{h}{H-h}x=\frac{2}{6-2}(8)=\frac{2}{4}(8)=4\) meters. The large triangle’s horizontal side is \(x+s=8+4=12\) meters. The similarity ratios agree: \(\frac{H}{x+s}=\frac{6}{12}=\frac12\) and \(\frac{h}{s}=\frac{2}{4}=\frac12\).

Now use \(\frac{dx}{dt}=1.5\) meters per second in the shadow-rate relationship:

$$ \frac{ds}{dt} = \frac{h}{H-h}\frac{dx}{dt} = \frac{2}{6-2}(1.5) = \frac12(1.5) = 0.75\text{ meters per second}. $$

The tip’s signed velocity is the sum of the person’s velocity and the shadow-length rate:

$$ \frac{d}{dt}(x+s) = \frac{dx}{dt}+\frac{ds}{dt} = 1.5+0.75 = 2.25\text{ meters per second}. $$

Check with the direct tip-rate formula: \(\frac{H}{H-h}\frac{dx}{dt}=\frac{6}{4}(1.5)=2.25\) meters per second. The shadow length grows at \(0.75\) meters per second, and the tip moves away from the pole at \(2.25\) meters per second.

Worked Example: A Person Walks Toward the Pole

An \(2\)-meter-tall person is \(9\) meters from an \(8\)-meter lamppost and walks toward it at \(1\) meter per second. Find the shadow length at that instant, the rate at which it changes, and the shadow tip’s signed velocity.

Choose the positive direction to be away from the pole. Since the person walks toward the pole, \(\frac{dx}{dt}=-1\) meter per second. The shadow length is

$$ s=\frac{h}{H-h}x = \frac{2}{8-2}(9) = \frac{2}{6}(9) = 3\text{ meters}. $$

Check the similar triangles: \(x+s=9+3=12\) meters, so \(\frac{H}{x+s}=\frac{8}{12}=\frac23\) and \(\frac{h}{s}=\frac{2}{3}=\frac23\).

The shadow-length rate is

$$ \frac{ds}{dt} = \frac{2}{8-2}(-1) = -\frac{1}{3}\text{ meter per second}. $$

The negative sign means the shadow is getting shorter. The tip’s signed velocity is

$$ \frac{d}{dt}(x+s) = -1-\frac13 = -\frac43\text{ meters per second}. $$

Checking directly gives \(\frac{H}{H-h}\frac{dx}{dt}=\frac{8}{6}(-1)=-\frac43\) meters per second. Thus the tip moves toward the pole at a speed of \(\frac43\) meters per second.

Worked Example: Find Walking Speed from the Tip’s Motion

A \(3\)-meter-tall person walks away from a \(9\)-meter lamppost. At a particular instant, the shadow tip is moving away from the pole at \(3.75\) meters per second. Find the person’s walking speed and the rate of shadow growth. At that instant, the person is \(12\) meters from the pole.

First find the shadow length and check the geometry:

$$ s=\frac{h}{H-h}x = \frac{3}{9-3}(12) = \frac{3}{6}(12) = 6\text{ meters}, \qquad x+s=12+6=18\text{ meters}. $$

The large and small ratios agree: \(\frac{9}{18}=\frac12\) and \(\frac{3}{6}=\frac12\). Because the tip is moving away, its signed velocity is positive: \(\frac{d}{dt}(x+s)=3.75\) meters per second. Use the direct tip-rate relationship to solve for the person’s rate:

$$ 3.75 = \frac{9}{9-3}\frac{dx}{dt} = \frac32\frac{dx}{dt}, \qquad \frac{dx}{dt} = 3.75\left(\frac23\right) = 2.5\text{ meters per second}. $$

Then find the shadow-growth rate:

$$ \frac{ds}{dt} = \frac{3}{9-3}(2.5) = \frac12(2.5) = 1.25\text{ meters per second}. $$

Check by adding the person’s rate and the shadow-growth rate: \(2.5+1.25=3.75\) meters per second, matching the given tip velocity.

A Common Mistake: Using the Wrong Horizontal Side

A frequent error is to use \(x\), the person’s distance from the pole, as the large triangle’s horizontal side. The large triangle extends all the way from the pole to the shadow tip, so that side has length \(x+s\).

For example, with \(H=6\), \(h=2\), and \(x=8\), the incorrect equation \(\frac{H}{x}=\frac{h}{s}\) would give \(\frac{6}{8}=\frac{2}{s}\), or \(s=\frac{8}{3}\) meters. But substituting this into the correct geometric constraint gives \(\frac{6}{8+\frac83}=\frac{9}{16}\), while \(\frac{2}{\frac83}=\frac34\). These ratios are not equal, so the proposed shadow length fails the similarity check.

The correct large-triangle base is \(x+s\). Using it gives \(\frac{6}{8+s}=\frac{2}{s}\), so \(6s=16+2s\), \(4s=16\), and \(s=4\) meters. Substitution confirms \(\frac{6}{8+4}=\frac12=\frac{2}{4}\).

Another related distinction is that the tip’s position is \(x+s\), not \(s\). Its rate is therefore \(\frac{dx}{dt}+\frac{ds}{dt}\), not merely \(\frac{ds}{dt}\). Always identify which changing length the question asks about.

Using the Model Reliably

In a related-rates problem, the geometry supplies a constraint that connects changing quantities. For this model, the constraint comes from the two similar triangles. After differentiating it with respect to time, use the given rate with its sign and units. Do not confuse the shadow length with the tip’s distance from the pole.

1
Label the distances.
Use \(x\) for the person’s distance from the pole and \(s\) for the shadow length, making the tip’s position \(x+s\).
2
Write the similarity equation.
Match the vertical and horizontal sides of each triangle: \(\frac{H}{x+s}=\frac{h}{s}\).
3
Differentiate before inserting rates.
With fixed heights, \((H-h)\frac{ds}{dt}=h\frac{dx}{dt}\).
4
Identify the requested rate.
The shadow-length rate is \(\frac{ds}{dt}\); the tip’s signed velocity is \(\frac{dx}{dt}+\frac{ds}{dt}\).
5
Check the result.
Substitute distances into the original similarity relation, and confirm that the rates have consistent signs and units.

The model relies on the stated geometry: fixed heights, level ground, and a lamppost taller than the person. If the person’s height or the lamp’s height changes, the corresponding quantities cannot be treated as constants during differentiation. For the fixed-height situation, the similar-triangle constraint provides both the lengths and the rates needed to describe the moving shadow.

Check Your Understanding

Use the similar-triangle constraint and keep the positive direction away from the lamppost.

  1. In the model, what is the horizontal side of the large triangle, and why is it not just \(x\)?
  2. A \(1.5\)-meter-tall person is \(7\) meters from a \(6\)-meter pole. What is the shadow length? Check the similarity ratios.
  3. For a \(2\)-meter-tall person walking away from a \(8\)-meter pole at \(1.5\) meters per second, find the shadow-length rate and the tip’s signed velocity.
  4. If a person walks toward the pole, what signs should \(\frac{dx}{dt}\), \(\frac{ds}{dt}\), and the tip’s signed velocity have?
  5. Explain why the tip’s velocity is the sum of the person’s velocity and the shadow-length rate.

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