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

learn more… | top users | synonyms (5)

0
votes
1answer
66 views

How to solve a linear system inside Manipulate and use the result for Plot?

I typed a code for showing a plane and a line, and solve a system, but I can´t show the intersection, because I don´t know. Here is a minimal working example for understanding my problem ( the real ...
0
votes
3answers
119 views

Find zeros of function in 2 variables

I have two functions $f(r,\phi)$, and $g(r,\phi)$. What is the best way to find the curve in the plane $(x,y)$ or $(r,\phi)$, over which $f(r,\phi)=g(r,\phi)$? I know how to plot it, using ...
4
votes
3answers
96 views
1
vote
1answer
40 views

FindRoot::Istol error

I recently tried to find a root with FindRoot in Mathematica. I know that the problem has a solution, but when using FindRoot, this error appears : ...
2
votes
0answers
46 views

Why doesn't RSolve work here? [closed]

RSolve[ {θ[n + 1] == θ[n] + 0.25*ϕ[n], ϕ[n + 1] == ϕ[n] - 2.5*Sin[θ[n]], θ[0] == π/2, ϕ[0] == 0}, {θ[n], ϕ[n]}, n] What's wrong with my code? I know ...
1
vote
0answers
60 views

Why FindRoot fail in this case?

I'm trying to solve a set of equations: $$\frac{\epsilon+(k(1-N)+2\beta)\upsilon_l-\epsilon \upsilon_l^2-2\Omega(1-N)\upsilon_l^3}{-\Omega\upsilon_l^4+k\upsilon_l^2-\Omega}=\sum_{j\neq ...
1
vote
1answer
59 views

Assigning solutions to a variable [duplicate]

If I do Solve[x+1==0, x] then I get {{x -> -1}} But I want to assign the solution -1 directly before seeing the result, ...
0
votes
0answers
48 views

FindRoot for vectors

My problem is the following: quad = 26; R is a quad x 3 matrix, lpand ...
5
votes
5answers
139 views

Non-algebraic equation in the set of complex numbers

The following equation in $\mathbb{C}$: $4z^2+8|z|^2-3=0$ is not algebraic and has 4 solutions : $\pm\frac{1}{2}$ and $\pm i\frac{\sqrt{3}}{2}$. The Solve function in Mathematica only returns the 2 ...
1
vote
0answers
70 views

Solving a tensor equation in xTensor [closed]

I want to solve the following equation $\frac{1}{4} R_{ab} g_{cd} - \frac{1}{2} g_{ab} R_{cd} + 4 R_{ab} g^{ef} \nabla_e \nabla_f R_{cd} + 2 g_{ab} R_{cd} g^{ih} g^{ef} \nabla_e \nabla_f R_{ih} = ...
2
votes
0answers
73 views

Solving a non-linear equation in Mathematica with many variables

I have a beautiful equation, where I am trying to compute for R2. I am using Mathematica. So far every single time that I have tried to use Solve[] or Reduce [] the computation takes forever. I hope ...
9
votes
2answers
159 views

Does LinearSolve know that I gave it a Sparse lower triangular matrix?

Let $\mathbf L$ be a nonsingular numeric (non-symbolic) large, lower triangular sparse matrix. Let $\mathbf b$ be an appropriately sized vector. I want to solve $\mathbf L\mathbf x=\mathbf b$. ...
0
votes
2answers
280 views

How to write Newton-Raphson module and return a value?

I am writing a code which solve nonlinear algebraic systems via Newton-Raphson algorithm. I want to make a Newton Module with another file and use the Module in my test file, but i didn't achieve it. ...
2
votes
1answer
33 views

Specifiying values in a system of equations

Suppose I have system of equations, for example Clear[a, b, c] Reduce[{RCI7[{a, b, c}] > 0, RCI7[{b, c, a}] > 0, RCI7[{c, a, b}] > 0}, {a, b, c}] // N ...
0
votes
2answers
50 views

Please, can someone solve this equation [closed]

Solve the equation: e^(at)+e^(a(t-T)) = 2. Please can someone help me to solve this equation. I need a in terms of t, T.
3
votes
2answers
111 views

Torus-geometry algebraic equations using Nsolve and Reduce

Somehow a set of naive-looking equations cannot be solved by using NSolve. Mathematica returns a message like this: ...
0
votes
1answer
71 views

a question about Nminimize [closed]

I have 10 equations and 10 unknown parameters such as alpha1,alpha2,a1,a3,... which I want to find them by minimizing ...
5
votes
0answers
91 views

Find regions in which the roots of a third degree polynomial are real

I have to find the roots of a third degree polynomial in $\phi$ that depends from 3 parameters, namely $t,s,w\in \mathbb R$. In order to do that I've used the command ...
-1
votes
1answer
37 views

Finding the set of solutions of an equation [closed]

I have a very simple problem. I have an equation f[x] == 0, where f[x_] := x^2-4. In output, I want to get the set of ...
1
vote
1answer
40 views

defining output Solve

I'm just starting with Mathematica and I was having a small question: How can you "define" the outcome of a "Solve" in Mathematica? Here is an example from mathematica: ...
5
votes
0answers
104 views

How to find an algebraic representation

I want to find matrix representation of some algebra (Clifford algebra Cl(3,1) in this case). Here is an example, which I would like to get and then extend to higher dimensional matrices. Suppose we ...
0
votes
1answer
141 views

How could I solve this Reaction-Diffusion PDE using mathematica?

I'm modeling a problem with PDEs, So I gotta solve numerically this Reaction-Diffusion Partial Differential Equation $$ \frac{\partial u(t,x,y)}{\partial t}=D\Big( \frac{\partial^{2}u(t,x,y) ...
1
vote
1answer
51 views

Problems with solutions obtained from Reduce

I am solving a problem using Reduce, and having a difficulty with understanding the answers I obtained. I was solving ...
2
votes
1answer
79 views

Reduce not solving linear equation

I have a long equation in 7 variables but the equation is linear (affine) in x. But when I try to solve with Reduce, it keeps running forever. With Solve, I am able to get an answer. Usually I have ...
3
votes
3answers
174 views

FindFit with a sophisticated function (integral)

I am trying to find a fit to the distribution function (empiricial data) in terms of a function which is itself an integral of a product of two simpler functions (two polynomials), that is the model. ...
5
votes
2answers
129 views

Series solution of the Lane-Emden equation

I have the following problem: I'd like to show how the Lane-Emden equation would look like if someone would solve it as a series. Here's the code: ...
1
vote
0answers
56 views

Getting Solve::nsmet error message

I have the following equation: Profit[Fc_] = p (T - Fs - Fc)^(rho*phi) * Fc^phi * Mc^psi - w*Fc and I tried ...
0
votes
0answers
18 views

Numerical resolution of equation with trigonometric expressions [duplicate]

I have difficulties to solve this equation : NSolve[(x^3 + Sin[x]*Cos[x]) == 0, x] I receive the following error message : This system cannot be solved with ...
7
votes
3answers
364 views

Can't figure out how to plot this function

I've got a real nasty function that I can't figure out how to plot. The function is $\qquad f(k) = \pm\sqrt{1+4\cos^{2}(k/2)+4\cos(k/2)\cos(p)}$ from $k=-\pi$ to $k=\pi$, which doesn't look so ...
4
votes
1answer
122 views

Solving a linear equation in an abstract vector space

I have five abstract vectors a1,a2,a3,a4 and a5 that yield four other objects through abstract addition w1 = a1 + a2; w2 = a2 + a3; w3 = a3 + a4; w4 = a4 + a5; ...
5
votes
2answers
219 views

Reduce with Integer domain, but receive a rational solution

Bug introduced in 6.0 and fixed in 10.0 I want to find the integer values $k$ so that D[f[x], x] has integer solutions. I tried ...
0
votes
1answer
43 views

Constraints on Solve results

I'd like to filter the results of a solve giving inequality conditions: let's say I have Solve[f[x]==g[y],y] since i want y as function of x, but I want only the ...
1
vote
1answer
637 views

Trying to solve a transcendental equation involving Bessel functions

I've never used Mathematica before and am trying to numerically solve equation (12) from this paper. Ideally I'd be able to find the smallest value of $x_{n\nu}$ for $\exp(-kr\pi)$ close to 1, and ...
9
votes
4answers
761 views

How many times do the two given curves intersect at the origin?

I'm reading/studying on my own a book about algebraic curves. I'm trying to find a way for Mathematica help me with the following (the book, ISBN: 038731802X, allows me to use any CAS / program. ...
2
votes
1answer
129 views

Constant Heat Flux Boundary Condition for the Differential Heat Equation

I am attempting to solve the transient heat equation for a very simple geometry and I am getting a junk solution. I have identified two distinct regions (wall and super-heated fluid layer) with their ...
3
votes
0answers
58 views

Equilibrium solution to system of 4 ODEs with 6 parameters [closed]

I have the following system of 4 ODEs of 4 state variables $(M_{U},M_{R},F_{N},F_{M})$ and 6 parameters $(\alpha,b,\gamma,\mu_{M},\delta,\mu_{F})$ that I am trying to find the equilibrium solution ...
1
vote
1answer
118 views

How to find and express all polynomial roots with greatest precision?

I've already plowed through the documentation and a bunch of other Questions on this, but I've only found partial or tangentially related answers. I need numerical results for all of the complex ...
1
vote
2answers
61 views

Solving for intervals without using NumberLinePlot

I've been struggling to find a way to find an interval solution to an equation/inequality. I know mathematica can do this since for example, ...
3
votes
0answers
156 views

solve tricky nonlinear ODE on a grid

I've been working on the same question for a while now and would appreciate any advice on what I'm doing wrong or any direction on how to actually solve the problem. :) On xzczd's advice, I retried ...
1
vote
1answer
48 views

Calculate for k? [closed]

The mathematical question is as follows: Calculate the value of k for which 2x^2 + 4x - k = 0 has equal roots. My working solves it to equal -2, but if we then put this back into the formula ...
1
vote
1answer
37 views

System of equations from coefficients of series

I have two functions $F_1(a,b,x)$ and $F_2(a,b,x)$ I expand these functions about the point $x=0$ Series[F1,{x,0,2}] Series[F2,{x,0,2}] the coefficients are ...
35
votes
5answers
8k 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 ...
12
votes
1answer
207 views

Using Simplify on a consistent system returns False

Bug introduced in 8.0 and fixed in 10.3. It's late, but am I missing something here? Why should two independent equations, which together are consistent, ...
2
votes
1answer
105 views

How to plot a figure according to two equations?

There are two equations like this: $a=f(x,y)$ and $z=g(x,y)$, where $a$ is a constant. In principle, one can solve $a=f(x,y)$ for $y$ as $y=k(x)$ and substitute it into the second equation to obtain ...
0
votes
1answer
47 views

Presenting the solution of an equation with the form of x=

In Maple you can use {} inside the command in order to present the evaluation as x=... For instance, the command ...
3
votes
1answer
112 views

Solving an equation containing an integral in the unknowns

I have an equation of $x$ and $y$, which reads $$ -\alpha^2+\frac{2}{3} \alpha^3+y^2-\frac{2}{3}y^3+x^3f(\frac{y}{x})=0, $$ where $\alpha$ is positive parameter and $f(x)=\int (1-\tanh x) ...
5
votes
4answers
236 views

Finding $y$ coordinates for $\sin(x+y)=x^2+y^2$

How can I find the $y$ coordinates of the equation $\sin(x+y)=x^2+y^2$ when $x=0.5$? I've tried NSolve[Sin[x + y] = x^2 + y^2 /. x -> 0.5, y]