Sub topic 12
Pipes Opened or Closed at Different Times
Assume you know fractions, reciprocals, LCM, and the rule that work equals rate multiplied by time. This chapter applies that rule when pipes do not operate for the same duration.
Track each time interval separately
A pipe’s rate is the fraction of the tank it fills or empties in one unit of time.
- An inlet pipe has a positive rate.
- An outlet pipe or leak has a negative rate.
- During each interval, add the rates of the pipes that are open.
- The work completed in that interval is rate multiplied by duration.
Do not use one combined rate for the whole problem unless the same pipes remain open throughout.
| Pipe action | Rate during the interval |
|---|---|
| Inlet fills in 10 hours | \(+1/10\) tank per hour |
| Outlet empties in 15 hours | \(-1/15\) tank per hour |
| Both are open | \(1/10 - 1/15 = 1/30\) tank per hour |
A useful table records the changing conditions:
| Interval | Open pipes | Net rate | Work completed |
|---|---|---|---|
| 0 to 2 hours | A | \(3\) units/hour | \(6\) units |
| 2 to 5 hours | A and B | \(5\) units/hour | \(15\) units |
| After 5 hours | B | \(2\) units/hour | calculated from remaining work |
Worked example: an inlet opens first
Pipe A fills a tank in 10 hours. Pipe B fills it in 15 hours. A is opened first. After 2 hours, B is opened as well. After another 3 hours, A is closed. How long does the tank take to fill?
Choose 30 units as the total work. This is the LCM of 10 and 15.
- A fills \(30/10 = 3\) units per hour.
- B fills \(30/15 = 2\) units per hour.
Now work through the intervals:
- During the first 2 hours, A completes \(3 \times 2 = 6\) units.
- During the next 3 hours, both pipes complete \((3+2)\times3 = 15\) units.
- The completed work is \(6+15=21\) units.
- The remaining work is \(30-21=9\) units.
- After A closes, B alone needs \(9/2=4.5\) hours.
Therefore, the total time is:
\[ 2+3+4.5=9.5\text{ hours} \]
total_work = 30
rate_a = 3
rate_b = 2
first_interval = rate_a * 2
second_interval = (rate_a + rate_b) * 3
remaining = total_work - first_interval - second_interval
last_interval = remaining / rate_b
print(2 + 3 + last_interval) # 9.5Partly filled tanks
If a tank is already partly filled, calculate only the remaining work. For example, if a tank is \(2/5\) full, the remaining work is \(3/5\) of the tank.
The same interval method applies:
- Convert every pipe into a rate.
- Identify when each pipe opens or closes.
- Calculate work for each interval.
- Subtract completed work from the required work.
- Divide the remaining work by the current net rate.
A pipe that empties a tank must be subtracted. If an inlet fills \(1/8\) tank per hour and an outlet empties \(1/12\) tank per hour, their net rate is:
\[ \frac18-\frac1{12}=\frac1{24} \]
This net rate applies only while both pipes are open.
A quick sanity check
If an outlet is open with an inlet, the tank should fill more slowly than with the inlet alone. If the outlet’s rate is greater than the inlet’s rate, the tank level should decrease during that interval. A negative remaining time signals that the tank was already full or that the interval assumptions were wrong.
Exercise
An inlet fills a tank in 12 hours, and an outlet empties it in 18 hours. The inlet works alone for 2 hours. Then both pipes work for 3 hours, after which the outlet closes. How long from the start until the tank is full?
Show answer
Use 36 units: inlet rate 3 and outlet rate -2. The first interval completes 6 units, and the second completes (3 - 2) × 3 = 3 units. The remaining 27 units take 27/3 = 9 hours with the inlet alone. Total time = 2 + 3 + 9 = 14 hours.