Questions on manipulating complicated expressions and making them look simpler using Simplify, FullSimplify and Reduce.

learn more… | top users | synonyms (3)

10
votes
0answers
253 views

Simplify and Sqrt, inconsistent behavior?

I have encountered some problems when using Simplify with expressions containing a square root and isolated a following test case ...
9
votes
0answers
111 views

Why is this evaluation halved when adding units?

Why does this strange behavior occur when dealing with units and quantities? ...
8
votes
0answers
326 views

Faster simplification of linear combinations of some specific functions

After some profiling I've found that my program spends most of its time in the simplification step. The program uses my simplification function many times (over different data). My calculation is not ...
6
votes
0answers
206 views

Using FunctionExpand to evaluate symbolic derivatives

Some symbolic derivatives of certain special function are not expanded automatically, but FunctionExpand often helps to get a derivative-free closed form ...
5
votes
0answers
64 views

FullSimplify Produces Result that Includes Hold

In the course of developing a solution to Question 79183, I solved the equation ...
5
votes
0answers
92 views

Faster way to perform SameQ[Reduce[…], Reduce[…]]

I'm have some expressions that I need to confirm the equality of. SameQ[Reduce[...], Reduce[...]] works like a charm for the more simple expressions, however when ...
4
votes
0answers
30 views

How to simplify expressions by closing open inequalities?

Recently I have often acquired results which consist of combinations of 0, 1 and 2-dimensional (in)equalities. For instance, consider a very simple case with ineq1 ...
4
votes
0answers
119 views

How to get mathematica to simplify a result

I have the following output $\text{Li}_2\left(3-2 \sqrt{2}\right)-4 \text{Li}_2\left(-1+\sqrt{2}\right)$. This turns out to be equivalent to $\displaystyle\log^2(1+\sqrt{2})-\frac{\pi^2}{4}$. How ...
4
votes
0answers
90 views

Simplifying expressions involving Divisible

FullSimplify[ Divisible[p^2 - 1, 24] , Element[p, Primes] && p > 3] Should evaluate to True, but I get ...
3
votes
0answers
106 views

Why does Mathematica show 4095/4096 terms in TrigExpand?

Clear[x, n]; expr = Cos[x]^(n - 2) (1 - Cos[x]^2 + Sin[x]); r=TrigExpand[expr] Where do those 4095/4096 comes from? It is correct, but it seems very strange ...
3
votes
0answers
158 views

Why doesn't Log[Gamma[]] simplify to LogGamma[] where it could?

I have been playing with various equations involving amount of permutations in relatively large sets. Easiest way to look at these is something like Log[10, bignumber!] . Often expressions, even ...
2
votes
0answers
54 views

Factor out a constant from a matrix

I've got a matrix in which every entry is of the form x/4. I cant find out how to factor out the 1/4 so that the actual matrix is clearer. Thanks for your help!
2
votes
0answers
44 views

Construct single InterpolatingFunction from a mathematical combination of other IF's

Let's say I have an interpolated function f, like I might get as the solution to an NDSolve: ...
2
votes
0answers
36 views

Simplifying symbolic multiple sums

suppose I have a multiple sum with an unspecified number of indexes: $$\sum_{i_1=1}^n \ldots \sum_{i_k=1}^n x_{i_1}\otimes\ldots\otimes \hat{x_{i_j}}\otimes\ldots\otimes x_{i_k}$$ with $x_{i_j}$ ...
2
votes
0answers
62 views

Simplify large fractions

Hi i'm quite new with Mathematica and i'm experiencing some problems with Simplify and FullSimplify. I'm dealing with a sistem ...
2
votes
0answers
169 views

Extract common factor from vector or matrix

I can't believe this hasn't been asked before but I can't find anything. Is there a way to convince Simplify or FullSimplify to ...
2
votes
0answers
105 views

Apart for complex roots?

Let p[x] be a polynomial in x and consider the partial fraction decomposition of 1/p[x]. ...
2
votes
0answers
68 views

Better way to compute triple (or higher order) convolution

