Step 1: Pick a substitution.
The square root $\sqrt{1+x^2}$ is the messy part, so let $t = \sqrt{1+x^2}$. Then $t^2 = 1+x^2$ and $x\,dx = t\,dt$. Also $x^2 = t^2 - 1$.
Step 2: Rewrite the integral.
Split $x^3$ as $x^2 \cdot x$:
\[ \int \frac{x^2 \cdot x}{\sqrt{1+x^2}}\,dx = \int \frac{(t^2-1)\,t\,dt}{t} = \int (t^2-1)\,dt. \]
Step 3: Integrate and go back.
This gives $\tfrac{t^3}{3} - t + c$. Put $t = (1+x^2)^{1/2}$:
\[ \tfrac{1}{3}(1+x^2)^{3/2} - \sqrt{1+x^2} + c. \]
Step 4: Read off $a$ and $b$.
So $a = \tfrac{1}{3}$ and $b = -1$, which gives $a+b = \tfrac{1}{3} - 1 = -\tfrac{2}{3}$.
\[ \boxed{a+b = -\tfrac{2}{3}} \]