There are a lot of books about the matter also. This book is the one I used in my college course: Fundamentals of Math and Physics for Game Programmers by Wendy Stahler.
Yes, I know you asked for 2D, but I'm going to add this in case you move to 3D for any reason.
There is also 3D Math Primer for Graphics and Game Development by Fletcher Dunn; again; in case you are interested in 3D.
There are other books as well, but I've not read any of them to be able to recommend any other book.