Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [simplifying-expressions]

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

230 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
113 views

How to make TransformationFunctions work with Simplify

Here is a transformation function that replaces f with a polynomial: ...
1
vote
0answers
80 views

Eliminate a variable from a differential equation and an algebra equation then collect the remaining variables

Recently, I am attempting to eliminate a variable from a differential equation (DE) and an algebra equation (AE), then collect the remaining variables as a new (grand) parameter. Actually, I have ...
1
vote
0answers
402 views

Write trigs in terms of Cosine only

I have a long expression having terms that go in squares like Sin[x]^2 and Sin[x/2]^2 and so on... I would like to rewrite my ...
1
vote
0answers
50 views

Factoring rationals from equation based on digit complexity?

Consider an equation of the following type: ( poly = (3 x)/35 + (6 y)/7 ) == 0 If we apply the command Factor to this ...
1
vote
0answers
78 views

Running out of memory when doing non-commutative arithmetic

I need to calculate particular coefficients of the composition of two power series in non-commutative variables. The code below which works fine truncates power series in degree $n=5$. For $n=6$ (the ...
1
vote
0answers
102 views

DiracDelta of a function

If I have, for instance, FunctionExpand[DiracDelta[x^2+x-3]] it evaluates to ...
1
vote
0answers
103 views
1
vote
0answers
115 views

“Reduce” works fine for a non-linear system with 9 equations, but cannot solve it if 10 equations. Any ways to improve the code?

I am trying to solve a class of problems, which are basically about a solution to a system of non-linear equations subject to the constraint that some subset of solutions must be non-decreasing. I ...
1
vote
0answers
101 views

Simplify Integer powers in inequalities

I have a fairly simple expression that I am surprised Mathematica (10.1) won't simplify ...
1
vote
0answers
269 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
275 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
82 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
144 views

Simplifying And of equality expressions

This expression does not automatically simplify to False: a == 0 && a != 0 ...
1
vote
0answers
85 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
327 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 ...
1
vote
0answers
131 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
61 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
46 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
154 views

Recognizing a generalized function as zero

Consider the following expression: HeavisideTheta[x]HeavisideTheta[-x] Mathematica will not simplify it further. But $\Theta(x)\Theta(-x)$ is zero if considered ...
1
vote
0answers
224 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
637 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 ...
1
vote
1answer
111 views

Simplification is not working properly for Complex functions

I have a Matrix whose eigenvectors are needed to be calculated and then I have to calculate the Projector out of it. But due to some unavoidable(atleast up to now), I am not able to carry out the ...
0
votes
0answers
20 views

Reorganize an expression such that specific expressions are evidentiated/factored

I want to rewrite an expression in a way that specific variables appear factored, like (x+y)(x-y). I know collect does something similar, but it only works if the factor you want to collect already ...
0
votes
0answers
20 views

How to simplify this hypergeometric expression?

How can I rewrite this expression in terms of a single Hypergeometric function? Is it possible? I think it is possible to convert this expression in such a way that ...
0
votes
0answers
35 views

making replacements when patterns don't match exactly

I want to simplified some mathematical expressions, and they are similar to ...
0
votes
0answers
48 views

Dealing with positive power variables in Taylor expansion and assumptions

I would like to compute the Taylor expansion of monomials whose powers are nonnegative rational variables. First, here is a function which encodes the multivariate Taylor expansion at the points <...
0
votes
0answers
66 views

How do I solve a cubic equation for values of x?

I have partially differentiated an equation w.r.t. x, see picture below, and want to isolate x in the equation to solve for a local maximum. Can I use Mathematica to get it on a cubic form? and how ...
0
votes
0answers
58 views

Simplifying a differential equation acting on a product of functions

I have a function $f(x_1, \ldots , x_n)$ in $n$-variables that satisfies a fourth order linear differential equation (say $Df=0$). The function $f(x_1, \ldots, x_n)$ is of the form $f(x_1, \ldots, x_n)...
0
votes
0answers
37 views

FullSimplify output depends on symbol name

Using g rather than b as variable name changes output. As far as I know neither b nor g are restricted symbols. Can this be reproduced on other builds? Using Mathematica 12.0.0.0 on a Mac. ...
0
votes
0answers
45 views

Using FullSimplify to simply expressions involving differential operators

I am trying to simplify some long formulas involving differential operators in $n$ variables. For example, I want to simplify $$\left(\frac{\partial}{\partial x}-\frac{\partial}{\partial y}\right) \...
0
votes
0answers
31 views

Reduce system of nonlinear equations to one nonlinear equation

I have a system of nonlinear equations: ...
0
votes
1answer
72 views

Substituting and exponential term by another expression

I would like to do, in every calculation that I perform, the following substitution: $e^x -> (1+x)$. That is, every term with an exponential should become the Taylor series to the first-order ...
0
votes
0answers
28 views

Vanishing with the derivative terms in perturbation theory

Following the question in here, now I would like to make the terms with derivatives to vanish. To shortly explain, given a variable decomposed as follows: $a(t,r) = a(r) + \delta a(t,r)$ in my long ...
0
votes
0answers
28 views
0
votes
0answers
35 views

Output of Reduce + Simplify

I'm using Reduce to solve some equations and then simplify to eliminate some undesired results. The problem is that, when I apply Simplify, it messes with my output from reduce. As an example: ...
0
votes
0answers
41 views

how to force TransformationFunctions

I have this function: F[z_, y_, θ_] = Sqrt[3]/(2*π)*w^2/z^2 * Exp[-w^2*(θ^2/z - 3*y*θ/z^2 + 3*y^2/z^3)] I want to calculate ...
0
votes
1answer
44 views

Simplifying sums and showing equality - limitations?

Is it possible to verify the following lhs,rhs involving the sums are equal, with Mathematica? I can verify it for individual values of $d$ variable: ...
0
votes
0answers
42 views

How to get rid of these matrices?

I have divided a complicated Lagrangian to some separated terms to be able to Simplify it. The thing is, in the general case (non-divided Lagrangian) the problem is ...
0
votes
1answer
64 views

WolframScript not simplifying output

I'm trying to multiply a matrix and a vector (imported from a csv) in Wolframscript to speed up a process normally done with Mathematica notebooks. This is my first time using Wolframscript, however, ...
0
votes
1answer
63 views

How to simplify an expression with no constraints?

Simplifying expressions on Mathematica is a recurrent topic. However I found myself stuck with this one: Solving an rational equation on Mathematica gives me the following expression: ...
0
votes
0answers
40 views

Completely expand and simplify logical expressions?

Consider a logical expression such as expr = (a == b + q - w || c == d) && (q + c - d == w || e == r); I wonder if there is a function that would ...
0
votes
0answers
48 views

Convert Part of an Expression Using ExpToTrig

I'm wondering if there's a nice way to convert only parts of an expression, say exponential functions of varible $\theta$ to trig. The motivation is best descripbed by the following example. ...
0
votes
0answers
71 views

Time spent on a transformation exceeded 300 when solving the optimization problem

I have the code which shows below to solve an optimization problem, but it will show that it's over the time constraint of 300 seconds. Is there anyone who could help me solve it. Thanks. ...
0
votes
0answers
57 views

How to show the sign of an algebraic expression?

I defined a long expression ...
0
votes
0answers
23 views

Optimizing and Parallel Computing for Large Dyadic Intervals

I need help with the efficiency of my code i.e. less time so I can compute for large range of values. My function n[x] takes in a number x and outputs the ...
0
votes
0answers
39 views

Complex number manipulation

I want to simplify a complex expression like y * x * Conjugate[x] where y is a real number. Now mathematica is giving output as y x conjugate[x]. how can I get the answer as y abs[x]^2. "FullSimplify" ...
0
votes
0answers
29 views

Sum over powers of roots of unity gives only partial answer

Mathematica seems to be unable to handle sums over roots of unity. For example, Simplify[Sum[Exp[2 Pi I a b/m], {a, m}], {b, m} \[Element] Integers] yields ...
0
votes
0answers
37 views

FullSimplify does not simplify at all

I have some problems simplifying things with FullSimplify. Suppose a matrix ...
0
votes
0answers
24 views

Creating a function in which certain conditions exist

I am trying to create a function for which it is known that certain conditions exist on the argument. I want this to be a simplified version of the function. For example, if I wanted to create a ...
0
votes
0answers
96 views

Simplify the equation in terms of function and coefficients?

I have two fourth order differential equations and eight boundary conditions. I want to get my result in terms of function (Y) and coefficients (let say P1, P2 and so on). I used Dsolve to get the ...