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
97 views
2
votes
1answer
81 views

Stability Boundaries via Routh-Hurwitz Criterion

I'm attempting to determine the stability boundaries of a 2nd order system via Routh-Hurwitz stability criterion. That is to say, I need to compute when a polynomial, which is in terms of variables ...
2
votes
1answer
114 views
0
votes
2answers
63 views

Diophantine and odd

need to resolve this Diophantine equation, but with the condition that a, b, c belong to the set of odd numbers from 1-51, as I write this condition in the code ...
0
votes
0answers
24 views

Some more efficient form to calculate the order value

This takes a long time, any idea how accelerate Reduce[x^(2 x^2 - 2 x) - 1 == x , x] k = x^2 + x^-2 k = ?
0
votes
2answers
82 views

Find smallest integer that satisfy a system [closed]

f[m_,n_]:=-205 m^2-(672m)n+324(n^2) I want to find the smallest positive integer M such that all of the numbers f(m,n), for m=1,2,...,M and n=1,2,...,M are ...
1
vote
3answers
136 views

Find value of x such that x! less than or equal to 1000

I am trying to find the maximum value of $x$ such that $x! \leq 1000$. I tried the following: NSolve[Factorial[x] - 1000 == 0, x] but I got this message: ...
0
votes
0answers
57 views

Solve[..] does not solve the equation? A bug?

I tried to get the values of CosTheta where the expression is zero and store theses in sol. ...
0
votes
1answer
51 views

Finding the intersection of two graphs [duplicate]

I'm having difficulty with finding the intersecting point of two graphs. Here is what I have done so far: Plot[{8*n^2, 64*n*Log2[n]}, {n, 0, 100}] which produces ...
1
vote
1answer
64 views

Plot roots of polynomial system of equations in 3 variables

I have the two equations $x^2 + 2y^2 + z^2 = 1$ and $xz -y^2 = 0$ I want to plot the roots in 3D. i.e the coordinates $x,y$ znd $z$
0
votes
1answer
96 views

How to get an analytical solution for this equation set with Abs function in it?

To calculate the solution for the following equation set's unknown variables ${C,V}$ \begin{equation} \begin{aligned} \sum_{i=1}^m Abs[bt_{i} \cdot xt'_{i} - V \cdot bt'_{i}] \cdot c &== C \\ C + ...
0
votes
1answer
78 views

WhenEvent for space variable

Can I use WhenEvent for space variable? For example ...
15
votes
2answers
3k views

How do I work with Root objects?

I want to solve the trigonometric equation : $$(3-\cos 4x )\cdot (\sin x - \cos x ) = 2.$$ I tried Solve[(3 - Cos[4*x])*(Sin[x] - Cos[x]) == 2, x] It returns the ...
2
votes
4answers
127 views

Using ArcLength in Mathematica 10 using absolute values

With Mathematica 10, I can nicely plot: y = x^2 - 4 Abs[x] - x But I have not been able to use ArcLength to get the length of ...
1
vote
1answer
62 views

Plotting solutions of systems in complex plane

I'm interested in plotting solutions of systems of polynomials in the complex plane, in the following way. Let $f_1,\ldots f_s$ be complex polynomials in variables $x_1,\ldots x_n$. I know how to ...
1
vote
1answer
99 views

Solving ODES in order to find unknown constants

I am trying to solve a set of ODES which represent a second order consecutive chemical reaction. ...
0
votes
0answers
35 views

How to sweep a parameter in an ODEs system using ParametricNDSolveValue?

I want to analyze how my ODEs system behaves when I change only one parameter (in this case d). ...
2
votes
2answers
182 views

Solve ODE in State-space form

Is it possible to solve an ODE in state-space form in mathematica? Such as x'[t]=A.x[t] I attempted ...
-2
votes
1answer
47 views

Using functions inside Solve [closed]

I'm trying to solve a system with the function: Solve. But I am not able to use functions within the Solve, for example the ABS ...
1
vote
1answer
198 views

Defining a curved region for NDSolve

I have an equation to solve using NDSolve which involves two parameters: $en$ and $k$. The equation produces a set of curves when $en$ is plotted against $k$. In ...
1
vote
1answer
342 views

Finding solutions of polynomials system

Let $f_1,...,f_n$ be a set of polynomials in $x_1,...,x_n$ with rational coefficients. I need to check whether a system $$f_1=a_1,...,f_n=a_n$$ has a real solution for large enough count of points. ...
0
votes
0answers
51 views

Reduce does not work

(i*((1 - ((1 + j)^-n))/j)) - (i*t*((1 - ((1 + j)^-n))/j))*(1/((1 + j)^k)) + (1*(1/((1 + j)^n))) == 1 I want to use reduce for ...
1
vote
3answers
95 views

NSolve & PrecisionGoal

