Use calculus to find the volume of a frustrum of a pyramid with square base of side , square top of side , and height .

Volume =