I have an identity that I want to verify. $$\sum_{i+j+k\ge ...
2
votes
0answers
178 views

How to prevent simplification of hypergeometric functions resulting from integrations?

Definite integrals from 0 to Infinity over a product of two hypergeometric (including exponential, trigonometric, hyperbolic, ...
2
votes
0answers
199 views

Problems with Simultaneous Equation Solving

Let me first explain what I am doing and then I will explain the problem that I can't figure out. I am basically trying to solve 2 equations for 2 unknowns (a1 and ...
1
vote
0answers
30 views

Simplification with absolute value

I have a long expression that has absolute values in the exponent. Some parts of the expression would clearly simplify if one assumes that the power is an odd or even integer. When I give one of this ...
1
vote
0answers
78 views

Real part of a sum

I would like to take the real part of the following expression: Sum[(a[i] + I b[i]) r^i/(r^2 + z^2)^i, {i, 0, 2 n}] where all of ...
1
vote
0answers
39 views

Different results from Simplify and Reduce given inequality (x/y^2 != 0 && x != 0)

In: Simplify[x/y^2 != 0 && x != 0] Out: x != 0 && y != 0 However, if we use ...
1
vote
0answers
33 views

Simplifying And of equality expressions

This expression does not automatically simplify to False: a == 0 && a != 0 ...
1
vote
0answers
76 views

FullSimplify missing trivial rewrite

I'm trying to understand why Mathematica fails to find the Stirling numbers in the second sum below: ...
1
vote
0answers
47 views

Building a ComplexityFunction based on the size of the expression output

I am experimenting with the ComplexityFunction of Simplify and came up with this one: ComplexityFunction->Function[e,Rasterize[HoldForm[e],"BoundingBox"][[1]]] ...
1
vote
0answers
80 views

Summing the probability distribution to 1 to convince myself

I have worked out a probability distribution and want to check its sum which is necessarily 1. First we write $$ r \triangleq \frac{(2 \lambda + \mu)^2}{2(\mu + \lambda)^2}, \quad s \triangleq ...
1
vote
0answers
47 views

Simplifying an inequality inside an answer by parts

I have the following piece of code where I'm evaluating a probability of a variable v being greater than some threshold under a Uniform distribution. ...
1
vote
0answers
34 views

Derive logistic choice probabilities symbolically

More generally, I am interested in learning what the current limitations of Mathematica are when using it for doing pure mathematics. A recent blog post by Stephen Wolfram (see: ...
1
vote
0answers
41 views

Finding simpler implied formulas while preserving contradiction

I have two Presburger formulas A and B such that A∧B≡False. From these I need to find "simpler" formula A′ (as simple as I can make it) such that A→A′ and A′∧B≡False. Is there any simple way to ...
1
vote
0answers
74 views

How to simplify expressions

I read several similar posts but I have not found a solution yet. However, I think that my problem should be quite easy. So here we are. Relations ...
1
vote
0answers
164 views

Is there a way to speed up Simplify and/or PolynomialReduce Modulus-> 2?

I'm trying to simplify a series of equations with at most 64 input terms. As the number of terms involved in the equations increase, the runtime seems to grow exponentially. Does anyone know of ways ...
0
votes
0answers
31 views

Equation Simplification

Given that: ...
0
votes
0answers
44 views

FullSimplify cascades too much/groups variables too eagerly

This is something FullSimplify will give: $$\frac{n (s+\text{s2})-\text{a1} g}{\text{a1} (g-\text{a2} s)+s (s+\text{s1}) (s+\text{s2})}$$ I could find better examples where FullSimplify cascades ...
0
votes
0answers
35 views

Evaluating an expression after making a rule

Just starting to use this language. I'm interested in making a rule, then evaluating the same rule. I can't get Mathematica to do what I expect/want, so I'd be interested in seeing what I should to to ...
0
votes
0answers
40 views

Pulling out terms from an expression

I have an expression that is in a really complicated form but I know can be written like this: F[X,Y] = AX^2+BY^2+CXY where A,B, and C are complicated terms, but split up F[x,y] into a more ...
0
votes
0answers
43 views

Strange “Collect[…]” behaviour

I have a large expression which I need to simplify by pulling out a load of constant terms. Collecting terms seems to only work when the expression is expanded out, e.g. ...
0
votes
0answers
27 views

How to simplify this expression without this particular substitution?

I have the expression expr = -(m-2 r+b^2 (-7 m+6 r)) ((-m+r)^2+b^4 (-2 m+3 r)^2+b^2 (-3 m^2+10 m r-6 r^2))+(1+b^2)^2 m^3 Cos[t]^2 , to which I can bring to this ...
0
votes
0answers
45 views

How do I simplify Interval[{x,x}] to x?

How do I simplify Interval[{x,x}] to x ? Simplify and FullSimplify do not seem to do it.
0
votes
0answers
77 views

Simplifying trig function

I'm trying to simplify a long expression of trig function. I'm not particularly good at trig identities or Mathematica, so this is turning out to be quite a task :( I tried Simplify, FullSimplify, ...
0
votes
0answers
27 views

Extract the divergent/bounded part of a certain expression

Consider I have a power series which is function of $x$. A part of this expression is bounded when $x->\infty$, some remainder is on the other hand divergent when $x$ goes to infinity. What is the ...
0
votes
0answers
50 views

Why does Mathematica not restrict the domains of Rational Expressions?

As taught in High School Mathematics: $$\begin{array}{ccl} \left\{ {(x-3)(x+3)\over 5(x+3)} : \ x\ne -3 \right\} & \ne & \left\{ {x-3\over 5} : \ x\in\mathbb{R} \right\} \\ \left\{ ...
0
votes
0answers
58 views

How to simplify cases given with Piecewise function?

MMA gives me an answer in the form $$ \begin{cases} f(k_1) & k_1=k\\ 0 & else \end{cases} $$ which is obviously just $f(k)$. Can I make MMA simplify this expression to $f(k)$? The ...
0
votes
0answers
93 views

Simplifying terms in a Sum expression

I have a sum in the form of pure function s = Sum[f[k], {k, 0, # - 1}] & of perhaps complicated terms f[k]. The terms ...
0
votes
0answers
59 views

Computation doesn't Finish

I'm trying to solve some problem by the following code: ...
0
votes
0answers
88 views

Symbolic Tensor Algebra

I need to perform basic tensor algebra in order to double check some very complicated simplification. It's nothing fancy, it just has so many factors by the end that it's hard to tell if an error has ...
0
votes
0answers
74 views

Trying to Simplify an Expression

I'm trying to simplify an expression: ...
0
votes
0answers
51 views

Using assumptions when calling Simplify from Collect

I am quite new to Mathematica, so please be patient ;) I have a very long equation that I have to sort for powers of a variable called e and that I want to ...