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

learn more… | top users | synonyms (5)

2
votes
2answers
169 views

Solving two non-linear equations with two unknowns [duplicate]

I'm a beginner in Mathematica. I'm trying to solve : ...
3
votes
2answers
76 views

FindRoot, How to Return Null After x Number of Iterations

I am using FindRoot to find the root of a function, say f(x), and going through a loop for different values of ...
2
votes
0answers
133 views

How to solve an equation where the unknown variable is inside the integration [closed]

I have an equation: $$ \frac{1}{g}=\int_0^{\frac{1}{\delta}\sinh \frac{1}{g}} \frac{\tanh\left(0.882\, b\,\delta\sqrt{1+z^2}\right)}{\sqrt{1+z^2}}\mathrm{d}z $$ I want to obtain the relation ...
4
votes
2answers
186 views

How to solve a linear system by LinearSolve when the variables are duplicate?

Given that I have a set of equations about varible $x_0,x_1,\cdots,x_n$, which own the following style: $ \left( \begin{array}{cccccccc} \frac{1}{6} & \frac{2}{3} & \frac{1}{6} & 0 & ...
1
vote
0answers
36 views

Assign the results from a Solve to variable [closed]

I am a new user. I know, that my question was already asked billion times before, for example here, but I still cannot adopt these answers to my problem. In my problem I am solving the equation and a ...
2
votes
1answer
58 views

Newbie Issues with Solving & Plotting a System of equations

I'm having some problems with my mathematica code, I think I'm overlooking something simple. I get valid solutions for u0 thru u4, but it doesnt generate any plot at all. Also, I'd really like to plot ...
0
votes
0answers
120 views

Solving in Mathematica

I am trying to solve system of equations and inequalities in Mathematica. I am having the doubt that how much of preliminary processing should I do before solving. For example, consider a system of ...
2
votes
0answers
61 views

NIntegrate over statistical variables with parameter

Essentially, what I am trying to do is the following: Integrate a function which contains the parameter k ...
9
votes
2answers
170 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$. ...
2
votes
2answers
76 views

Solving a system of vector equations

I had a problem where I had to solve a series of equations where some of the variables can take multiple value such as shown below ...
1
vote
1answer
90 views

Find Values of a and b for a Limit

I am having trouble finding the values of a and b for which $\lim \limits_{x \to 0}$ $(\frac{\sin (ax) + bx)} {(x^3)}) = -32/3 $. In Mathematica I have entered: ...
1
vote
2answers
89 views

Evaluation to true using DSolve - syntax errors?

Probably a stupid question, apologies, but I am getting an annoying error when I try to evaluate the following simple PDE $\frac{\partial C}{\partial t} = d \frac{\partial^2C}{\partial x^2}$ between ...
8
votes
2answers
130 views

Numerical solve question

Why does this work? Solve[5 Tan[t] + 9 == 0 && 0 <= t < 2 Pi , t] {{t -> π - ArcTan[9/5]}, {t -> 2 π - ArcTan[9/5]}} But this doesn't. ...
0
votes
0answers
76 views

Solve a simple vector equation

I have a vector x = {1, 2, 3} and I want to solve for y such that 5 + x == y which ...
3
votes
2answers
168 views

How do I solve for a variable inside a sum but independent of the summation index?

How would I go about solving the following for c? Solve[0 == Sum[(t[i]*m[i] - c*t[i]^2)/s[i]^2, {i, 1, n}], c, Reals] I get ...
0
votes
1answer
74 views

Reducing solutions of Sin[2t] Sin[t] == Cos[t] to a simpler form [closed]

I evaluated Solve[Sin[2 t] Sin[t] == Cos[t] && 0 <= t < 2 Pi, t] And got these results. ...
3
votes
0answers
80 views

Extending Bresenham's algorithm for subpixel rendering

Original Bresenham's line drawing algorithm it limited to drawing lines between two integer pixel positions and does not allow subpixel rendering. However with my reformulation of this algorithm as a ...
0
votes
1answer
97 views

