Find the derivative of the function \(f(x) = \sqrt{3x^2 + 2x + 1}\).
If \(\sin \theta = \frac{3}{5}\) and $ \theta $ is in the first quadrant, what is $ \tan \theta $?