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

learn more… | top users | synonyms (4)

5
votes
3answers
229 views

Equation is solved quickly using Solve but takes too long using NSolve

I have the following simple command to solve for h in an equation: Solve[(1 - 2.25577*^-5*h)^5.25588 == 0.9644952131579817, h] ...
1
vote
1answer
55 views

Plotting the results of NSolve as Horizontal Lines

Suppose I use NSolve to find the Real approximations to the intersections of two separate functions over some specified range: ...
0
votes
0answers
66 views

simulate a 32-bit signed integer overflow in a recurrence function

Considering the following recurring equation: which is this factorial function: I want to find the value of x where f(x) = 0. Actually, the solution is impossible with Mathematica, and it's ...
1
vote
1answer
67 views

solve recursive factorial function [closed]

Is there a way to solve this recursive factorial function? a[n + 1] = (n+1)*a[n], a[10]=10 I am looking for the value of a[n] ...
0
votes
1answer
61 views

How large can be the dimension of a complex matrix which Mathematica can handle to find its eigenalues?

I have been working with 12 cross 12 complex matrix in Mathematica , I need to work with bigger size matrix of the dimension of the order of hundreds , I was wondering if Mathematica can handle ...
4
votes
1answer
84 views

Solve or preferable Reduce equation

I am new to mathematica and trying to solve and reduce the following: Solve[1 - (1 - p^y)^(u (1 - p)) == a, y] or ...
1
vote
1answer
77 views

Solve for values which produce negative real Eigenvalues?

Given an n x n matrix "A", with one or more unknown parameters, I'd like to show a plot of which values produce stability (negative Eigenvalues). For example, say you have a simple mass-spring-damper ...
1
vote
1answer
47 views

Problems solving a differential equation

I am trying to solve a differential equation: $dN/dt = a*N*(90-N)$ with $N(0)=3$ and $N(11)=43$: Using: ...
0
votes
0answers
41 views

Solve provides inter-dependent solutions not only variable dependent solutions

I have four implicit equations and trying to find the rest points of a system by using replicator equations. ...
2
votes
1answer
55 views

Plotting Multiple Solve Functions

My goal is to plot the functions returned from Solve but assigning each solution to a different function. Here is an example where I do it by hand ...
1
vote
0answers
58 views

Help inteprete the solution given by reduce

i am trying to solve for the a2 in the below equation on Mathematica ...
1
vote
1answer
93 views

handling division by zeros and line equations

today I was writing a code which takes some line equation and a circle equation,finds intersection points that are on $II$ and $III$ quadrants,draw a tangent line to circle from that point and then ...
1
vote
1answer
33 views

problem on returning value of function as a list using if

today i was writing a function for my project using mathematica that gives a line equation in form of $y=mx+b$ and a circle equation in form of $x^2+y^2=r^2$ and finds the intersection point which is ...
1
vote
2answers
94 views

How to solve ArcSinh equation for many differents parameters?

I am totally stuck trying to solve the equation below (1/2) x Sqrt[1 + 4 a^2 x^2] + ArcSinh[2 a x]/(4 a) == d Where a and ...
0
votes
3answers
66 views

High-Precision NSolve

I need to calculate the intersection of two curves f1[x_] := ((Zl ρ ) Exp[-x]) f2[x_] := (α k e^2 /x^2) Where ...
0
votes
0answers
39 views

Problem with solving an equation [duplicate]

I dont understand why Mathematica cannot solve this equation: Solve[Log[x^2 + 5] + 0.5 x + 1 == 0, x] I get this error message: Solve::inex: Solve was unable to solve the system with inexact ...
1
vote
1answer
151 views

Solving systems of equations

So I have a set of equations like 12 of them but 13 variables. However I would like to find the numerical value of the roots for the maximum value of a particular variable. I don't know how to do that ...
3
votes
4answers
343 views

Solving puzzles with Mathematica

I would like to be able to solve logic puzzles such as the one described here using Mathematica. I have copied & pasted the listed example below to save on jumping about with hyperlinks: The ...
0
votes
1answer
47 views
0
votes
1answer
39 views

Manipulate Solve for initial condition

I have a series of $n$ coefficients with parameters $r$ and $b$ that sum up to one. But there i also the initial condition value $c1$ that i required to obtain this normalization. I want to find this ...
0
votes
0answers
42 views

Closed solutions for `FindRoot`, no solutions for `Reduce` or `Solve` [duplicate]

Reduce, Solve and FindRoot all appear to struggle with this: ...
1
vote
0answers
75 views

Using NMinimize to solve the Multi Commodity Flow problem

I have the following optimization problem and I was hoping to solve it with NMinimize. Unfortunately, I don't get the desired result. I would like to get an optimal vector for $d_{e}$. This is how ...
1
vote
1answer
45 views

How do I solve a profile interval (statistics)

I want to calculate a 95% profile interval for f0. Do worry too much if you do not understand what it is. I will illustrate with a simple example. ...
0
votes
2answers
64 views

Plot function the uses Solve

Can someone tell me why I get an error (and how I get around it) from Solve while I try to Plot a function like: ...
6
votes
3answers
177 views

Ovals of plane curves (and esoteric surfaces in space)

