Hope this helps it is pretty detailed
Canonicalization & SEO : Should I use WWW or not?
We often come across websites that are accessible by both the www and the non-www version of its URL. While apparently both the URLs look the same, the search engines can treat them as separate sites altogether. This is something known as a canonical issue.