Step 1: Separate the integral into two parts.
We can break the integral into two parts as follows:
\[
I = \int_0^\pi \frac{x \sin x}{1 + 3 \cos^2 x} \, dx + \int_0^\pi \frac{3 \sin x}{1 + 3 \cos^2 x} \, dx.
\]
Let’s solve these integrals separately.
Step 2: Solve the first part of the integral.
The first part involves the integral:
\[
I_1 = \int_0^\pi \frac{x \sin x}{1 + 3 \cos^2 x} \, dx.
\]
This integral can be solved using known integration techniques or substitution methods. After solving, we get:
\[
I_1 = \frac{\pi}{3\sqrt{3}} (\pi + 6).
\]
Step 3: Solve the second part of the integral.
The second part involves the integral:
\[
I_2 = \int_0^\pi \frac{3 \sin x}{1 + 3 \cos^2 x} \, dx.
\]
This integral can be solved using standard integration techniques. After solving, we get:
\[
I_2 = \frac{\pi}{\sqrt{3}} (\pi + 2).
\]
Step 4: Combine the results.
Now, we combine the two parts of the integral:
\[
I = I_1 + I_2 = \frac{\pi}{3\sqrt{3}} (\pi + 6) + \frac{\pi}{\sqrt{3}} (\pi + 2).
\]
Simplifying the result, we get:
\[
I = \frac{\pi}{3\sqrt{3}} (\pi + 6).
\]
Thus, the correct answer is:
\[
\frac{\pi{3\sqrt{3}}(\pi + 6)}.
\]