\(u=3x+1\Rightarrow x=\dfrac{u-1}{3}\Rightarrow du=3dx\)
\(\Rightarrow\int x\left(3x+1\right)^9dx=\int\dfrac{1}{3}\left(u-1\right).u^9.\dfrac{du}{3}=\dfrac{1}{9}\int\left(u^{10}-u^9\right)du\)
\(=\dfrac{1}{9}\int u^{10}du-\dfrac{1}{9}\int u^9du=\dfrac{1}{99}.u^{11}-\dfrac{1}{90}.u^{10}=\dfrac{1}{99}\left(3x+1\right)^{11}-\dfrac{1}{90}.\left(3x+1\right)^{10}\)