Solve equation with sum in it

Have trouble to solve this equation. Anybody knows where're the problems? ...
0
votes
2answers
167 views

Bifurcation diagram for 1D ising model

I'm new in Mathematica, I want to plot a bifurcation diagram for a complicated Ising system with dynamics that I'm working on, but to get familiar with how to perform it on Mathematica I wish to start ...
0
votes
1answer
32 views

$Failed when naming the variable x [closed]

Total beginner here, the problem goes away when renaming x into other letters. Below is the code ...
7
votes
2answers
159 views

Unexpected warning from DSolve

I'm trying to solve this differential equation with respect to $x$ $$ \frac{d^2y}{dx^2}-\bigg(\frac{dy}{dx}\bigg)^2-\frac{1}{x}\frac{dy}{dx}=\frac{1}{x^2} $$ With boundary condition $y(1)=2, ...
1
vote
1answer
244 views

How to solve trigonometric equations

I have the following problem: I need to solve the equation: $$\frac{\cos\left(x\right)}{x^6} - \frac{6 \sin\left(x\right)}{x^7}==0$$ and I don't really remember how to do it symbolically. Some help ...
1
vote
0answers
127 views

Solving a functional equation

Suppose I have two functions f[x,y,z] and g[x,y,z], both analytically defined. I want to solve for a function ...
1
vote
2answers
88 views

Stuck in solving two variables from two expressions

