Questions on the analytic and numeric equation solving functions of Mathematica (Solve, Reduce, NSolve, FindRoot, DSolve, RSolve, etc.).
0
votes
0answers
50 views
Finding all roots of the system of two complex equations
I need to find all roots for the system of two complex equations. Obviously I can rewrite them as 4 real however problem remains. I have looked through routines connected with using ContourPlot ...
0
votes
1answer
63 views
Plotting query - same values on Y-axis / viewing data
I'm new to Mathematica, and have numerically solved two similar functions with the following code;
...
0
votes
1answer
93 views
Solving a system of equations using subscripted variables
I want to solve this equation:
X(i, j) + C*Y(i, j) = Z(i, j)
Where
...
0
votes
1answer
119 views
Upper bound for x
I want to ask a question about Reduce. I have a function, say f[x]. When I use the command ...
3
votes
1answer
171 views
Create Euler equation
I've tried to make some research, but without any luck.
How do I setup the Euler equation for this in Mathematica?:
$ \text{Min} \int_0^1\left(2x^2+ \left(4t-5 e^{r \, t} \right) x \, \dot{x} + ...
0
votes
1answer
62 views
0
votes
1answer
79 views
How to guess initial complex value for FindRoot
I have to solve a transcendental equation for a parameter, say $\beta$. Now, the $\beta$ has a range from $ik$ to $k$ where $i$ is the usual imaginary root $\sqrt{-1}$ and $k$ is a real number. ...
1
vote
0answers
48 views
Finding Maximum Root [duplicate]
How can I find the greatest root for a polynomial if the polynomial degree is very large.
One way is using NSolve. This command can find all roots in numeric. Then, ...
5
votes
1answer
89 views
Find the domain in which a sequence converges
I seem to have a lot of problems in the format of:
Given the sequence $a_n=\frac{n^\alpha+1}{2n^8+5}$, for $\alpha > 0$, find the values of $\alpha$ such that the sequence converges.
However, ...
0
votes
0answers
108 views
How to find the couple $a$ and $b$ of the equation? [closed]
I want to find the integers numbers $a$, $b$, $k$ of the equation
Sqrt[2 x + a] + Sqrt[b - 2 x] == k
so that the given equation has two reals solution.
I ...
0
votes
2answers
70 views
Reduce on equations involving integrals
Here's part of problem from a college physics text:
A time-dependent force F = (8.00 i - 4.00 t j) N (where t is in
seconds) is applied to a 2.00-kg object initially at rest. (a) At what
time ...
0
votes
3answers
75 views
Help solving a system [closed]
I am trying to solve this system for r and c but I get an error "Solve::ivar: r is not a valid variable.".
What is wrong here?
...
2
votes
0answers
88 views
differential equations with implicit functions
I have an ordinary differential equation that contains coefficient functions that depend implicitly on the independent variable via an algebraic equation. I am trying to go ahead and use NSolve to ...
1
vote
3answers
191 views
2
votes
1answer
77 views
InterpolatingFunction with growing Domain
I want to find roots of a function that is very slow to calculate (the function itself involves a bunch of FindMaxima) so I interpolate the function in a region where I think it likely the the root ...
2
votes
1answer
99 views
Computing the sign of the real part of eigenvalues in a 3D linearized system with 3 parameters
So I have this dynamical system given by:
$$
\left\{\begin{aligned}
x' &= a(y-\phi(x))\\
y' &= x-y+z\\
z' &= -by
\end{aligned}\right.
$$
where $\phi(x) = \mu x^3 - \nu x$ and $a,b,\mu,\nu$ ...
3
votes
2answers
134 views
2
votes
2answers
59 views
How do I generate a set of n-tuples containing integral solutions to a linear equation provided certain constraints?
Let $m,k,p$ be fixed positive integers. I want to create a table of k-tuples $(x_1,x_2,\ldots,x_k)$ comprised of solutions in positive integers to the equation below:
...
2
votes
1answer
55 views
Differentiating with respect to vectors of unspecified length
Given a function defined by
f[x_,y_] := Sum[ x[[i]] (g[y[[i]]] - g[Total[y]] - Log[x[[i]]]), {i, 1, Length[x]}]
I can easily calculate the derivative for a fixed ...
1
vote
2answers
80 views
Rearranging an equation with the sine function in it [closed]
When I evaluate Solve[a==Sin[b*c], b] to rearrange the following for $ b $:
$$ a = \sin(bc) $$
I get the following result from Mathematica:
$$\begin{align*} ...
2
votes
2answers
114 views
A While Loop with two different steps/iteration
I'd like to know if there is a possibility to solve an equation in a while loop with 2 different steps. I want the step to be small at the beginning and bigger after a certain value of sigma (sigma is ...
3
votes
2answers
81 views
Extracting Reduce results
I'm solving a Diophantine equation inside of a function using Reduce but I'm having trouble extracting the necessary parts of the answer.
For example, if my input ...
0
votes
1answer
219 views
Solving derivative of cumulative normal distribution log likelihood
I am a newbie and I'm trying to use Mathematica to obtain the symbolic Maximum Likelihood Estimation for a cumulative normal distribution. So far I have reached the step where I have the derivative of ...
2
votes
1answer
175 views
NDSolve two PDE plus one ODE, together
I have a couple of PDE (time and space/length) that are correctly managed by NDSolve, but to which I’m adding an ODE on which the acc “accumulates”, through time, a ...
2
votes
2answers
90 views
Puzzling behavior produced by Exists
I need to simplify a set of solutions of a system, say for example:
...
0
votes
1answer
183 views
DSolve fails to solve second order PDE
I have a very simple example of a second order PDE:
eqn = D[u[x, y], x, y] + u[x, y] == 0;
sol = DSolve[eqn, u, {x, y}]
and Mathematica cannot solve it! What is ...
0
votes
1answer
113 views
Dynamic boundaries for FindRoot
As documented
FindRoot[f[x], {x, xs, min, max}]
searches for a solution, stopping the search if x ever gets outside the ...
4
votes
1answer
172 views
NDSolve does not respond
For some sets of constants, NDSolve gives me true solutions, but when I try for example, T = 1/(2*2200), Mathematica does not respond. What can I do? The code below ...
0
votes
1answer
97 views
Solving a differential equation for a variable in a function
This may sound like a very trivial question, but I need to solve a differential equation as follows:
...
0
votes
0answers
44 views
Solving ODEs produces error NDSolve::nrnum1
I'm a new member but I have been reading the great answers here for sometime now.
I am trying to solve a system of ODEs for various values of a parameter epsilon, using a slider. I am using ...
1
vote
1answer
91 views
Substituting solution from Solve into the equation and making a plot
I want to solve an equation and substitute it into a Plot expression. My code looks something like this
a[b_, x_] := bx + 1;
sol = Solve[(1 + b)x + 1 == 0, b]
I ...
4
votes
2answers
508 views
Solving a time-dependent Schroedinger equation
I want to solve the time-dependent Schroedinger equation:
$$
i\partial_t \psi(t) = H(t)\psi(t)
$$
for matrix, time-dependent $H(t)$ and vector $\psi$.
What is an efficient way of doing this so ...
2
votes
1answer
97 views
Any solution to system of equations?
I need ANY combination of 8 variables which satisfy:
a+b+c+d+e+f+g+h=0
a^2+b^2+c^2+d^2+e^2+f^2+g^2+h^2=1
a*b+b*c+c*d+d*e+e*f+f*g+g*h+a*h>2/3
Ideally these ...
7
votes
1answer
95 views
How to plot inequalities taking into account that points must be integers and not reals?
I have solved with Mathematica 9 the following integer inequalities using Reduce:
...
1
vote
1answer
140 views
Is my system too complicated for Solve?
I am trying to solve a system of three nonlinear equations using Mathematica. Solve takes forever to run and never solves my system of equations. Is my system too ...
0
votes
1answer
103 views
How to solve a simple inequality
I am having trouble getting Mathematica to solve really simple inequalities.
I started with
Solve[{y^x >= 2*y - 1}, x]
but Mathematica can't solve it. So I ...
4
votes
3answers
223 views
How to solve this system of equations?
I want to solve the following system of equations:
$$\begin{cases}
1+\sqrt{2 x+y+1}=4 (2
x+y)^2+\sqrt{6 x+3 y},\\
(x+1) \sqrt{2 x^2-x+4}+8 x^2+4
x y=4.
\end{cases}$$
I tried
...
1
vote
1answer
73 views
Why Solve and Simplify give different results? [closed]
I want to solve the following equation
y == (1/(1/4 + y) - 1/(3/4 - y))/((1/4 + y) + 1/(3/4 - y))
I tried
...
0
votes
0answers
76 views
“Nesting” FindInstance and FindRoot
The problem I face involves three constrained optimization problems (which i will call B,R and F) which interact. The optimization problem F is solved "after" (in terms of the model behind the ...
0
votes
3answers
220 views
How can I use assumptions with FindRoot?
I have something like
FindRoot[f[x], {x, a}]
Now I want FindRoot to constrain the solutions to 0 < x < 1. How can I ...
1
vote
0answers
72 views
Why is FindRoot initial value far from the specified one?
I am trying to numerically find the root of a function that looks a bit like: 1/x - (SchurDecomposition[A[x]][[2]])[[1]], where ...
3
votes
3answers
203 views
Efficient code for solve this equation
We have know $a*b*c=-1$, $\frac{a^2}{c}+\frac{b}{c^2}=1$, $a^2 b+a c^2+b^2 c=t$,
What's the value of $a^5 c+a b^5+b c^5$?
I tried
...
1
vote
1answer
80 views
Finding rational roots to an equation (univariate) [closed]
So I'm using Mathematica 7 for Students and I'm using the Root function to find the roots of an equation over the rational numbers:
$$225x^6 -343 = 0$$
I created ...
2
votes
0answers
137 views
Solving $k\log(n) - k\log(k) \leq u$
How can I persuade Mathematica to help me find solutions to the inequality
$k\ln(n) - k\ln(k) \leq u$ over the reals, assuming $u \geq n \geq k \geq 1$.
When I evaluate
...
10
votes
1answer
111 views
FindInstance returns Indeterminate in version 9, but not in 8
Here is a trivial system of equations in three unknowns for which FindInstance obtains a solution:
...
2
votes
2answers
87 views
Defining a function by pieces using list of interpolated functions in order to use `FindRoot`
I have two lists with the interpolated functions
...
0
votes
1answer
61 views
Collecting roots of different equations and create a list
I solve two equations and have two solutions one by each equation. I want to create list of these roots. Could anyone please help me? Appreciate it.
m02R150 = FindRoot[P1 == 0, {E1, 0.07, 0.1}]
...
1
vote
1answer
62 views
Calibrating Precision in calculations
As the title says, I encounter an irritating problem which has to do with the accuracy or the precision used in the calculations. To be more specific, I have the following code:
...
1
vote
1answer
99 views
Forcing evaluation of ArgMax
How to force evaluation of ArgMax before its output gets used in Solve?
Background: I'm trying to solve for the Nash ...
0
votes
1answer
94 views
ContourPlot of a complicated function
I have the function $pot_1(x,y,z)$ which is given in analytical form. So, in order to plot the contours at the primary planes $(x,y)$, $(x,z)$ and $(y,z)$, I use the following ...





