kill(all);

f(u):=(sqrt(u-u^2)+1/(2*sqrt(2))*abs(3*u-1));

g(u):=(sqrt(u)+1/sqrt(3));

f(x)*f(y)*f(z)=0;

solve(%,z);

g(x);

f(x);