Solving Physics Problems with Analytical Representations