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
0answers
157 views

Poincare Section of an Hamiltonian

I'm in desire to plot the Poincare Section of a differential equation defined by a hamiltonian system. The hamiltonian is as follow: ...
1
vote
1answer
57 views

Strange functioning of RegionPlot with Reduce's output

I have defined this two quantities: f = (-b + Sqrt[b^2 + 4 a])/(2 a) g = (-b - Sqrt[b^2 + 4 a])/(2 a) and I want to solve this system in function of $a$, for ...
1
vote
2answers
220 views

Eliminating the Parameter: Transform parametric equation to Cartesian equation and draw arrows along parametric growth

Hey guys I really could use some help on this calc 3 problem. I'm stuck on how to write the code for this problem: a) Eliminate the parameter to find a Cartesian equation for a parametric curve. b) ...
-2
votes
1answer
68 views

Solve a system of two equations only in Mathematica [closed]

x + Sinh[x] == Sin[y] + y z + Exp[z] == x + Log[1 + x] + 1 M={0,0,0} x-? y-? z-? Solve[] doesn't solve this system.
0
votes
1answer
98 views

Attempt to solve for Differential Equation - Acc, Vel, Pos in (x,y,z) [closed]

In the problem I'm working on, there is a tennis ball that is subjected to a headwind, tailwind, and crosswind. I am trying to use NDSolve in order solve for the position functions and to eventually ...
0
votes
1answer
81 views

NSolve super slow for a parameter scan

I am using NSolve to solve two equations for two variables while scanning through several values of angles. The strange thing is that when I manual enter a value for the angle and Nsolve the answer is ...
2
votes
2answers
142 views

How can I get Solve to combine Sin/Cos into Tan?

I want to solve an equation in x, containing Sin[x], Cos[x] and a positive real constant ...
1
vote
1answer
107 views

Solving a System/Matrix of Equations in Matrix Form

Ok, I am trying to solve an equation involving matrices (well, tensors actually), which is of the form: $\mathbf{e}^{T} \cdot \mathbf{M} \cdot \mathbf{e}$ = $\mathbf{N}$, where $\mathbf{e}$ is an ...
0
votes
1answer
63 views

Display solution of Solve without the arrow [closed]

Is there a way to format Solve or something that I get the result of a calculation without the arrow, so if my result is like ...
0
votes
1answer
63 views

Solving at zeroes of a matrix - code only works for simple equation

I have a matrix of zeroes (True) and non-zeroes (False). The matrix is generated from a table of values of two other variables. I'm trying to observe how the solution for p3 changes with small ...
2
votes
1answer
277 views

Solving a system of nonlinear equations

The bellow set of equations has two answer sets for (α1, α2, α3, β1, β2, β3) respectively as following: (3, 1, 3, 1, 1, 1) & (3, 0.75, 3, 0.5, -1, 0.5) ...
0
votes
0answers
65 views

No solution with DSOLVE

I have been trying to solve the following system of ODEs: \begin{eqnarray} ...
2
votes
3answers
113 views

MapAt a function at specific positions

I'm trying to solve for $p3$ in 3p3-5 = p1 + p2 at positions where p1*p2 == 0: ...
2
votes
2answers
160 views

Given a system of inequalities, how to make Solve find out that two variables should be equal?

Given two boolean variables x1 and x2 (in the sense that they are in the range [0,1]), if I try to solve the following equation system with Solve: ...
1
vote
2answers
78 views

Error using Nsolve with system of two equations: “Use Reduce”

Having some odd behavior with some mathematica code I am running. I am solving a simple system of two equations but mathematica gives an error and asks to use Reduce? I looked up in the manual but ...
0
votes
0answers
54 views

solving nonlinear equation

I typed this below code in mathematica 9.0 but wasn't solved: ...
1
vote
1answer
110 views

FindMinimum and NMinimize to solve equations

I know that I'm not a Jedi in solving Equations and minimizing functions; but now I've this problem, and the solution is far to me. I want to solve this equation: ...
0
votes
1answer
116 views

How smart is Solve? Figuring out what tricks I should try