After doing experiment with Michelson interferometer I need to calculate two coefficients: k and n. This involves solving two equations for k and n: $$\frac{(8 \pi d)}{\lambda ...
0
votes
1answer
58 views

Help me solve this equation; I believe this is a transcendental equation [duplicate]

please can someone help me solve (x*L)+B*tan(x*L)=0, solve for x when B=10;L=0.1. The equation looks innocent but I need to find 1st 5 roots of equ.
0
votes
0answers
76 views

Solve Always with Assumptions

How can I use the Solve Always function imposing some assumption on the parameter space of the symbolic variables? Thanks!
1
vote
2answers
162 views

Code for Newton's Method [closed]

I'm trying to write a program for finding the root of f(x)=e^x+sin(x)-4 by Newton's Method but I'm instructed to not use the built in function and write the code from scratch. I'm pretty new to this ...
0
votes
1answer
74 views

System cannot be solved with methods available

I'm trying to solve the following equation, but the command Solve hasn't been successful so far. Any ideas? ...
2
votes
0answers
48 views

speeding up Solve(ing) the Diophantine equation

Trying to solve the Diophantine equation (or variation?) using Solve in order to generate some chemical formulas. I need to generate all possible solutions. The ...
7
votes
2answers
228 views

How to locate the position of a periodic orbit

These are the equations of the dynamical system ...
1
vote
1answer
92 views

Fixed points of x sin 1/x

What is the best way to find all the fixed points of f(x)=x sin 1/x? I know it has infinitely many fixed points, so there would in theory be infinitely many outputs. What can Mathematica do about ...
16
votes
2answers
296 views

How to implement Bresenham’s algorithm as a system of equations?

Bresenham's line drawing algorithm is usually implemented via loops. But in Mathematica we can take advantage of its ability to solve Diophantine equations. From educational viewpoint it is quite ...
3
votes
1answer
106 views

Numerically solve recurrence equation

I have the following recurrence equation ...
0
votes
1answer
193 views

NSolve not working [closed]

I'm sorry if this is a dumb question, but for some reason NSolve isn't working for me. Here's what I'm trying to do. ...
1
vote
3answers
207 views

Solve didn't give the right solution

I've got a pretty simple equation set here but I cannot seem to solve it correctly. ...
0
votes
1answer
119 views

Solving a system of non-linear equations with symbolic parameters

I'm in the middle of preparing my master thesis, where I need to find a closed form or a numerical solution for the system below. Solve[] and ...
1
vote
0answers
66 views

“Reduce” works fine for a non-linear system with 9 equations, but cannot solve it if 10 equations. Any ways to improve the code?

I am trying to solve a class of problems, which are basically about a solution to a system of non-linear equations subject to the constraint that some subset of solutions must be non-decreasing. I ...
1
vote
2answers
128 views

How can I illustrate the solution space of these equations in 3D?

I would like to plot the solution space $\{\theta,\varphi,\Omega\}$ of this vector equation, $$\begin{pmatrix} \sin (\theta ) \sin (\varphi ) \sin (2 \pi \Omega )-\sin (2 \theta ) \cos (\varphi ) ...
0
votes
1answer
69 views

Solve 4 equations using Solve [closed]

I'm trying to solve $4$ systems of equations with $4$ unknowns. There are some trig involved and I keep getting error "Solve::ifun: inverse functions are being used by Solve." Please help me to ...
4
votes
1answer
104 views

Inverse of parametrized ellipse area

If you parametrize an ellipse (with the center, not a focus, at the origin) as: {a Cos[t], b Sin[t]} the area traced out from the focus (not origin) for a given ...
2
votes
2answers
73 views

How to use the variables from Table in calculation

New to the site and Mathematica. I'm trying to use the finite element method to get a temperature profile. So if $q_0=f(T_0,T_1)$, $q_n=f(T_{n-1},T_n)$ and we also know that ...
1
vote
1answer
88 views

How to solve nonlinear equations involving integrals

Sorry, if this is a duplicate, I was not able to find a corresponding answer. The only question related to mine, as far as I can see it, is this one: How to solve algebra equations containing ...
2
votes
2answers
113 views

Solving coupled ODEs with NDSolve to fit experimental data

I need to fit a multi-exponential data (Intensity x Time) using a model consisting of three differential equations. I want to find the parameters that gives the best fit to the experimental data. ...
3
votes
3answers
199 views

Not getting expected result from numerical evaluation of solution given by Solve

Let $m$ be a large integer and $z\in (0,1)$. I want to find $0 < k < m$ such that $\frac{\sqrt{5-\frac{4k}{m}}-1}{2} + \frac{m-\frac{k}{2}\sqrt{5-\frac{4k}{m}}}{m^2\sqrt{5-\frac{4k}{m}}}$ is ...
3
votes
3answers
263 views

How would I write iterative code to try multiple coefficients for an equation?

So, I'm trying to solve a class of equations, and get all the solutions in a list. The general form looks like this: c == a*Sqrt[1-n] PlusMinus[b * Sqrt[n]] ...
22
votes
1answer
321 views

Fast calculation of discrete logarithms

Does Mathematica have any built-in fast algorithms for calculating discrete logarithms over $(\mathbb{Z}_p)^\times$ (the group of integers modulo $p$)? Essentially, for a fixed large prime ...
1
vote
1answer
77 views

Find where a function does not depend on one of its argument

Say I have a function $f(x,y)$ with $x$ and $y$ in some domains. How do I find the subdomain in $y$ for which $f$ does not depend on $x$. My special case one could consider as an example: I have ...
0
votes
1answer
107 views

Problem in solving a simple Laplace equation

I am trying to solve the following Laplace PDE in MMA: $$\frac{\partial^2 T}{\partial x^2}+\frac{\partial^2 T}{\partial z^2}=0$$ subject to the boundary conditions: $$\frac{\partial T}{\partial ...
1
vote
1answer
337 views

How can I use Mathematica to solve a Stefan Problem using an explicit scheme?

I would like to plot the temperature distribution for a particular case. the problem is stated in the paper, behind a paywall here, summarized as Consider a one-dimensional container of length l, ...
0
votes
1answer
33 views

Solving and replacing solution for solving again

Given some equation to solve S1=Solve[f[x,z]==g[x,z],x]//Simplify which produces something like x->xsol[z] I write ...