Tutorials › Calculus I › Pumping Liquids With Multiple Densities

Work and Geometric Applications · Tutorial 1321 of 1495

Pumping Liquids With Multiple Densities

Model the work needed to pump layered liquids by integrating each layer’s weight times its distance to the outlet.

Advanced 10 min read

What You'll Learn

  • Define a vertical coordinate and outlet height for a layered-fluid pumping model
  • Set up a separate work integral for each layer using its density and lift distance
  • Combine layer integrals without treating different densities as interchangeable
  • Apply the model to tanks whose horizontal cross-sectional area varies with height
  • Check work calculations using antiderivatives, units, and physical bounds

Why Layers Must Be Modeled Separately

A tank may contain several liquids arranged in horizontal layers. If the liquids have different densities, equal volumes do not have equal weights. In addition, liquid at different heights must be lifted different distances to reach an outlet. The work calculation must account for both effects.

The useful strategy is to divide the liquid into its density layers. For each layer, use its own density and integrate the weight of a thin horizontal slice times the slice’s lift distance. Then add the work for all layers.

We will assume the liquid is at rest, the outlet is at a fixed height, gravity is constant, and losses such as friction and turbulence are ignored. The result is the work required to lift the liquid itself.

Set Up the Vertical Model

Let \(y\) measure height vertically from the bottom of the tank, with \(y=0\) at the bottom. Let the outlet be at height \(H\). A thin horizontal slice at height \(y\), of thickness \(dy\), must be lifted a distance \(H-y\), provided \(y\leq H\).

Write \(A(y)\) for the horizontal cross-sectional area of the tank at height \(y\), measured in square metres. A slice of thickness \(dy\) has volume \(A(y)\,dy\). If the slice belongs to a liquid of mass density \(\rho\), its mass is \(\rho A(y)\,dy\), and its weight is \(\rho g A(y)\,dy\), where \(g\) is the acceleration due to gravity. We use \(g=9.8\ \text{m/s}^2\) in the examples.

Layered-liquid work model: If layer \(i\) occupies heights from \(a_i\) to \(b_i\), has constant mass density \(\rho_i\), and is pumped to an outlet at height \(H\), then its work is
$$ W_i=\int_{a_i}^{b_i}\rho_i g A(y)(H-y)\,dy. $$
The total work is the sum over all layers:
$$ W=\sum_{i=1}^{n}\int_{a_i}^{b_i}\rho_i g A(y)(H-y)\,dy. $$
Here \(\rho_i\) is in \(\text{kg/m}^3\), \(A(y)\) is in \(\text{m}^2\), and \(H\), \(y\), and \(dy\) are in metres. The resulting work is in joules.

If a layer’s density is given as weight per unit volume rather than mass per unit volume, use that weight density directly in place of \(\rho_i g\). Do not multiply a weight density by \(g\) a second time.

Why the Layer Integrals Give the Work

The formula follows from the definition of work as force multiplied by distance for a small displacement, extended to a varying force by integration. The force needed to lift one thin slice is its weight, and the distance through which it moves is \(H-y\).

1
Choose a thin slice.
At height \(y\), a slice of thickness \(dy\) has volume \(A(y)\,dy\).
2
Find its weight.
Within layer \(i\), the slice’s weight is approximately \(\rho_i g A(y)\,dy\).
3
Multiply by lift distance.
The slice rises \(H-y\), so its small work contribution is approximately \(\rho_i g A(y)(H-y)\,dy\).
4
Add the contributions.
Summing the slice contributions over the layer and taking the limit gives its integral. Adding the separate layers gives the total work.

More formally, partition a layer interval \([a_i,b_i]\) into thin subintervals. In a subinterval of width \(\Delta y\) near \(y_j\), the slice’s work is approximately \(\rho_i g A(y_j)(H-y_j)\Delta y\). The sum of these terms is a Riemann sum for the integral of \(\rho_i g A(y)(H-y)\). In the limit as the widths tend to zero, the sum becomes the layer’s work integral. The layers occupy disjoint height intervals, so their work contributions add.

This reasoning also explains why the density and lift distance both remain inside the model: density can change at an interface, and lift distance changes continuously with height.

