First and foremost, this is not an integral for which trigonometric substitution is the best way to resolve it. We could instead just use $u = 9 - x^2$ to instead find $x^2 = 9-u$ and $x\,dx = -\frac12\,du$.
This gives
$$\int\frac{x^3}{\sqrt{9-x^2}}\,dx = \int\frac{x^2}{\sqrt{9-x^2}}\cdot x\,dx = \int\frac{9-u}{\sqrt{u}}\left(-\frac12\right) \,du = -\frac12 \int\left(9u^{-1/2} - u^{1/2}\right)\,du$$
and you should be able to finish.
That said, we certainly can use a trig substitution as you have done.
It gives $$\int\frac{x^3}{\sqrt{9-x^2}}\,dx = \int 27\sin^3\theta\,d\theta = 27\int(1-\cos^2\theta)\sin\theta\,d\theta$$
Here, we use the substitution $u = \cos\theta$ to write (I know I've already harped on it, but the fact the standard method of evaluation uses substitution again to get rid of all the trig functions is a good indication we should've used a different substitution)
$$-27\int (1-u^2)\,du = -27\cos\theta + 9\cos^3\theta$$
Substituting $\cos\theta = \frac{\sqrt{9-x^2}}{3}$:
$$-27\left(\frac{\sqrt{9-x^2}}{3}\right) + 9\left(\frac{\sqrt{9-x^2}}{3}\right)^3 = -\frac13\sqrt{9-x^2}\cdot \left(27 - (9-x^2)\right) = -\frac13\sqrt{9-x^2}(18+x^2)$$
Which errors does this show in your attempt?
- Note that when integrating $27\sin^3\theta$ the coefficient of $\cos^3\theta$ is $9$.
- You have at times used $\cos\theta = \frac{\sqrt{9-x}}{3}$ (the wrong one) and at times $\cos\theta = \frac{\sqrt{9-x^2}}{3}$ (the correct one). It's not clear why you have this inconsistency.
- You still seem to have a point you've written $3^3 = 9$.
$\sin\theta$,$\cos\theta$,$\tan\theta$,$\csc\theta$,$\sec\theta$, and$\cot\theta$produces $\sin\theta$, $\cos\theta$, $\tan\theta$, $\csc\theta$, $\sec\theta$, and $\cot\theta$, respectively. – N. F. Taussig Jul 06 '23 at 11:47