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
3answers
46 views

NSolve not solving [on hold]

I've been working on a Newton Cooling equation problem for my diff equ class and cannot get NSolve to solve this equation. I've plugged it into Wolfram Alpha and my ...
1
vote
2answers
185 views

Problems finding intersection points between line and generic function

I'm trying to find Intersection points between a line, which is given by 2 points, and a generic function (I want it to be able to handle polynomial functions, circles/ovals, lines and all ...
2
votes
1answer
105 views

Equation involving hypergeometric functions

I want to solve this equation but nor NSolve nor Solve are able to do this. ...
10
votes
1answer
117 views

Using Simplify on a consistent system returns False

Bug introduced in 8.0 and persisting through 10.1.0 or later It's late, but am I missing something here? Why should two independent equations, which together are consistent, ...
0
votes
0answers
157 views

Why does my calculation of a probability take too much time?

I am calculating the value of the following function for given argument values: ...
12
votes
3answers
280 views
+200

Solve a trig equation system

Background of the problem In the same plane, P is a fixed point, A,B,C are moving point, PA=a, PB=b, PC=c, find the maximize perimeter of △ABC. let ∠BPC=A, ∠CPA=B, ∠APB=2*Pi-A-B, then the ...
0
votes
1answer
73 views

Elements inside arrays seem to be strings rather than signed numbers

