First recognize that this is in the form of (x2-a2), which can always be factored as (x+a)(x-a). If you multiply these two terms, you get x2-ax+ax-a2, which is equal to x2-a2.

 

So in this case, we can see that a=3, so  x2-9 =  x2-32 = (x+3)(x-3)