For the given process \( PV^2 = \text{constant} \), the work done by the gas during the expansion is given by the integral:
\[
W = \int_{V_1}^{V_2} P \, dV
\]
Since \( P = \frac{\text{constant}}{V^2} \), the work done can be calculated as:
\[
W = \int_{V_1}^{V_2} \frac{C}{V^2} dV
\]
Using the limits \( V_1 = 1 \, \text{L} \) and \( V_2 = 2 \, \text{L} \), and knowing the relationship \( P_1 V_1^2 = P_2 V_2^2 \), we can calculate the work done.
The pressure at \( V_2 \) can be found from the initial condition:
\[
P_1 V_1^2 = P_2 V_2^2
\]
Thus, the work done by the gas is approximately 10.1 J.