To solve for the height \( h \) of the square pyramid using the Pythagorean theorem, we can visualize the problem as forming a right triangle with:
- The height \( h \) of the pyramid as one leg.
- The distance from the center of the base to the midpoint of the front base edge as the other leg.
- The slant height (25 feet) as the hypotenuse.
-
Identify dimensions:
- The length of the base edge is 40 feet. Therefore, the distance from the center of the base to the midpoint of the front base edge is half of 40 feet: \[ \frac{40}{2} = 20 \text{ feet} \]
-
Set up the Pythagorean theorem: According to the Pythagorean theorem: \[ \text{(slant height)}^2 = h^2 + \text{(distance from center to midpoint)}^2 \] Plugging in the values: \[ 25^2 = h^2 + 20^2 \]
-
Calculate the values: \[ 625 = h^2 + 400 \] \[ h^2 = 625 - 400 \] \[ h^2 = 225 \]
-
Solve for \( h \): \[ h = \sqrt{225} = 15 \]
Therefore, the height \( h \) of the square pyramid is 15.0 feet.
So, the answer is: 15.0 ft.