Worked Example: Two Layers in a Cylindrical Tank

Worked Example: Two Layers in a Cylindrical Tank

A vertical cylindrical tank has radius \(0.5\ \text{m}\). Its lower liquid layer occupies \(0\leq y\leq1\) and has mass density \(1000\ \text{kg/m}^3\). The upper layer occupies \(1\leq y\leq2\) and has density \(800\ \text{kg/m}^3\). Pump all the liquid to an outlet at height \(H=2.5\ \text{m}\). Find the work, using \(g=9.8\ \text{m/s}^2\).

The tank has constant cross-sectional area

$$ A(y)=\pi(0.5)^2=\frac{\pi}{4}\ \text{m}^2. $$

Use a separate integral for each layer:

$$ W=9.8\frac{\pi}{4} \left[ 1000\int_0^1(2.5-y)\,dy+ 800\int_1^2(2.5-y)\,dy \right]. $$

An antiderivative of \(2.5-y\) is \(2.5y-\frac{y^2}{2}\). For the lower layer,

$$ \int_0^1(2.5-y)\,dy = \left[2.5y-\frac{y^2}{2}\right]_0^1 = \left(2.5-\frac12\right)-0 = 2. $$

For the upper layer,

$$ \int_1^2(2.5-y)\,dy = \left[2.5y-\frac{y^2}{2}\right]_1^2 = (5-2)-(2.5-0.5) = 3-2 = 1. $$

Therefore,

$$ W=9.8\frac{\pi}{4}\bigl(1000(2)+800(1)\bigr) =9.8\frac{\pi}{4}(2800) =6860\pi\ \text{J}. $$

Check the antiderivative: \(\frac{d}{dy}(2.5y-y^2/2)=2.5-y\), the original integrand. The two evaluated integrals are \(2\) and \(1\), so the density-weighted sum is \(2000+800=2800\), as used. The units are \((\text{kg/m}^3)(\text{m/s}^2)(\text{m}^2)(\text{m})(\text{m})=\text{J}\).

Worked Example: A Tank With Changing Cross-Sectional Area

Worked Example: A Tank With Changing Cross-Sectional Area

A tank has horizontal cross-sectional area \(A(y)=2+y\ \text{m}^2\) for \(0\leq y\leq2\). A lower layer of density \(900\ \text{kg/m}^3\) fills \(0\leq y\leq1\), and an upper layer of density \(1200\ \text{kg/m}^3\) fills \(1\leq y\leq2\). The outlet is at \(H=3\ \text{m}\). Find the work using \(g=9.8\ \text{m/s}^2\).

The work is

$$ W=9.8 \left[ 900\int_0^1(2+y)(3-y)\,dy+ 1200\int_1^2(2+y)(3-y)\,dy \right]. $$

First expand the integrand:

$$ (2+y)(3-y)=6+y-y^2. $$

An antiderivative is \(F(y)=6y+\frac{y^2}{2}-\frac{y^3}{3}\). For the lower layer,

$$ \int_0^1(6+y-y^2)\,dy = F(1)-F(0) = \left(6+\frac12-\frac13\right)-0 = \frac{37}{6}. $$

For the upper layer, evaluate both endpoints:

$$ F(2)=12+2-\frac83=\frac{34}{3}, \qquad F(1)=\frac{37}{6}, $$ $$ \int_1^2(6+y-y^2)\,dy = \frac{34}{3}-\frac{37}{6} = \frac{68-37}{6} = \frac{31}{6}. $$

Substituting these values,

$$ W=9.8 \left(900\frac{37}{6}+1200\frac{31}{6}\right) =9.8(5550+6200) =9.8(11750) =115150\ \text{J}. $$