Consider the curve $y^2 - x^3 + x=0$ with $x, y$ real. This curve has two connected components (one bounded, one not), and the question is: how do you get Mathematica to tell you that (if you do: ...
1
vote
2answers
131 views

Solving Differential Algebraic Equations as BVP

I am trying to solve a set of DAEs. \begin{equation} -4 \nu (\lambda(s))^{(-1 - 4 \nu)} \theta'(s) \lambda'(s) + (\lambda(s))^{(-4 \nu)} \theta''(s) = -\alpha_y \cos\theta(s) + \alpha_x ...
0
votes
1answer
82 views

How find solve the equation complex conjugate? [closed]

Tried solving it with every function I know but couldn't z*=z^2
0
votes
0answers
56 views

Solving an equation for rational modulus 1

I want to solve an system of equations of the form $$\prod_{i=1}^n x_i^{M_{i,k}}=1 \qquad k=1,\ldots,n$$ with complex $x_i$ with constraint $|x_i|=1$ and $M_{i,k}$ integers. This is basically a ...
1
vote
3answers
48 views

`Solve` with variables as single vector

Say I have a set of equations where the unknown variables are the elements of a vector $c=(c_1,c_2,\ldots)$ and want to solve it for $c$. Is there a way to do this with ...
2
votes
2answers
133 views

Solving 4 variable system of equations

Trying to solve a systems of equations. Here's the code: ...
1
vote
1answer
59 views

How to calculate minimum positive solution of a equation?

Equations with triangular function usually have multiple solutions, like Solve[Sin[x] == 1/10, x] returns a solution like ...
0
votes
1answer
68 views

How can I stop the integration of NDSolve with a condition?

I try to solve a partial differential equation by NDSolve. At some point, I want to stop the integrating by a condition that compares the min value of the function ...
4
votes
0answers
213 views

What is the algorithm behind Mathematicas Reduce in this equation?

Mathematica can use Reduce to arrive at an answer in this equation ...
2
votes
2answers
189 views

Solving a system of nonlinear equations 2

Regarding this question: Solving a system of nonlinear equations When I try to solve the same system (with the code proposed in Daniel Lichtblau's answer) with different Right Hand Side values, ...
1
vote
1answer
77 views

Matrix elements scope definition

Alright, I'm very new to Mathematica and I have yet to learn a lot so please bear with me (sorry if this is a duplicate!): I want to create an $n\times n$ matrix $C$ with elements $c_{i,j}$ with $i,j ...
5
votes
3answers
208 views

Not able to get a solution to a Lagrange Multiplier Equation

I assigned several constrained optimization problems to my calc IV students to solve with Mathematica, but this one is being stubborn. The function to optimize is: f(x,y,z) = y Exp[x-z] with the ...
2
votes
1answer
124 views

Problems with NDSolve and partial differential equations of several variables

Suppose we have the following partial differential equation: $$ 0 = \frac{ \partial w }{ \partial \tau } + \left( w + \sqrt{ h + \beta } \right) \frac{ \partial h }{ \partial \chi } $$ where $w$ = ...
0
votes
0answers
64 views

Undocumented options for NSolve

There are many undocumented options in Mathematica's official documentation. Is there a tutorial, or a reference somewhere, that explains in detail the undocumented uses of ...
1
vote
0answers
69 views

Numerical solution to two non-linear coupled differential equations [closed]

I am trying to solve two differential equations representing the position of an object in space. I have specified arbitrary initial conditions. ...
1
vote
0answers
45 views

Creating a matrix from a list of simultaneous equations

I have a list of n simultaneous equations of the form, w A[n] = (K[n,n+1]+K[n-1,n])A[n] - K[n,n+1]A[n+1] - K[n-1,n]A[n-1] ...
1
vote
1answer
104 views

Find extreme values in a polynomial expression

I have been hunting down and could not find an answer to my question. As I've now been struggling for quite a while and believe it is a simple trick that's preventing me from getting over this ...
3
votes
2answers
143 views

Solve and Reduce with Log finding unexpected root

We give equations like $\ln(1-x)-\ln(x-2)=0$ to our calculus students. This equation clearly has no solution, since $\ln(1-x)$ is only defined if $x<1$ and $\ln(x-2)$ only if $x>2$. Still, the ...
0
votes
0answers
45 views

Faster way to use Solve in a multiple parameters function

I have a complicated function, G, of several arguments: $G[{\lambda1,\lambda2,a,b,c,d,\sigma u,\sigma v,\rho,q}]$. First, I want to fix a=0.5,b=0.7,c=0.4,d=0.35, q=1. Then, I need to find the values ...
1
vote
1answer
53 views

How do I find the expression for where the first derivative equals 0? [closed]

I have a simple function of time. If I take the first derivative and set it equal to 0.0 I get the extrema of that function. I'm not interested in a numerical result, I want an expresion involving ...
1
vote
1answer
52 views

Export data from NDSolve when they meet a certain condition

I need to export to a txt file the data from the following system of equations: ...
1
vote
1answer
59 views

Getting unwanted solution from Solve

I am solving the simultaneously equations $\quad \quad x_7=0$ and $\quad \quad 6x_4x_5+6x_3x_5x_6+zx_4x_7^2+zx_5x_7^2=0$ with Solve. Here, $z$ is an unknown ...
3
votes
2answers
65 views

what to do when NSolve does not solve

f = 696.1125540355472 + 3.9668099604385043 x + LogGamma[1 + x] - LogGamma[169 + x] Plot[f, {x, 0, 10}] Solve[f == 0, x, Reals] NSolve[f == 0, x] I know that the ...
1
vote
1answer
32 views

Error following a variable in an ODE [closed]

I am trying to solve a 4th order differential equation and this is my code thus far ...
0
votes
0answers
36 views

Boundary condition is not specified on a single edge of the boundary of the computational domain

When I want to solve this PDE I get this error "NDSolve::bcedge: "Boundary condition u[0,0.05]==0 is not specified on a single edge of the boundary of the computational domain"" ...
3
votes
1answer
108 views

Importing data from Matlab, using data in “NSolve” and send the results back to Matlab

I have generated an image processing code in Matlab. It has several subroutines and in one of them, I should solve a system of 7 nonlinear equations. I use "fsolve" in Matlab to solve this system, ...