kill(all)$
load(atrig1)$
load(ntrig)$

van=facebook.com/LearningCalculus$

f(x):=tan(x)*sin(x)^2;

g(x):= 2/cos(x)-cos(x)+sqrt(2-cos(x)^2);

f(x)/g(x);

h(x):=trigsimp(f(x)/g(x));

'integrate(h(x),x) = (1/4)*(-2*cos(x)-sqrt(6-2*cos(2*x))+sqrt(6));