If we imagine that the integrand is the side of a right-angled triangle, then the other sides of the triangle have length
and 3, and 3 is the length of the hypotenuse. We use this picture to guess the following substitution:

We thus have

We now use the trigonometric identity
to evaluate

We have
, so, we can rewrite the answer in terms of
:

where, in the last step, we used the trigonometric formula
with
. By definition of the arcsine,
. But this is also to be expected, given our interpretation of
as the length of the side opposite to
in a right-angled triangle with hypotenuse of length 3. This picture also shows that

Putting it all together, we find

which is an equation that makes sense for
.