Have you tried looking it up? There are a looot of existing resources about that, with different levels of detail and focusing on different aspects, for example: here, here, there, or there, etc...
And of course there is a detailed treatment in chapter 12.2 of ISLR (available to buy or as pdf). It is also treated in several courses on all the major MOOC platforms, and probably countless Youtube videos.