** Final Answer

**

** Step-by-step Solution **

** Specify the solving method

**

**

Expand the integral $\int\left(2x\cot\left(x\right)^2+x^2\right)dx$ into $2$ integrals using the sum rule for integrals, to then solve each integral separately

Learn how to solve integrals of rational functions problems step by step online.

$\int2x\cot\left(x\right)^2dx+\int x^2dx$

Learn how to solve integrals of rational functions problems step by step online. Find the integral int(2xcot(x)^2+x^2)dx. Expand the integral \int\left(2x\cot\left(x\right)^2+x^2\right)dx into 2 integrals using the sum rule for integrals, to then solve each integral separately. The integral \int2x\cot\left(x\right)^2dx results in: 2x\left(-x-\cot\left(x\right)\right)+x^2+2\ln\left(\sin\left(x\right)\right). Gather the results of all integrals. The integral \int x^2dx results in: \frac{x^{3}}{3}.

** Final Answer

**