According to my textbook this is : $\frac{\sqrt{9-x^2}^3}{3} -9 \sqrt{9-x^2}$. However my solution is completely different. Here's my work:
$ x = 3\sin \theta, dx = 3 \cos\theta d\theta$
$$\int \frac{27\cos^3 \theta}{\sqrt{9-9\sin^2\theta}} = \int \frac{27\cos^3\theta}{3\cos^2\theta} = 9\int\cos^2 \theta$$
$$9\left(\int \frac{1}{2} d\theta+ \int \cos 2\theta\right) = 9\left(\frac{1}{2}\theta + \frac{\sin 2\theta}{2}\right)$$
Solving for $\theta$ yields:
$$\frac{9}{2}\arcsin\left(\frac{x}{3}\right) + \frac{9}{4}\sin\left(2\arcsin\left(\frac{x}{3}\right)\right)$$
What's wrong with my solution?
You have two mistakes here.
$x = 3 \sin \theta$ I like that
$\int\frac {x^3}{\sqrt {9-x^2}} \ dx = \int \frac {27\sin^3 \theta}{\sqrt {9-9sin^2\theta}} (3\cos \theta) \ d\theta$
Your first mistake is at this step. Do you see where you went wrong?
next: $\sqrt {9-9\sin^2\theta} = 3\cos \theta$ not $3\cos^2 \theta$
$\int 27\sin^3 \theta \ d\theta$
Can you get home from here? If you are stuck try: $\sin^2 \theta = 1-\cos^2\theta$
Update:
"I still can't see how $27(-\cos(\arcsin(\frac{x}{3})) + \frac{\cos^3(\arcsin(\frac{x}{3}))}{3})$ is equivalent to the solution given in the textbook."
$\sin (\arcsin \frac {x}{3}) = \frac {x}{3}\\ \sin^2 (\arcsin \frac {x}{3}) = \frac {x^2}{9}\\ 1-\sin^2 (\arcsin \frac {x}{3}) = 1-\frac {x^2}{9}\\ \cos^2 (\arcsin \frac {x}{3}) = 1-\frac {x^2}{9}\\ \cos (\arcsin \frac {x}{3}) = \sqrt {1-\frac {x^2}{9}}\\ \cos (\arcsin \frac {x}{3}) = \frac {\sqrt {9-x^2}}{3}\\$
This can also be done geometrically, and I suggest you prove it this way (an exercise left to the reader).
$27(-\cos(\arcsin(\frac{x}{3}) + \frac{\cos^3(\arcsin(\frac{x}{3}))}{3})\\ 27(-\sqrt {1 - \frac{x^2}{9}} + \frac{\left(\sqrt {1-\frac {x^2}{9}}\right)^3}{3})\\ -9\sqrt {9 - x^2} + \frac{\left(\sqrt {9- x^2}\right)^3}{3} $