Artificial intelligence has emerged as a mysterious force shaping our world. From self-driving cars to medical breakthroughs, AI's potential are breathtaking. Yet, its inner workings remain a mystery, provoking both fascination and anxiety. Aiming for understand AI, we must explore its foundational principles. Mathematical models are the brains