Check: \(F'(y)=6+y-y^2=(2+y)(3-y)\), so the antiderivative is correct. The layer contributions before multiplication by \(g\) are \(900(37/6)=5550\) and \(1200(31/6)=6200\); their sum is \(11750\). The area, slice thickness, and lift distance contribute \(\text{m}^4\), which combined with density and \(g\) gives joules.

Worked Example: Three Layers With Different Lift Distances

Worked Example: Three Layers With Different Lift Distances

A tank has constant cross-sectional area \(3\ \text{m}^2\). Its layers occupy \(0\leq y\leq0.5\), \(0.5\leq y\leq1.5\), and \(1.5\leq y\leq2.5\), with densities \(1000\), \(850\), and \(700\ \text{kg/m}^3\), respectively. Pump the liquid to an outlet at \(H=3\ \text{m}\), using \(g=9.8\ \text{m/s}^2\).

Set up the three contributions separately:

$$ W=9.8(3) \left[ 1000\int_0^{0.5}(3-y)\,dy+ 850\int_{0.5}^{1.5}(3-y)\,dy+ 700\int_{1.5}^{2.5}(3-y)\,dy \right]. $$

An antiderivative of \(3-y\) is \(G(y)=3y-y^2/2\), and \(G'(y)=3-y\). The first integral is

$$ G(0.5)-G(0) = \left(1.5-\frac{0.25}{2}\right)-0 = 1.375 = \frac{11}{8}. $$

The second is

$$ G(1.5)-G(0.5) = \left(4.5-\frac{2.25}{2}\right) - \left(1.5-\frac{0.25}{2}\right) = 3.375-1.375 = 2. $$

The third is

$$ G(2.5)-G(1.5) = \left(7.5-\frac{6.25}{2}\right) - \left(4.5-\frac{2.25}{2}\right) = 4.375-3.375 = 1. $$

Thus,

$$ W=29.4 \left[ 1000\left(\frac{11}{8}\right)+850(2)+700(1) \right] =29.4(1375+1700+700) =29.4(3775) =110985\ \text{J}. $$

Check: the three lift integrals are \(11/8\), \(2\), and \(1\), and their density-weighted sum is \(1375+1700+700=3775\). Also, \(G'(y)=3-y\). Each term in the original integral has the required units, so the total is in joules.

Common Pitfall: Averaging the Densities First

A tempting shortcut is to replace different layer densities with their arithmetic mean and then model the whole tank as one liquid. In general, this is wrong because the layers do not have the same average lift distance.

For the two-layer cylindrical example, the layers have equal height, so their arithmetic mean density is \((1000+800)/2=900\ \text{kg/m}^3\). Treating the entire height from \(0\) to \(2\) as density \(900\) would give

$$ W_{\text{wrong}} = 9.8\frac{\pi}{4}(900)\int_0^2(2.5-y)\,dy = 9.8\frac{\pi}{4}(900)(3) = 6615\pi\ \text{J}. $$

But the correct result is \(6860\pi\ \text{J}\). The lower, denser layer has a greater average lift distance than the upper layer, so a simple average of the densities does not preserve the work. The correction is to retain the separate density and height interval for each layer, as in the layer-by-layer integral.

Modeling Checks

Before evaluating a layered-liquid work integral, check that the model matches the physical arrangement:

  • Measure \(y\) from a clearly specified reference height, and express the outlet height \(H\) in the same coordinate.
  • Use the correct density for every layer’s interval; an interface is a point where the density formula changes.
  • Use \(H-y\) for the lift distance when the liquid is discharged at the fixed outlet height \(H\).
  • Use \(A(y)\) at the slice height, not the tank’s total volume or surface area.
  • Keep units consistent, and distinguish mass density from weight density.

If a layer extends above the outlet, the expression \(H-y\) would be negative there and would not represent the positive distance required to raise that liquid to the outlet. The model must then be adjusted to describe the actual pumping path and direction. For the standard setup in this tutorial, all liquid lies at or below the outlet.

Check Your Understanding

For each question, identify how the density layers and lift distances enter the work model.

  1. A tank has two layers with different densities and a fixed outlet above both. Why should the total work be written as the sum of two integrals?
  2. In the formula \(W_i=\int_{a_i}^{b_i}\rho_i g A(y)(H-y)\,dy\), what does each factor represent?
  3. A tank’s cross-sectional area doubles with height. Which part of the work integrand must reflect that change?
  4. What is wrong with replacing two equal-height layers by a liquid whose density is the arithmetic mean of their densities?
  5. If a problem gives weight density in newtons per cubic metre, should it be multiplied by \(g\)? Explain.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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