Step 1: Understanding the Concept
Force needed for extension \(\ell\) is \(F = \dfrac{YA}{L}\ell\).
Step 2: Work done
\(W = \tfrac12 F\ell = \dfrac{YA}{2L}\ell^2\).
Step 3: Proportionality
\(Y, A, L\) are constant, so \(W \propto \ell^2\).
Step 4: Match the option
Work done is proportional to \(\ell^2\).
Final Answer:
The work done is proportional to the square of the elongation.
\[ \boxed{\text{(D) }\ell^{2}} \]