Verify by substitution. Take option (3): \(a=1,\ b=2\), so \(\mu=1+\frac{2x}{L}\).
\(M=\int_0^L\mu\,dx=L+L=2L\).
\(\int_0^L x\mu\,dx=\frac{L^2}{2}+\frac{2L^2}{3}=\frac{7L^2}{6}\).
\(x_{cm}=\frac{7L^2/6}{2L}=\frac{7L}{12}\), which matches the given value.
Check option (1) \(a=b=1\): \(x_{cm}=\frac{L(1/2+1/3)}{1+1/2}=\frac{5L}{9}\ne\frac{7L}{12}\), so it fails. Option (3) is correct.
Answer: (3) \(2a=b\)