I am using NSolve to find numerical solutions of a particular equation. I do not need the solutions to as high of a precision as the other numbers in my notebook. To improve run time (I am iterating ...
0
votes
1answer
47 views

Integrate equation. Variable in terms of another

This might have an easy solution but I am new in Mathematica. I have an equation for which I want to find the solution. My equation goes like: $$\frac{dr}{dx} = ...
0
votes
0answers
69 views

Plotting FindRoot solutions against one parameter, varying another

I'm writing my question wholly anew as it has changed its form a bit and I've got some actual code attached as well. I've got a system of equations for which I find numerical solutions with FindRoot. ...
0
votes
2answers
109 views

How to find critical points of trig function over an interval?

I need to find the critical points (maxima, minima and points of inflection) of the function $f(x)= \sin(x)+\ln(\frac{1}{4}x^2-\frac{1}{4}x+\frac{3}{2})$ over the interval $-3\leq x\leq5$. To do this ...
2
votes
1answer
83 views

How to solve for the closed form of this recurrence?

For integers $L,k \geq 0$: $$T(L,k) = \begin{cases} 0 & \text{if }k \geq d, \text{ever}\\ -a_{k} & \text{if }L=0 \text{ and } k<d\\ a_dT(L-1,k+1) - a_{k}T(L-1,0)& \text{if } L>0 ...
8
votes
0answers
165 views

FindRoot kills kernel

Bug introduced in 7.0.1 or earlier and persists through 10.0.2. Fixed in 10.1.0. I'm having problems with FindRoot killing the kernel. In my real application, I want to FindRoot on a black-box ...
3
votes
1answer
102 views

How can I solve my easy system of equations?

I am new to Mathematica and am afraid this is a silly question. I have this very easy substitution, it has three equations on three unknowns {w1, l1, t1}. I want to ...
2
votes
1answer
222 views

How to solve this numerically?

May I ask what is the best way to evaluate ...
0
votes
0answers
32 views

Issue with FindRoot and initial value

I have a quite unwieldy function and I would like to obtain a root via FindRoot. ...
1
vote
4answers
143 views

Solve reports it can't handle my equation

I am trying to solve the following equation Solve[x ϵ + (-ϵ) x^-ϵ - c (-ϵ) x^(-ϵ - 1) == 0, x] Yields Solve::nsmet: This system cannot be solved with the ...
2
votes
0answers
46 views

How to handle solution returned by ParametricNDSolveValue in FindRoot

i was trying to solve a problem relative to root finding in a system of differential equations; here's a simpler case. With two distinct set of parametric differential equations, i'm able to find the ...
1
vote
1answer
72 views

Optimizing matrix inequalities over trace

I need to solve the following problem. Given $n \times n$ Hermitian matrices $A\geq 0$ and $B_1, ~ B_2$ (need not be positive semidefinite), with $Tr(AB_1)<0~,Tr(AB_2)<0$ construct a ...
1
vote
1answer
195 views

4th-order Runge-Kutta method to solve a system of coupled ODEs [duplicate]

I am a beginner at Mathematica programming and with the Runge-Kutta method as well. I'm trying to solve a system of coupled ODEs using a 4th-order Runge-Kutta method for my project work. I have ...
0
votes
2answers
181 views

Defining the domain of positive real numbers

I am trying to solve an equation by assuming that all the variables are real and strictly positive. I can use the keyword Reals for the argument ...
0
votes
1answer
60 views

FindRoot, Loops and multivariate nonlinear system

I posted a question yesterday asking how I could get all the solutions to my system of 4 nonlinear equations with 4 unknowns. I gave up on this since it seems ...
0
votes
0answers
47 views

Any way of solving this system of nonlinear equations with non integer powers?

I have a system of four nonlinear equations. Some of the exponents are fractions. I was wondering if this is what is causing NSolve to run for hours without giving ...
1
vote
0answers
51 views

Why am I getting a conditional output when importing the Dirac Equation to Mathematica? [duplicate]

Just starting out with Mathematica and trying to use the Dirac Equation. I'm working with the following form of the Dirac Equation: $$ i \hbar \gamma^\mu \partial_\mu \psi - m c \psi = 0 $$ And my ...
0
votes
1answer
75 views

Solving a single-variable equation mixed with exponential and algebraic

Trying to solve for x Solve[((a - 1) (1 + d x^2))/(a (Exp[b x + c] - 1)) - e == 0, x] in terms of the constants a,b,c,d, and e. Mathematica says "This ...
2
votes
2answers
99 views

Only one root at specific interval

I need a help to find k here: $f(x)=-k^x + x^2$ It is not too simple. I have interest to find the single value of "k" where, inside interval {x,2,3}, the function have only one value to x when f(x) ...
1
vote
2answers
123 views

Solving for the limits of an integral

I am trying to get Mathematica to solve for the symmetric limits of an integral of a Square Wave. ...
-3
votes
2answers
111 views

Solving the symbolic quadratic equation ax2 + bx + c = 0 [closed]

I need to ask Mathematica to solve the symbolic quadratic equation ax2 + bx + c = 0. Does it give you the right answer?
0
votes
2answers
45 views
2
votes
0answers
65 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 ...
0
votes
1answer
49 views

NSolve taking too long to solve system of polynomial equations

I am trying to solve a system of polynomial equations (10 variables and 10 equations) using NSolve in an attempt to find all solutions. ...
0
votes
1answer
73 views

How to obtain a convergent solution iteratively for a linear system of equations

I am working on a problem that requires an iterative procedure to solve a linear system of equations, the system of equations in matrix form is: $$\underbrace{\begin{bmatrix} r_{11} & r_{12} ...
2
votes
1answer
105 views

Solving for flow speed?

I'd like to use Mathematica to verify the results of a Matlab code that iteratively solves for a flow velocity, u, given some fluid properties and a pressure drop. Ideally, I would like solve the ...