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

learn more… | top users | synonyms (4)

1
vote
2answers
234 views

How do I plot the differential of this function?

Suppose I have this function: $$z(x,y) = \left| \frac{ \frac{1}{3x +iy} -2x}{iy + \frac{1}{x}} \right| $$ I want the contour plot of $\frac{\partial z}{\partial x}$ with axes $(x,y)$. Tried this ...
1
vote
1answer
91 views

Whats the most efficient way to solve an equation numericaly (because it has no analitical solution)

So, I think the problem that Im having is simple but, still, Im not sure on how to do it. I have an equation with no analitical solution: $a_1 \sin \left(2 \theta \right)+a_2 \sin \left(2 ...
1
vote
4answers
185 views

How to extract only real solutions from the result of Solve

For Example, I have the following polynomial equations: $$ \left\{ \begin{array}{ll} \dfrac{2025 (208 x+5 (y-3446))}{52 (y+90)^2}+\dfrac{300 (8 x-21 y+1920) (y-80)}{7 (x+30)^3}+\frac{300 (80 x-21 ...
1
vote
3answers
207 views

Finding maximum value with position from Table of values

I have this table of values, how do I find the maximum value? i.e. find $z_{max}(x,y)$ ...
0
votes
1answer
62 views

Solving minimum length confidence interval problem

I'm trying to find the minimum length of a confidence interval for the variance from a sample iid with normal distribution. I tried ...
1
vote
1answer
51 views

How to get only the real solutions of an equation? [closed]

Is there any simple way to get only the real solutions of the eq. x^3-1=x? I've tried: Solve[x^3-1==x,x] But it gives the complex ones, too. I have Mathematica ...
11
votes
2answers
322 views

Solving the magic backyard puzzle with MMA

I was trying to solve this puzzle using mma It looks like the generalization of the magic square. Anyway here my attempt:- There are four columns $(x,y,z,w)$ and nine rowa which are denoted by the ...
0
votes
0answers
32 views

How can Mathematica solve 7 equations and want to find 7 variables [duplicate]

I have 7 equations as below * e1 := (1 - a) p Subscript[A, 0] Subscript[s, K ] ! *SubsuperscriptBox[(s), (L), (-a)] = (1 - b) Subscript[B, 0] (1 - Subscript[s, K]) (1 - Subscript[s, ...
-1
votes
1answer
62 views

NDSolve solution methods issue

I´m modelling a biological reaction thorugh a set of differential equations. ...
3
votes
1answer
285 views

How do I solve for one variable in terms of other variables in Mathematica?

I'm fairly new to Mathematica, and I'm trying to solve a complicated equation with multiple variables. I've tried the following... ...
0
votes
2answers
108 views

Solving an Equation (Recursively)

I have the following Values: $a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=\frac{g_2}{20};a[5]=0$. I need to compute the value of $b[n]$ in the following equation $$a[n]=\sum _{m=0}^{n} (m-2) \;\;a[m] ...
1
vote
1answer
95 views

How do I solve for the real and complex parts of an equation simultaneously?

If I were to have an equation, say something similar to... (1-Sqrt[x - I y])/(1+Sqrt[x - I y]) = A + I B Where I = Sqrt[-1], is there a way for Mathematica to ...
0
votes
1answer
59 views

Why can NSolve only solve this system of equations after trivial substitution?

The first system immediately yields {}, but the second, equivalent, system yields the solution {{k -> 4.96048, tl1 -> 1.64842, tl2 -> 2.07466}} : ...
0
votes
0answers
32 views

What is that Root[…] inside the answer represent? [duplicate]

So I am encountering this situation, in which mathematica doesn't give me the answer, but in a form of "Root". How do I interpret this ? what is the number after the "&" represent? How should I ...
2
votes
0answers
82 views

How to handle infeasible points in FindRoot?

I am calling FindRoot[f[x,y],{{x,xInit,xMin,xMax},{y,yInit,yMin,yMax}}] where for some points {x,y}, ...
0
votes
0answers
97 views

Finding Roots of Non-linear Systems: Rescaling polynomials

I'm trying to get all isolated finite equilibria of a moderate multi-dimensional non-linear system of equations. Particularly I have 9 independent variables and third order at most. It turns out that, ...
0
votes
0answers
113 views

NSolve for large models

I'm a Mathematica rookie running version 7.0 for Mac OS X x86 (64-bit) (February 19, 2009) on a 2010 MacBook Pro. (I'm also a stackexchange "newbie" who originally posted this on stackoverflow, thus ...
0
votes
1answer
70 views

Simplifying a symbolic product of rational powers

I'm trying to symbolically evaluate a lot of equations that can consist of up to 10 parameters. The form of these expressions is a product/quotient of rational powers of the mentioned parameters, ...
0
votes
1answer
52 views

How to use an output of a Solve function in further calculations? [closed]

Following is the polynomial equation that gives me a single real root: ...
1
vote
1answer
72 views

Numerically Integrating to find a Maximum using NDSolve

I am trying to numerically find an equilibrium (maximum) of a function using its differential. The following is a simplified version. ...
1
vote
1answer
56 views

Some question on “Reduce”

Is this my mistake? I am trying to solve ...
3
votes
1answer
62 views

Finding linearly independent combination of vectors with a certain symmetry property

I have two linearly independent vectors $v_1$ and $v_2$. Is there a way for me using Mathematica to find two linear combinations $w_1$ and $w_2$ such that: $w_1$ and $w_2$ are linearly independent. ...
1
vote
1answer
53 views

Can someone please help me to state assumption?

I am currently trying to solve under what condition does the following term will be zero? ...
3
votes
1answer
104 views

Aborts and beeps without error warning

I have a piece of code that generates a figure, performing a calculation to generate each pixel. At a certain resolution it runs fine, but after a high enough resolution it fails. Mathematica beeps ...
0
votes
2answers
59 views

Eigenvectors inside a maniupulate function

I am trying to make a physics application and it requires that the eigenvectors be taken for a 3x3 matrix. It is my intention that Mathematica never have to deal with the matrices symbolically. ...
0
votes
0answers
53 views

Replace parameter of NDSolve by a Function

I dont know how to replace the paremeter inside of an interpolation function result from NDSolve by a function of another parameter. This is it: I have a ...
2
votes
1answer
125 views

Mathematica unable to solve equation numerically while Wolfram|Alpha can

I want to solve the following equation 2 x == Sinh[x] Mathematica is unable to do so ...
1
vote
2answers
77 views

Solve gives a solution which is contradicted by an example

I have the problem as described in the title. Here is the code: ...
0
votes
0answers
50 views

Calibrating a difference equation system

Sorry for not posting it in the first attempt properly. Consider the simple problem of a first-oder difference equation: ...
1
vote
3answers
262 views

Mathematica Solve function does not solve double exponential

I am trying to solve: Exp[-a Exp[-x/b] - c Exp[-x/d]] == Y to x, and using the command ...
6
votes
2answers
237 views

NSolve missing solutions in Mathematica 10

Running Mathematica 8.0.4 and 10.0.0 on a Windows 8.1 machine. Processed the same code with both kernels: ...
0
votes
0answers
56 views

How to solve equations over polynomial rings

sorry if my question is very basic but I don't know what to even search to look it up and the only "obvious" places I thought of had nothing. Some background, for whatever context it might provide. ...
1
vote
1answer
76 views

FindRoot error, Solving equations [closed]

I'm trying to solve this problem but FindRoot function seem unable to find the root when r equals 4. ...
13
votes
5answers
587 views

Solve symbolically a transcendental trigonometric equation and plot its solutions

I currently have the equation below for a beam with a hinge at various locations, the variable a can vary between 0 and 0.5. $$ Tan\left( {a\sqrt \alpha } \right) + Tan\left\{ {\left( {1 - a} ...
0
votes
1answer
79 views

A problem with “RiccatiSolve::ncsol: Cannot compute a stabilizing solution to the matrix equation ”

I have a SSM ( State Space Model ) and I want to calculate its optimum gains unisng LQOutputRegulatorGains[] command. When I run the code, it solves the equations ...
2
votes
3answers
202 views

Backsubstituting solution into FindRoot and Plot

I want to find roots from a transcendental equation using FindRoot as a function of a real parameter and then plot the solutions vs. the parameter. The following commands work perfectly: ...
2
votes
1answer
133 views

Simple differential equation to solve

Suppose we have this differential equation: $$ x^2 + y^2 + z^2 = \frac{\frac{\partial y}{\partial x}}{x+y+z}$$ I want to find $\frac{\partial y}{\partial x}$ at x=1,y=1,z=1. I tried this code but ...
1
vote
0answers
119 views

Nonlinear FEM and FindRoot

I'm trying to develop a kind of nonlinear FEM application using mathematica to solve a bvp like the following: $$ \gamma(u') ~u^{iv} + 2 \gamma'(u') u''' u''+ u''^3 = f(x) $$ where $u = ...
1
vote
2answers
93 views

FindRoot: getting number of iteration [closed]

I'm using FindRoot to solve a nonlinear system. I'd like to see what FindRoot is doing while computation, something like the display option for Matlab fsolve. At the end of the day, I want the number ...
0
votes
1answer
142 views

Can mathematica rearrange an equation and solve/plot it? [closed]

Suppose we have this equation: $$ sin(x+y+z) = x^2y - wz$$ I want mathematica to plot contours of $x$ with axes of $y$ against $z$ in the limit $w \rightarrow 1$, tried this code but didn't work. ...
1
vote
1answer
169 views

LinearSolve failing to find solution to system of linear equations of 64 variables

I've got a 64x64 Matrix L for which I want to find the solution to the matrix equation L . x == rho. L is defined as ...
0
votes
1answer
124 views

How to calculate the unknown quantity in an infinite series?

I'd like to calculate x value in this equation. Basically, I tried to 2 types of method which are FindRoot and NSolve. But, I have failed the calculation caused by these errors up to now. If ...
0
votes
0answers
50 views

Coupled ODEs with boundary conditions - DSolve Error

I'm relatively new to mathematica and I can't find the error here. I suspect it has something to do with the fact that vx, vy, vz aren't blue on my mathematica - as in, they already have some assigned ...
2
votes
1answer
109 views

NSolve for system of polynomial equations

I would like to find all the solutions to the following system of 8 polynomial equations for the variables w1, w2, w3, w4, w5, w6, w7, w8 ...
0
votes
1answer
116 views

Problems with Solve

I am having a problem similar to the previous question here. Solve either takes forever (I assume infinity) to run or returns an error. I have tried various combinations of using Round, Chop, N and ...
0
votes
2answers
121 views

How to fix problems solving for values of BSpline function?

I generated a spline function called f using the BSplineFunction with domain {t,0,1}. ...
0
votes
1answer
87 views

How can I speed up this multi-equation Solve problem?

I'm trying to solve a set of equations (chemical kinetics for a complex system, but don't worry about that). I ran it for 24 hours and I got no output. Here is the relatively simple code (I want to ...
0
votes
0answers
98 views

To solve an equation

I am trying to solve the equation: Solve[Re[Integrate[(2 c - (r^2) Exp[- I 1.4746])^(0.5), {r, 0, 31.7576}]] == 2.1216, c] I want to integrate an expression in ...
2
votes
2answers
119 views

Extract desired solutions from Reduce

I have the function a = 1 - 3 Sin[theta]^2 Cos[phi]^2; which I solve for 'phi' when $a=0$ sol = Reduce[a == 0, phi] which ...
-1
votes
1answer
110 views

How to find these two intersections? [duplicate]

1.pv=(q1^2+q*^2-q3^2)/[2(q1+q*-q3)] q*=5.3415is the upper limit of q 2.pv+(1-2a)q+2F=2(1-a)C(q) at q=q1 and q=q3。 equation 2 is actually trying to find the intersections of two ...