Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I would like to simplify the following expression

AAA (4 Sin[x]^2 Cos[x]^2) + AAA 4 Sin[x] Cos[x] + AAA

with the Trig->False option inside a Collect:

Collect[AAA (4 Sin[x]^2 Cos[x]^2) + AAA 4 Sin[x] Cos[x] + AAA, AAA, Simplify]

how can I insert the Trig->False condition in such an expression?

Thank you in advance

share|improve this question
    
FullSimplify[AAA (4 Sin[x]^2 Cos[x]^2) + AAA 4 Sin[x] Cos[x] + AAA] gives a simple form. I don't understand what you want to "collect". –  bill s Feb 14 at 15:48
    
this is just a simplified example. In this case the desired output is AAA (1 + 2 Cos[x] Sin[x])^2 and not the one returned by the code you suggested, which is AAA (Cos[x] + Sin[x])^4 –  user9994 Feb 14 at 15:54
    
It seems Trig -> False is in fact the default setting for that option ... Can you make it clear how you want to use this option with an example? This option does not appear in the code you posted. –  Szabolcs Feb 14 at 16:09
    
no, the default option is Trig->True in my Simplify: Options[Simplify, Trig] has as result`Out[4]= {Trig -> True}. I want to set Trig->True for the Simplify inside the Collect, as I asked in the main topic. The example is exactly the one above. Again, I would like the output AAA (1 + 2 Cos[x] Sin[x])^2`. –  user9994 Feb 14 at 16:19
3  
Either use SetOptions to change the default, or use Simplify[#, Trig -> False] & in the Collect –  Simon Woods Feb 14 at 16:27
show 3 more comments

1 Answer

As Simon Woods said in his comment, use the form

Collect[AAA (4 Sin[x]^2 Cos[x]^2) + AAA 4 Sin[x] Cos[x] + AAA, AAA, 
  Simplify[#, Trig -> False] &]
AAA (1 + 2 Cos[x] Sin[x])^2
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.