How to rewrite `sin(x)^2` to cos(2*x) form in Sympy
问题 It is easy to obtain such rewrite in other CAS like Mathematica. TrigReduce[Sin[x]^2] (*1/2 (1 - Cos[2 x])*) However, in Sympy, trigsimp with all methods tested returns sin(x)**2 trigsimp(sin(x)*sin(x),method='fu') 回答1: The full "fu" method tries many different combinations of transformations to find "the best" result. The individual transforms used in the Fu-routines can be used to do targeted transformations. You will have to read the documentation to learn what the different functions do,