I'm trying to solve a large system (~10000) of linear equations using Solve, but the process keeps failing. As-is, I don't know whether it's failing because it's using too much memory or too much time ...
8
votes
4answers
195 views

Combining solutions while solving

Here is a simple representation of my problem. I want to solve Solve[(w^2*c^2 /. #) - 1 == 0, w]& /@ {{c -> 1}, {c -> 2}} ...
2
votes
2answers
257 views

How can I get this sum? [closed]

I want to sum the following numbers. At present I am calculating my sum as follows. a = 10^20 + 10^30 + 10^40; In the above case, if I want to add 100 or more ...
1
vote
1answer
88 views

Applying N to the roots found by Solve gives complex numbers when the roots are real [closed]

I have a function which is f(x) = x^3 - 5 x^2 - x + 1. When I solve for x to find the zeros ...
1
vote
2answers
104 views

How to explain NDSolve that functions must be positive only?

I have a simple system of differential equations to solve but both functions should be positive: x[t] > 0 and y[t] > 0 for all t. I was not able to explain NDSolve this fact so it goes x[t] < 0 ...
1
vote
0answers
80 views

Comparing two ways of fitting systems of ODEs to data

I'd like to ask you if you see any difference between the two following ways of estimating parameters. Given my system of ordinary differential equations that I want to use to find the values of all ...
1
vote
0answers
72 views

Stability region of midpoint method using Solve and RegionPlot

I've been trying to obtain the stability region in the $(\lambda_R, i\lambda_I)$ plane of the midpoint rule $$y_{n+1}= y_{n-1}+2h\dot{y}_n,$$ for the model problem $\dot{y}=\lambda y$. The roots for ...
0
votes
0answers
81 views

Rearranging 5 equations

I am trying to rearrange 5 equations in terms of 5 variables. I have the equations for y1, y2, ...
1
vote
1answer
68 views

How to solve this equation?

Mathematica does not give me the correct solution (-1) for this equation: Solve[9^(x + 4) == 27^(1 - x), x] Do I miss something or is Solve the wrong approach ...
1
vote
1answer
83 views

NSolve for complicated equation involving double cross product

I have the following issue. I am trying to solve a 3-vector equation for the vector slx, sly, and ...
2
votes
0answers
118 views

Solving a system of two nonlinear equations with many symbolic parameters

I have two nonlinear equations with two unknowns, $x$ and $y$, and many symbolic parameters, $a, b, c, d$. They look someting like: $\frac{1}{x}(1+x)^a (1-b)(cx+dy)=0$ ...
2
votes
1answer
66 views

Find constants in a function? [closed]

Let's say I have a function f[x] with n constants, e.g. f[x] = c1 * x + c2*x^2 + ... + cn *x^n I also have n conditions to find those constants, e.g ...
2
votes
1answer
126 views

Double integral changing the limits

This integral does not evaluate: Integrate[ Integrate[1/(E^((a - c)^2 + (b - c)^2) ), {c, 0, 1}], {b, -Infinity, Infinity}] However, reversing the integrals ...
1
vote
3answers
97 views

Can I find constants in a function?

Let's say, I have a function with a constant, e.g. $y(x)=x+c$, and a condition $y(0) = 5$. I want to type in something like Solve[{y[x]=x+c, y[0] =5}, {c}] and get ...
0
votes
1answer
83 views

How can I resolve the insufficient memory to complete the computation problem for solving function with iterated variables?

I am trying to solve for a value x in a function where the variables varies with iterations of K. Also, there is one variable called "rvsum" which is updated with a certain formula as well. I have ...
0
votes
2answers
89 views

Replace $z$ with interpolated function and plotting

I start off with this equation $z(x,y) = sin(xy)$. I create an interpolation from $0 < x < 5$ and $0 < y < 5$. I then use this interpolation on a simple function $w(x,y) = x + y + z(x,y)$ ...
3
votes
1answer
144 views

How to propel the integration of time a little bit further? Numerical solution can not evolve to the max time

I try to solve a nonlinear partial differential equation. I obtain a numerical solution which can not continue to the max time I set, I always receive message NDSolve::ndcf: Repeated convergence ...
10
votes
2answers
652 views

Mathematica isn't sure whether a sum of two positives is positive or not

Mathematica is not able to tell whether a summation of two positive expressions is positive or not. Which is very strange. My three symbolic arguments, $x$, $y$, and $z$, are all real numbers bounded ...
-1
votes
1answer
85 views

Is there a change in V10 with Solve and exponents?

I've encountered a strange problem with V10. I can't quite nail it down, but the Solve seems to be unable to solve equations that it could in previous versions. ...
2
votes
1answer
109 views

How to figure out whether a nonlinear inequality holds or not

I have an inequality consisted only of seven parameters as follows: $(1 + g)^{-(m+w)}\big[\big\{a+(1-a)(1 + g)^m\big\}(1 + p q)Q - (1 + g)^w \big\{(1 + g)^m (1 + q)-(1-p)q\big\} Q\big] < 0$ ...
5
votes
2answers
217 views

Counting Real roots

I'm interested on how to count the number of real roots of a random polynomials in an instant, how to put the result in a table and how to plot it in a graph.I generated 1 million random polynomials ...
4
votes
7answers
784 views

What is the equation to plot a vertical line?

Please help. Trying to find area between three curves, e^-x, x = 2, y = 1. Can't find out how to plot x = 2. Don't want to use ...
6
votes
0answers
127 views

FindRoot kills kernel

Bug introduced in 7.0.1 or earlier. Persists through at least 10.0.2 I'm having problems with FindRoot killing the kernel. In my real application, I want to FindRoot on a black-box function ...
1
vote
2answers
93 views

Solving a two point boundary problem for a piecewise system of equations

I'm trying to solve a two point boundary value problem with a piecewise system of equations like: ...
0
votes
3answers
99 views

How to manipulate with external data?

I have a .txt file which contains a lot of triples (a, b, c) (one per row) which should be coefficients of my equation ax^2+bx+c=0. I want to include each triple in .nb file and solve each equation. ...
-2
votes
1answer
112 views

How can I produce a list of solutions for a function which is updated with updated variables using for loop?

I need to loop over a set of equations, solving for X and adding the new X value to the old X value at each step. The output I need is a list ...
2
votes
2answers
219 views

How do I feed data points into an equation to solve NUMERICALLY?

I start with this equation and solve it numerically for $z(x,y)$ in the range $1 < x < 5$ and $1 < y < 5$: $$ \frac{3}{xyz} - 2x - 3y - 5z = 0 $$ Then using the data points of $z$ above, ...
2
votes
3answers
114 views

Solve equations within range and plot [duplicate]

Hi I have these pair of equations to solve: $$ 1 - 3 x y = 5 z - 2 x $$ $$ y = 7 x z - \frac{z}{x} $$ I want to eliminate $z$ and plot $y(x)$ within the range $-2 < x < 2$ and $-2 < y ...
0
votes
0answers
73 views

Solving a linear system in three unknowns [duplicate]

solve[{2 x + ay - z, bx - 4 y + z, -x + y} == {10, -30, 20}] $$ \begin{array}{lcr} 2x + a\,y - z & = & 10 \\ b\,x -4y + z & = &-30 \\ -x + y & = & 20 \end{array} $$ ...
2
votes
2answers
156 views

How to obtain a function from a implicit equation?

I have (60 - r/2) (70 - ca - r/2) - (60 - r/2 - ca + (4/25) (70 - r/2 - ca))*(70 - r/2)==0 Reduce[%, {ca}] But How could I obtain directly a function as ca[r_] ...
0
votes
0answers
31 views

System of Nonlinear equations with Gamma and Incomplete Gamma function

The next two nonlinear equations are cumulative ratios of a production system. The mathematical model includes two essential parameters (n, tau) that can be obtained by solving this system. I'm ...
0
votes
0answers
50 views

Using implicit function theorem to examine the relation between variables

I have an implicit function with seven variables defined as follows: $F(g,a,b,c,d,e,f)=2g^5 (1+g)^{-(2+a+b)} \Big(f(c-1)(e-1)(1+g)^a - (d-1)(1+g)^b \big(1+ef+(c-1)(1+f)(1+g)^a\big)\Big)=0$ All ...