An excellent book that can teach you the basics (from trigonometry to advanced linear algebra) is "3D Math Primer for Graphics and Game Development".