Why does FullSimplify not work with assumptions in Mathematica?

  • Context: Undergrad 
  • Thread starter Thread starter daudaudaudau
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around the behavior of the FullSimplify function in Mathematica, particularly regarding its handling of assumptions about variables. Participants explore specific examples where FullSimplify does not yield expected simplifications when assumptions are applied, and they discuss potential workarounds and interpretations of Mathematica's assumptions about variable types.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants note that FullSimplify does not simplify expressions like Abs[(x*y)]^2 under the assumption x > 0 && y > 0, while it does simplify Abs[(x/y)]^2 under the same assumptions.
  • One participant suggests that the inability to simplify Abs[(x*y)]^2 may be due to the possibility of x and y being imaginary, which could lead to a negative product.
  • Another participant mentions that Mathematica assumes variables can be complex unless explicitly stated otherwise, and they propose convincing Mathematica that x and y belong to the reals as a potential solution.
  • There is a discussion about the implications of using comparison operators versus equality in assumptions, with some participants questioning the interpretation of these operators in the context of FullSimplify.
  • A workaround involving PiecewiseExpand is recommended by one participant, but there is uncertainty about how to properly apply assumptions in FullSimplify.

Areas of Agreement / Disagreement

Participants express differing views on how Mathematica handles assumptions and the implications of using different operators. There is no consensus on the reasons behind the observed behavior of FullSimplify or the best approach to resolve the issues discussed.

Contextual Notes

Participants mention that the behavior of FullSimplify may depend on the assumptions made about the variables, and there is uncertainty regarding the treatment of complex versus real numbers in these contexts. The discussion highlights limitations in the assumptions and the need for clarity in how they are applied.

daudaudaudau
Messages
297
Reaction score
0
Anyone have an explanation for this? It can simplify the first one but not the second...
 

Attachments

  • screen.jpg
    screen.jpg
    17.5 KB · Views: 381
Mathematics news on Phys.org
And what about this:

FullSimplify[Abs[(x*y)]^2, x > 0 && y > 0]

the result is still Abs[x*y]^2

But there is no trouble doing this one

FullSimplify[Abs[(x/y)]^2, x > 0 && y > 0]

is simply returns x^2/y^2...
 
I had similar problems and asked tech support about it - they recommend as a workaround e.g.

PiecewiseExpand[Abs[(x*y)]^2, Reals]
 
daudaudaudau said:
And what about this:

FullSimplify[Abs[(x*y)]^2, x > 0 && y > 0]

the result is still Abs[x*y]^2

But there is no trouble doing this one

FullSimplify[Abs[(x/y)]^2, x > 0 && y > 0]

is simply returns x^2/y^2...

x > 0 && y > 0
Well, if this was an equals sign rather than >, it would need to be a double equqals "==". Not sure what the expression would be for >
 
flatmaster, I don't understand your remarks about "==" ... it clearly says > doesn't it?

Also, AFAIK Mathematica automatically assumes they are real when you use a comparison operator, i.e. "x > 0" implies "Element[x, Reals]"
 
bpet said:
I had similar problems and asked tech support about it - they recommend as a workaround e.g.

PiecewiseExpand[Abs[(x*y)]^2, Reals]

I see. When you want to assume that both x and y are real, you simply write ", Reals" ? Because this doesn't work for FullSimplify, e.g.

FullSimplify[Abs[x/y]^2, Reals]

is not the same as

FullSimplify[Abs[x/y]^2, _ \[Element] Reals]
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K