◀ Back to Note

Tony's Intertwingled Memex • Reference Manual

Regional Wastewater Effluent Pipeline Routing (Civil & Environmental Engineering) Solution

Formulas & Definitions

Problem Overview

A civil and environmental engineering team designs an optimal utility pipeline trajectory connecting a wastewater treatment plant across a 600-m600\text{-m}600-m wide wetland corridor to a discharge terminal 2000 m2000\text{ m}2000 m downstream. Wetland directional drilling costs $400/m\$400/\text{m}$400/m while dry utility easement trenching costs $240/m\$240/\text{m}$240/m. We formulate the cost objective, establish the physical domain, find the optimal crossing point using the Closed Interval Method, and demonstrate Snell's Law equivalence.


Step-by-Step Mathematical Solution

Step 1: Formulate the Total Construction Cost Objective Function

The total project capital expenditure is the sum of the wetland installation cost and the dry overland easement installation cost:

C(x)=Cwetland⋅dwetland(x)+Cland⋅dland(x)C(x) = C_{\text{wetland}} \cdot d_{\text{wetland}}(x) + C_{\text{land}} \cdot d_{\text{land}}(x)C(x)=Cwetland​⋅dwetland​(x)+Cland​⋅dland​(x)
(Defined in Applied Optimization Modeling Framework.)

  1. Wetland Segment: The pipeline originates at (0,600)(0, 600)(0,600) and drills diagonally under the wetland to point P(x,0)P(x, 0)P(x,0) on the southern easement bank. By the Pythagorean Theorem:
    dwetland(x)=6002+x2=360,000+x2 metersd_{\text{wetland}}(x) = \sqrt{600^2 + x^2} = \sqrt{360,000 + x^2}\text{ meters}dwetland​(x)=6002+x2​=360,000+x2​ meters
    Cost: Cwetland(x)=400360,000+x2C_{\text{wetland}}(x) = 400\sqrt{360,000 + x^2}Cwetland​(x)=400360,000+x2​ dollars.
  2. Dry Easement Segment: From P(x,0)P(x, 0)P(x,0), the pipe runs along the dry riverbank to terminal T(2000,0)T(2000, 0)T(2000,0):
    dland(x)=2000−x metersd_{\text{land}}(x) = 2000 - x\text{ meters}dland​(x)=2000−x meters
    Cost: Cland(x)=240(2000−x)C_{\text{land}}(x) = 240(2000 - x)Cland​(x)=240(2000−x) dollars.
  3. Combined Objective Function:
    C(x)=400360,000+x2+240(2000−x)C(x) = 400\sqrt{360,000 + x^2} + 240(2000 - x)C(x)=400360,000+x2​+240(2000−x)

Step 2: Establish the Context-Driven Physical Domain

The downstream crossing point P(x,0)P(x, 0)P(x,0) must physically lie between the direct perpendicular alignment (x=0x = 0x=0) and the terminal outfall location (x=2000x = 2000x=2000):

Domain: x∈[0,2000] meters\text{Domain: } x \in [0, 2000]\text{ meters}Domain: x∈[0,2000] meters
Because the domain is a closed bounded interval [a,b][a, b][a,b], the Extreme Value Theorem guarantees the existence of an absolute minimum, which can be identified using the Closed Interval Method.

Step 3: Differentiate and Locate Critical Numbers

Differentiate C(x)C(x)C(x) with respect to xxx:

C′(x)=400⋅12360,000+x2⋅(2x)+240(−1)=400x360,000+x2−240C'(x) = 400 \cdot \frac{1}{2\sqrt{360,000 + x^2}} \cdot (2x) + 240(-1) = \frac{400x}{\sqrt{360,000 + x^2}} - 240C′(x)=400⋅2360,000+x2​1​⋅(2x)+240(−1)=360,000+x2​400x​−240

Set C′(x)=0C'(x) = 0C′(x)=0 to find the stationary point:

400x360,000+x2=240  ⟹  x360,000+x2=240400=35\frac{400x}{\sqrt{360,000 + x^2}} = 240 \implies \frac{x}{\sqrt{360,000 + x^2}} = \frac{240}{400} = \frac{3}{5}360,000+x2​400x​=240⟹360,000+x2​x​=400240​=53​

Square both sides to eliminate the radical:

x2360,000+x2=925\frac{x^2}{360,000 + x^2} = \frac{9}{25}360,000+x2x2​=259​
Cross-multiply and isolate x2x^2x2:
25x2=9(360,000+x2)=3,240,000+9x225x^2 = 9(360,000 + x^2) = 3,240,000 + 9x^225x2=9(360,000+x2)=3,240,000+9x2
16x2=3,240,000  ⟹  x2=3,240,00016=202,50016x^2 = 3,240,000 \implies x^2 = \frac{3,240,000}{16} = 202,50016x2=3,240,000⟹x2=163,240,000​=202,500
Taking the positive physical square root:
x=202,500=450 metersx = \sqrt{202,500} = 450\text{ meters}x=202,500​=450 meters
Because 450∈[0,2000]450 \in [0, 2000]450∈[0,2000], x=450 mx = 450\text{ m}x=450 m is a valid physical critical number.

Step 4: Deconstructing Snell's Law Equivalence

Notice the structure of the critical point condition:

x6002+x2=240400=0.6\frac{x}{\sqrt{600^2 + x^2}} = \frac{240}{400} = 0.66002+x2​x​=400240​=0.6
Let θ\thetaθ represent the angle between the diagonal wetland pipeline and the perpendicular bank normal. Then sin⁡θ=x6002+x2=35\sin \theta = \frac{x}{\sqrt{600^2 + x^2}} = \frac{3}{5}sinθ=6002+x2​x​=53​.
The ratio of unit construction costs directly mirrors Snell's Law in optics:
sin⁡θ=ClandCwetland=240400=0.6\sin \theta = \frac{C_{\text{land}}}{C_{\text{wetland}}} = \frac{240}{400} = 0.6sinθ=Cwetland​Cland​​=400240​=0.6
(Formalized in Fastest Path Across Media and Snell's Law.)

Step 5: Execute the Closed Interval Method

Evaluate C(x)C(x)C(x) at the domain boundary endpoints and the interior critical number:

  1. Perpendicular Crossing (x=0 mx = 0\text{ m}x=0 m):
    • Wetland length: 600 m600\text{ m}600 m; Easement length: 2000 m2000\text{ m}2000 m.
      C(0)=400(600)+240(2000)=240,000+480,000=$720,000C(0) = 400(600) + 240(2000) = 240,000 + 480,000 = \$720,000C(0)=400(600)+240(2000)=240,000+480,000=$720,000
  2. Direct Straight-Line Diagonal (x=2000 mx = 2000\text{ m}x=2000 m):
    • Wetland length: 6002+20002=4,360,000≈2088.06 m\sqrt{600^2 + 2000^2} = \sqrt{4,360,000} \approx 2088.06\text{ m}6002+20002​=4,360,000​≈2088.06 m; Easement length: 0 m0\text{ m}0 m.
      C(2000)=400(2088.06)≈$835,224C(2000) = 400(2088.06) \approx \$835,224C(2000)=400(2088.06)≈$835,224
  3. Optimal Refracted Alignment (x=450 mx = 450\text{ m}x=450 m):
    • Wetland length: 6002+4502=360,000+202,500=562,500=750 m\sqrt{600^2 + 450^2} = \sqrt{360,000 + 202,500} = \sqrt{562,500} = 750\text{ m}6002+4502​=360,000+202,500​=562,500​=750 m (a scaled 3−4−53-4-53−4−5 right triangle).
    • Easement length: 2000−450=1550 m2000 - 450 = 1550\text{ m}2000−450=1550 m.
      C(450)=400(750)+240(1550)=300,000+372,000=$672,000C(450) = 400(750) + 240(1550) = 300,000 + 372,000 = \$672,000C(450)=400(750)+240(1550)=300,000+372,000=$672,000

Engineering Significance & Conclusion

  • Optimal Route: The effluent pipeline should cross the wetland along a 750-meter750\text{-meter}750-meter diagonal path reaching the southern riverbank exactly 450 meters450\text{ meters}450 meters downstream, then follow the dry utility easement for the remaining 1,550 meters1,550\text{ meters}1,550 meters to outfall terminal TTT.
  • Capital Cost Savings: This mathematically optimized trajectory yields an absolute minimum capital cost of $672,000\$672,000$672,000, generating:
    • $48,000\$48,000$48,000 in savings (6.7%6.7\%6.7%) compared to a naive perpendicular crossing ($720,000\$720,000$720,000).
    • $163,224\$163,224$163,224 in savings (19.5%19.5\%19.5%) compared to a direct diagonal line ($835,224\$835,224$835,224).