2
$\begingroup$

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

$\endgroup$
8
  • $\begingroup$ 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". $\endgroup$
    – bill s
    Commented Feb 14, 2014 at 15:48
  • $\begingroup$ 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 $\endgroup$
    – user9994
    Commented Feb 14, 2014 at 15:54
  • $\begingroup$ 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. $\endgroup$
    – Szabolcs
    Commented Feb 14, 2014 at 16:09
  • 4
    $\begingroup$ Either use SetOptions to change the default, or use Simplify[#, Trig -> False] & in the Collect $\endgroup$ Commented Feb 14, 2014 at 16:27
  • 1
    $\begingroup$ You said, "with the Trig->False option inside a Collect". In Collect the default is Trig -> False. In Simplify it is indeed Trig -> True. Can you see why this description was confusing? It would be useful if you updated the question too (not just mention this in the comments), for any future readers. $\endgroup$
    – Szabolcs
    Commented Feb 14, 2014 at 17:20

1 Answer 1

4
$\begingroup$

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
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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