3. Find the derivative of \( y = \left(\frac{3x-1}{x^2+3}\right)^2 \).