Solving Math Equations Within Trig Function Integrals