Step 1: Dynamic volume: Because \( r_{\text{in}} \neq r_{\text{out}} \), volume changes with time: \[ V(t) = V_0 + (r_{\text{in}} - r_{\text{out}})t = 100 + 2t. \]
Step 2: Differential balance equation: \[ \frac{dQ}{dt} = \text{Rate In} - \text{Rate Out} = r_{\text{in}} c_{\text{in}} - r_{\text{out}} \frac{Q(t)}{V(t)} = 4(0.5) - 2 \frac{Q}{100 + 2t}. \] In standard linear form: \[ \frac{dQ}{dt} + \frac{1}{50 + t}Q = 2, \qquad Q(0) = 0. \]
Step 3: Integrating factor: \[ \mu(t) = \exp\left(\int \frac{1}{50 + t}\,dt\right) = 50 + t. \]
Step 4: Integrate and solve: \[ \frac{d}{dt}\big[(50 + t)Q\big] = 2(50 + t) \implies (50 + t)Q = (50 + t)^2 + C. \] Applying \( Q(0) = 0 \): \( 50(0) = 50^2 + C \implies C = -2500 \). Thus: \[ Q(t) = 50 + t - \frac{2500}{50 + t}. \]