Questions on the analytic and numeric equation solving functions of Mathematica (Solve, Reduce, NSolve, FindRoot, DSolve, RSolve, etc.).

learn more… | top users | synonyms (4)

0
votes
3answers
344 views

How can I solve my system of two simultaneous equations?

How to solve the system {b - a*Sqrt[a^2 + b^2 + 1] - a^2*(a*b - Sqrt[a^2 + b^2 + 1]) == 0, a - b*Sqrt[a^2 + b^2 + 1] - b^2*(a*b - Sqrt[a^2 + b^2 + 1]) == 0} ...
19
votes
4answers
3k views

Find eigen energies of time-independent Schrödinger equation

I'm trying to get the eigenvalues of a one dimensional time-independent Schrödinger equation, $-\frac{h^2}{2m_0}\frac{d^2\psi}{dx^2}+U(x)~\psi=Ei~\psi$ where U(x) is some potential and Ei is the ...
8
votes
1answer
194 views

Unexpected behaviour of Solve applied to two equations in two variables

I have a simple Mathematica expression Solve[{a(a-1)Sqrt[1+a^2+b^2] == b(a^3-1), b(b-1)Sqrt[1+a^2+b^2] == a(b^3-1)}] which returns (on version 8.0, and also ...
0
votes
1answer
520 views

Equation with complex numbers and 2 variables

I have an equation: eq = 1 + ( 9 / ( s*(s + 9) ) )*( k/(s + b) ) == 0; where s == -2 + 2I (...
0
votes
0answers
169 views

Solving stochastic master equation

Can someone help please me in solving the following stochastic master equation for the density matrix $\rho$? where $\rho$ is the density matrix, $\sigma_i$ are the pauli matrices, $dt$ is the ...
5
votes
2answers
218 views

How to find monotonically increasing intervals of a function

I tried this code, but not working Clear[f]; f[x_] := x^3 - 3 x + 2; ForAll[{x1, x2}, x1 < x2, f[x1] < f[x2]] Reduce[%, {x1, x2}, Reals] I expected the ...
2
votes
2answers
474 views

Quadratic programming problem

I am trying to solve a (Sequence) Quadratic Programming (SQP) problem in Mathematica. Here’s the problem setup: ...
0
votes
0answers
183 views

Defining extra boundary conditions for NDSolve?

I have a second order reaction / diffusion type ODE of the form $\frac{D_{o}}{r^2} \frac{d}{dr}\left(r^2 \frac{dC}{dr} \right) - \frac{aC}{C+k} = 0$ where $a, k$ and $D_{o}$ are constants and $C$ is ...
1
vote
2answers
185 views

How to pick a solution from a list of solutions using a test?

I have a list of solutions that depends on a parameter b3 and I'd like to get the solution for which the x value is minimal when ...
1
vote
1answer
168 views

Dsolve too slow — is there anyway around?

I am trying to solve: ...
5
votes
1answer
1k views

Solving a system of linear equations modulo n

I have a system of linear equations $$ a+b+c \equiv 31 \pmod{54} $$ $$ 4a+2b+c \equiv 3 \pmod{54} $$ $$ 9a+3b+c \equiv 11 \pmod{54} $$ What should I input (I'm using ...
0
votes
1answer
106 views

InputField equations and Solve

I'm trying to get this piece of code to work: ...
0
votes
0answers
167 views

symbolic solution for a system of nonlinear equations in mathematica

Would appreciate any help on the following in mathematica I cant figure it out. I have a system of equations that I am trying to solve symbolically. I have 9 equations and 8 unknowns (I have also ...
6
votes
2answers
536 views

Alternate parameterization of a line

There are several ways to specify a line. In Mathematica's graphics, it is done by specifying two points and then connecting the points with the Line command. But ...
1
vote
1answer
1k views

Solving functional equations in Mathematica

I am trying to solve functional equations in Mathematica, but got nowhere. Just a simple example: $$f(x+y)^2=f(x)^2+f(y)^2$$ for all $x,y \in R$, assuming f is a real-valued function. How should I ...
0
votes
1answer
61 views

Errors in evalauting an expression

I have the following: Constants: b3b = 2; G = (1/eps^2); a1 = 3; a3 = 4; xc = 0.3; Functions: ...
1
vote
1answer
440 views

How to integrate this cumbersome piece-wise function?

I have this systems of equation: ...
0
votes
3answers
193 views

Given a Boolean representation of a system, how can the Reliability Function be displayed as symbolic algebra?

Can Mathematica 9 convert a Boolean representation of an RBD to its symbolic algebraic form? If I have a simple series Reliability Block Diagram made up of 2 components, c1 and c2 bexpr1=And[c1,c2] ...
0
votes
0answers
278 views

Using Solve Within Manipulate to Model Feedback Control System Problem

This post is extremely long and I do apologize - but please bear with me with all the explanation of the context of the question - due to how long the code is I have included a hyperlink where you can ...
7
votes
2answers
406 views

Is there any fast way to solve a quadratic matrix equation in Mathematica approximately?

Let the square nonsingular matrix $M$ is a given convergent matrix. What are the best scalar values for $\alpha$ and $\beta$ (in the real numbers domain), at which the following quadratic matrix ...
3
votes
1answer
183 views

ParametricNDSolve and Constraint satisfaction problem

I am trying to find the values of two parameters that allow for a specific result of my differential equations, under different initial conditions. Given a system of equations: ...
0
votes
2answers
173 views

Solving Within InverseCDF

I have the following input data: Remove["Global`*"] x = 5/30 // N; y = 0.8; μ = 0.2; T = 5; ρ = 0.8; σ (*to be determined*) And this is the given equation: ...
1
vote
1answer
322 views

NSolve cannot solve system of equations in Mathematica

I have the following two equations: ...
1
vote
2answers
245 views

Error using Solve on Matrix Multiplication

I am trying to make a function the will find that value of $x$ in the following equation: $x.a=b$ all values of $x, a, b$ are matrices. The dimensions of $x$ are unknown, but $a$ and $b$ have the ...
1
vote
0answers
174 views

Having Mathematica solve or help solve a set of 8 equations

There is a set of DDE's that arise in leukemia dynamics and I'd like to find the equilibrium points of the system by setting all of the derivatives equal to zero. The system can be described in ...
0
votes
1answer
427 views

How can I solve a set of non-linear equations?

I was wondering whether someone can give me an idea on how I can solve a set of non-linear equations with an unknown exponent This is what I have: Known values: N, R Unknown values: λ, α, J ...
4
votes
1answer
195 views

Asking Mathematica to produce a function of some variables

Given $$l_0=\sqrt{\frac{\lambda_1(\lambda_0+\mu_0)}{\lambda_0(\lambda_1+\mu_1-1)}}$$ and $$l_1=\sqrt{\frac{\lambda_0(\lambda_1+\mu_1)}{\lambda_1(\lambda_0+\mu_0-1)}}$$ ...
0
votes
0answers
63 views

Defining functions in a loop [duplicate]

I have a symbolic solution to a linear system with respect to some variables a[i,j] which depend on a parameter t. sol=Solve[...,Table[a[i,j],{i,0,n},{j,0,n}]] I ...
4
votes
1answer
181 views

How to demonstrate lack of stability with advection equation

I am trying to that using a coarse grid with an explicit method for, say, the advection equation leads to an unstable solution. The trouble is Mathematica avoids unstable solutions with good ...
2
votes
1answer
117 views

Compact form for domain ranges of many variables

When one sets up an equation to solve one often needs to specify conditions on the variables such as { x>0 && y>0 && z>0 } This is not ...
3
votes
1answer
318 views

Tips for efficiently solving large system coupled (nonlinear) ODEs

I'm trying to solve a system of nonlinear, coupled ODEs, where the governing equation for the $n-th$ ODE is of the form: $\sum_k^M Q_{nk} \ddot{a}_k -\sum_{\ell}^M\sum_k^M S_n(\ell,k) \dot{a}_{\ell} ...
-2
votes
1answer
315 views

Interpolating Function inside of NDSolve

I have a problem and it seems to be connected to an Interpolating function inside of an NDSolve command. The resistivity[x] ...
0
votes
1answer
39 views

Evaluate a list of Expressions from file

I have a list of expressions in a text file. I would like mathematica to evaluate and export the results at the end of the same file or in a new file. The expressions are in seperate lines in the text ...
4
votes
1answer
686 views

Use of $Assumptions [duplicate]

I don't really understand the behaviour and the usage of $Assumption. For instance, when I set $Assumptions = λ > 0, I expect ...
0
votes
1answer
448 views

How to find the zero of a function?

I want to find out when a function has a real root. I first made a RegionPlot3D when the function is zero. ...
1
vote
2answers
376 views

How to make a Dynamic Calculator to solve a quadratic equation?

Taking my first steps in the world of Mathematica Programming. The aim of my program was to modify Wolfram's dynamic calculator (which performs an addition subtraction and a product - in response ...
0
votes
1answer
221 views

Find root of a function defined as a Module

I have a simple module like BCdet[x_, y_] := Module[ {AuxMat}, AuxMat = Mat /. {f -> x, A -> y}; Det[AuxMat] ] where ...
6
votes
1answer
141 views

Recurrences of lists

Assume we have a multi-dimensional recurrence, e.g. $\qquad\begin{align*} a_1 &= (1,2) \\ a_n &= (1,2) + a_{n-1} \quad, n>1 \end{align*}$ with the easy solution $a_n = (n,2n)$. How ...
2
votes
0answers
155 views

Using WhenEvent for derivative of discontinuous function

I have a discontinuous function ($u(t)$, a square wave) and I would like WhenEvent to trigger when the signal goes high/low, i.e. when the value of $u(t)$ changes. ...
1
vote
0answers
66 views

Is it possible for Mathematica to give the step by step process of Reduce command? [duplicate]

Input: Reduce[3 x^2 - 2 a x + a^2 - 1 >= 0 && x > a, x] // TraditionalForm Output: ...
1
vote
2answers
321 views

Finding shortest non-zero vector $x$ satisfying $Ax=0 \pmod q$

Let $n$, $m$, and $q$ be positive integers (with $m > n$), and $A$ be a matrix over $\mathbb{Z}_q^{n \times m}$. Using Mathematica, I want to find the shortest non-zero vectors $x \in ...
0
votes
1answer
118 views

How to simulate a multivariate recursive system from a list

New to mathematica, trying to use Eric Swanson's Pertubation AIM program to solve DSGE models. His code produces a solution as a list or a table. My question is how do I use this list to simulate the ...
1
vote
1answer
125 views

Simple rule appears not to work

I have the following simple code ...
0
votes
1answer
252 views

Solve equation containing conditions (If expressions)

I want to solve the underneath equation. If I try Solve[AAA,dc], then I get no solution. Can anybody explain this? ...
9
votes
1answer
238 views

$1 - \sqrt{5}$ $\in$ $\mathbf{R}$?

Why is there a difference in the output of the following codes? First: ...
1
vote
1answer
132 views

Problem about Solve

See this example : ...
3
votes
1answer
683 views

Finding intersection of two graphs

Here is a toy problem: I have a (directional) line that starts from {2,0} and goes through {1.8, 0.01}. Also I have a ...
0
votes
0answers
50 views

Degeneracy problem at the start of a series expansion

I am facing the following problem : I have an equation which could write $$ F(x_1(Y))-F(x_2(Y)) = 0 $$ $x_1$ and $x_2$ are the largest and smallest roots of a cubic equation; their definition ...
11
votes
4answers
469 views

How can I find all values of $m$ such that my cubic equation has three different positive solutions?

I want to find all the values of $m$ such that the equation $$-m^3 + 2 m^2 x + (-2 m - 1) x^2 + m + x^3=0$$ has three different positive solutions. I tried ...