When I have code like b = Array[Subscript[be, #] &, {3, 1}] b = b /. {Subscript[be, k_] :> Subscript[-be, k] /; k > 1} I am noticing that Mathematica ...
-1
votes
0answers
68 views

Problem running code on older version of Mathematica [on hold]

I want to run these codes with Mathematica. The problem is that my version is not advanced to run them (I have Mathematica 10.0). Sorry, I was confused. I was wondering if you could try these codes ...
5
votes
2answers
243 views

When does the real part of Zeta vanish on the critical line?

This seems to be a quite a simple problem but I cannot make it work. I am trying to find all values within a given range for which the real part of the Zeta ...
4
votes
1answer
367 views

3D Plot of The Riemann Zeta Function

I am a new user and i would appreciate your help to visualize the 3D of the following function. Edit I tried this ...
0
votes
0answers
45 views

Solving a system of nonlinear equtions [on hold]

I'm trying to solve a system of nonlinear equations which consists of 12 variables and 12 equations. A solution is obtained, but with an error. FindRoot::lstol: The line search decreased the step ...
2
votes
2answers
130 views

Solving for any one variable in a formula given values for all the others

Suppose I have an equation relating a number of variables and I know the values of all but one of them. Using the equation and known values as input, is there a simple command (built-in or otherwise) ...
0
votes
1answer
342 views

How to use `FindRoot` to solve an equation containing a parameter?

I'm trying to derive some of the results of the following paper: Electrodynamics of semiconductor-coated noble metal nanoshells, JT Manassah - Physical Review A In the paper there is matrix $\mathbf ...
0
votes
1answer
100 views

In which condition releated to thee coefficients some equation has a solution

Please excuse me if the question seems to commonplace. Can Mathematica give a response to this question: In which condition related to the coefficients $c>0, \, n\geq 2, 0<p<1,\, a>c$ ...
0
votes
1answer
192 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 ...
2
votes
1answer
40 views

Using result of Solve in further calculations

I'm trying to make a code for Gauss-Legendre quadrature. First I find the roots of the polyinomial with roots[n_,x_]:=Solve[LegendreP[n, x] == 0] Then I need to ...
7
votes
3answers
171 views

How to solve for the intersection points of two ellipses?

I have a parametric equation of two ellipses as follow $\begin{cases} x=a_1 \text{sin$\theta $}+b_1 \text{cos$\theta $}+c_1 \\ y=d_1 \text{sin$\theta $}+e_1 \text{cos$\theta $}+f_1 \\ ...
18
votes
3answers
815 views

Does Mathematica have a built-in tool that allows one to operate on both sides of an equation?

Geogebra has a very neat CAS view that allows one to solve an equation step by step in the following fashion: $\quad \quad \quad \quad \quad \quad \quad \quad \quad $ You type an equation and ...
0
votes
1answer
70 views

Solving non-linear ODE analytically in mathematica [on hold]

I would like to solve the following differential equations $${dx\over dt}=\beta x-{{(C-x)^2}\over 4k} ,t\in[0, T]$$ where $\beta$,$C$ and $k$ are constant values. Also, the folowing terminal ...
21
votes
7answers
5k views

About multi-root search in Mathematica for transcendental equations

I have some questions for multiroot search for transcendental equations. Is there any clever solution to find all the roots for a transcendental equation in a specific range? Perhaps ...
1
vote
1answer
36 views

Reduce with for all and implies

I have the following question. p1 = a (1 - c + a) p2 = b (1 - c - b)/((1 - b)^2) v1 = (x^1.5 - 3*x)*p1 v2 = x*p2 I want to find x ranges which makes v1>v2 under ...
1
vote
2answers
72 views

Find all roots of a function with parabolic cylinder functions in a range of the variable

I want to find all roots of a function involving Parabolic Cylinder Functions. In what follows, I define 2 variables $\xi1$ and $\xi2$, which in turn depend on $\omega$. My function is then defined as ...
1
vote
0answers
170 views

Solve set of non-linear equations with least-squares-fitting - constrain results?

I'm trying to solve a set of functions to determine the material properties from a set of measurement values. (To set up this method I just want to fit my model with some already calculated data). My ...
0
votes
0answers
22 views

Why does `NSolve` not solve this system of equations on a bounded domain?

I have three functions $E1,E2,E3$ of $t1$ and $t2$. The expressions are slightly complicated and involve trigonometric functions. For clarity purpose, they are given at the end of the question. I ...
1
vote
2answers
59 views

What is the role of the pattern object in this implementation?

In the documentation I found a nice idiom which allows me to do model fitting with interpolating functions. I think this kind of thing is amazing and a credit to the utility of an environment like ...
1
vote
1answer
118 views

Solve a system of non-linear equations

Is there any way to get an exact solution a system of non-linear equations? The system I would like to solve is: $\quad \quad \begin{eqnarray} h_{1}x_{1}=c_{1}\\ h_{2}x_{2}=c_{2}\\ ...
1
vote
1answer
120 views

Eliminating parameter from parametric equation [closed]

In Mathematica Online I tried: Eliminate[{x == t + t^3, y == t - t^3, z == 1 + t^4}, {t}] ...
2
votes
1answer
149 views

How to properly interpret a seemingly contradictory result in Mathematica?

I have a problem with interpreting the results of my notebook outputs. It is important that I do not err with the interpretation. Here is the full input: ...
1
vote
1answer
76 views

How can I solve an equation independent of a variable? [duplicate]

Let's say I have the equation $$ ax + b = 0 $$ and I'd like to find a solution that doesn't depend on $x$, so here the solution is obviously $a=b=0$. I could solve this using ...
2
votes
0answers
46 views

Problem with plotting a function that calls FindRoot

I am having difficulties in plotting the solution of FindRoot to solve 4 variables. I defined a function and then tried tp plot it, but got an error message ...
0
votes
1answer
404 views

Trying to solve a transcendental equation involving Bessel functions

I've never used Mathematica before and am trying to numerically solve equation (12) from this paper. Ideally I'd be able to find the smallest value of $x_{n\nu}$ for $\exp(-kr\pi)$ close to 1, and ...
1
vote
2answers
79 views

Why does Mathematica not evaluate the difference recurrence using `RSolve` or `RecurrenceTable`?

Mathematica does not evaluate the following recurrence of two variables using RSolve and only echoes the input: ...
0
votes
2answers
60 views

Solve returns empty list / running forever

Update: I made a mistake before and corrected the sign in code below in case people wonder what some comments mean. Thank you for those who answered. But I should have said that this is only part of ...
20
votes
4answers
3k views

How to get intersection values from a parametric graph?

I have this graphed: ParametricPlot[{2.4*Cos[t] + 1.6*Cos[3 t/2], 2.4*Sin[t] - 1.6 Sin[3 t/2]}, {t, 0, 4*Pi}] It is a star, and the lines cross each other ...
1
vote
1answer
103 views
0
votes
0answers
55 views

Inverse Superposition

There are 4 tables that, I have written them as bellow: (m, n, s, and r are orthogonal basis. r.r=n.n=m.m=s.s=1, and m.n=n.r=...=0). a's, b's, c's and d's are coefficients and are numeric values. ...
2
votes
1answer
111 views
1
vote
2answers
95 views

Solve[ ] doesn't work with transcendental equations

How to solve x^5-sinx=0 in mathematica? I try in this way: Solve[x^5 - Sin[x] == 0, x],but t doesn't work.
1
vote
4answers
3k views

How can I use assumptions with FindRoot?

I have something like FindRoot[f[x], {x, a}] Now I want FindRoot to constrain the solutions to 0 < x < 1. How can I ...
7
votes
6answers
435 views

Finding where two parametric paths cross?

I have been looking through other parametric equations questions and am still unsure where to start with this one. I am given two functions: ...
0
votes
3answers
65 views

Problems with finding the real solutions of equation

I am trying to find real solutions of equation using Mathematica 8.0 but there is some problem I don't know how to explain. For example, for the input ...
0
votes
1answer
35 views

Unexpected ReplaceAll behavior with NSolve

I ran into some unexpected behavior using ReplaceAll with an equation of motion using NSolve (or Solve, also). First solving for the initial velocity v0: ...
1
vote
2answers
102 views

Plotting the solution of a cubic equation against a coefficient in the equation

I have to plot the solution of the following equation against the coefficient $L$. Since it's a cubic equation, I'd like to filter out the real solution first and plot that then. The equation is $L ...
0
votes
2answers
69 views

Many NSolves to interpolating function

I have an expression of the form: expr = TerribleNumericalFunction[U[p]] == SimpleFunction[p] The Simple function is a ...
2
votes
2answers
76 views

Switching between solutions of a fourth order polynomial

I am plotting the roots of a fourth-order polynomial as a function of some parameter $r$ with the following code: ...
0
votes
1answer
88 views

NDSolve issue with initial and boundary conditions

While solving the heat equation in one spatial variable $u_t = u_{xx} $ (x goes from 0 to L) with the initial temperature distribution $T_0 \frac{x(L-x)}{L^2}$ , and with neumann boundary conditions ...
0
votes
0answers
47 views

Finding values of a variable fitting a function and minimizing a list of expressions

I am trying to implement bootstrapping (https://en.wikipedia.org/wiki/Bootstrapping_(finance)) of CDS curve. To implement it I am trying to minimize a series of expressions so that each expression is ...
0
votes
0answers
32 views

why is NSolve giving {y,x} in place of {x,y}? [duplicate]

Why is NSolve giving an inverse set of solution? Is it a problem with my computer only? ...
2
votes
1answer
104 views

How to Solve[] for rational constants?

I am trying to solve a system equations for rational, constant coefficients: ...
1
vote
2answers
95 views

Trouble using Solve and NSolve with functions involving Erf

I have the following functions: R[k_, x_, t_] := -.5*(k - x)*(1 + Erf[-(k - x)/t]) L[k_, c_, x_, t_] := .5*c*(k - x)*(1 + Erf[(k - x)/t]) I'm interested in ...