Message Boards Message Boards

0
|
4069 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Simplify the following trigonometric function?

Posted 6 years ago

Hello, I'm beginner with Mathematica and trying to get the basics. I try to use the function called "Simplify". I try to simplify a function Abs(Cos(x)) on 2 different intervals where the result is positive. Thus, I would expect the Simplify function to provide Cos(x) as the result in both cases, exepect that it works inly for one of those intervals : enter image description here

Do you please have an idea why ine the first case, result is not Cos[x] ?

Thanks for kind help

Best Regards

POSTED BY: Morgan Bourgeois
2 Replies

@Morgan Bourgeois, Welcome to Wolfram Community! Please make sure you know the rules: https://wolfr.am/READ-1ST

Please do not post code as images.

The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please EDIT your post and make sure code blocks start on a new paragraph and look framed and colored like this.

int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

enter image description here

POSTED BY: EDITORIAL BOARD

Even FullSimplify is disappointing:

FullSimplify[Cos[x] == Abs[Cos[x]],
 3 Pi/2 < x < 5 Pi/2]

Reduce seems to know better:

Reduce[Cos[x] == Abs[Cos[x]] && 3 Pi/2 < x < 5 Pi/2, x]
Reduce[Cos[x] == Abs[Cos[x]], x, Reals]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract