Hello,
This complicated expression would be a zero function, but I can't achive to simplify it. I think I've run into lots of expressions like this one, but I've never come up with a solution.
var('R d',domain='positive') var('p',domain='real') var('t',domain='real',latex_name="\theta")
f=(Rcos(t) - d)p/(-2Rdcos(t) + R^2 + d^2)^(3/2) + (Rcos(t) -R^2/d)R^3p/((-2R^3cos(t)/d + R^2 + R^4/d^2)^(3/2)d^3) +Rp/(sqrt(-2R^3cos(t)/d + R^2 + R^4/d^2)*d^2)