We were doing variation of parameters in differential equations tonight and had to do the following integral, the result given by hand calculations.
$$\int \cos t\tan^2 t\,dt=\ln|\sec t+\tan t|-\sin t$$
The students then tried the following in Mathematica:
v2 = Integrate[Cos[t] Tan[t]^2, t]
and got the following result:
-Log[Cos[t/2] - Sin[t/2]] + Log[Cos[t/2] + Sin[t/2]] - Sin[t]
I was able to come home and send them some hand calculatedsome hand calculated steps to equate this to our solution (minus the absolute value), but I was unable to show them equivalency using Mathematica.
Any suggestions?