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
70 views

How to find intersection points of linear and semi-logarithmic plots

Hopefully the title depicts what I am trying to do. Below is a figure of my calculations that is shown in logarithmic scale in the x-axis. I am trying to find a way to find the intersection point at ...
0
votes
0answers
38 views

Recycle boundary condition

I'm having the following issue that can not find a solution , by using this boundary condition u[0, t] == 2 u[1, t] that Mathematica does not understand, someone ...
0
votes
1answer
79 views

How to find roots using the bisection method [duplicate]

First I plot the function and then I try to find a domain such that I can see the curve cut through the x-axis. I do this via trial and error ...
0
votes
2answers
88 views

Free-fall air resistance problem

I´m working on a free fall problem and I got an equation with variable $k$ when the situation has air resistance. Then I compared with no air resistance equation ($-4.9$, considering t variable). So, ...
6
votes
2answers
170 views

NSolve behaving differently in V9, V10.3 and V10.4

EDIT In a very fast response from Wolfram they state that this is a known problem and give an example of it working for version 10.4.1. $Version "10.4.1 for Microsoft Windows (64-bit) (April ...
0
votes
2answers
91 views

I'm trying to solve a system of complex equations

I'm simply trying to solve a system of equations and mathematica can't do it for all values over the region of interest. I have a 3x3 matrix that has a specific parametrization and after squaring the ...
1
vote
2answers
97 views

NSolve won't act on very large powers

I noticed that NSolve isn't running properly when I have some seemingly harmless numbers in my expression. Here is a simple example: ...
0
votes
2answers
74 views

FindInstance function

I have a question concerning the FindInstance function. If I write FindInstance[c == 3, {c, l}] I obtain {{c -> 3, l -> 33/10 + (8 I)/5}} Is there any ...
4
votes
1answer
142 views

Verifying the outputs of 'Solve'

I got a solution for the equation ...
10
votes
1answer
237 views

NDEigensystem cannot solve numerically the 3D Coulomb problem, while DSolve returns the right answer

After having derived by hand the eigenvalues and eigenfunctions for the 3D and 2D hydrogen atom, I want to solve the systems numerically using Mathematica. I need to do this because my next step is to ...
-1
votes
1answer
43 views

Solve returns empty list on system of 62 linear equations with undeclared known variables

Context: I am trying to solve a set of equations generated by hand from a complicated, but not particularly strange system via Newton's Second and Third Laws, and a few constraints. All the resulting ...
6
votes
3answers
212 views

Find the number of $n$ such that $n!$ is a sum of three squares

I want to check the following theorem by using Mathematica: $\textbf{Theorem} $. $\text{The estimate}$ $\# \{n \le x:n! \text{ is a sum of three squares}\}=7x/8+O(x^{2/3})$ $\text{holds.}...
3
votes
1answer
67 views

FindInstance only satisfies half of my double inequality

FindInstance[ 298973528525.436 < 10^10*(n - k*3.32192809488736) < 298973528539.862, {n, k}, Integers ] Result is: ...
0
votes
0answers
25 views

How to select one solution of a system? [duplicate]

The system, Solve[{F[x,y]==0,G[x,y]==0},{x,y}] has to solutions {{x->x0,y->y0}} How can I choose, for example, <...
1
vote
2answers
85 views

how to find sum of variable c1+c2+c3 for expression combinations

how to find sum of variable c1 + c2 + c3 for expression combinations: ...
1
vote
1answer
224 views

Solving wave PDE

I am trying to solve the wave PDE with NDSolve. Below is the equation: ...
1
vote
1answer
89 views

Solve does not seem to work for this equation

I need to solve the following equation, for which I am using Solve as below ...
2
votes
2answers
76 views

How to Count the number of roots in the Domain from an equation

How do i Count[] the number of roots in the Domain and printout the intervals in x containing these roots. Given the function <...
1
vote
1answer
174 views

Why timing of FindRoot is almost the same even if the function is speedup significantly

This question is almost the same issue as this one. However, it seems that it didn't draw enough attention. Now I encountered the same problem. I previously make this post, I will copy the code here. ...
1
vote
2answers
343 views

Solving pure functions

I've been trying to use Solve with pure functions to receive function efinition and then use it with Map , to obtain results from mapping function to some data. Here is example ...
2
votes
1answer
53 views

best way for finding approximate root of monotonic sawtooth like function

First I will generate such kind of monotonic sawtooth like function called func ...
0
votes
1answer
36 views

How can I set a solution of NSolve into the variable [duplicate]

I am trying to solve an equation such as: NSolve[Integrate[G[x], {x, -∞, ∞}] == 1 && B > 0, B] when ...
1
vote
0answers
62 views

Reduce function with simultaneous equations and inequalities

I have some simultaneous equations that I want to solve, preferably analytically, yet I am unsure if the Reduce function is the correct route as it doesn't seem to ...
0
votes
1answer
82 views

How to plot a solution set? [duplicate]

I have two functions, let's call them $F1$ and $F2$. Both take the same three arguments: $x1, x2$ and $\epsilon$. With every $\epsilon^* \in [0,1]$, there should be either zero or one unique point $(...
1
vote
1answer
99 views

Solve the interpolating function

I would have asked how to obtain the x given the y in an interpolating function, and I found the answer from here. But another question raised. I was dealing with measurement of the spectral ...
1
vote
2answers
41 views

how do I find the unknown coefficients of coupled equations

How do I find the unknown constants $x, y, z$ interms of a and b, using Mathematica. \begin{equation} \begin{split} 1&=-x+y+z \\ 0&=y\frac{-4a}{b-\sqrt{b^2+8a^2}}+z\frac{-4a}{b+\sqrt{b^2+8a^2}...
0
votes
1answer
39 views

Expanding in terms of a function in Solve

I am almost sure Mathematica has a way to do what I am looking for. I am trying to fit a quadratic T(x) = ax^2 + bx + c to three values of the function analytically. I proceed as follows: ...
0
votes
2answers
59 views

Using result of Solve as plot parameter [closed]

Recently I have faced a problem I would appreciate it, if you helped me I have the following code in Mathematica I want to plot a function let say z * 10 * t where <...
0
votes
1answer
68 views

Solve equation in a interval

I have a particle bouncing in a rigid box, my code is this: ...
0
votes
2answers
118 views

Solve implicit system of equations

Hello everybody I try to solve this system of functions and try to plot it: x == 0.5(1.+Tanh[0.5*(x*y^2-eps1)/t] y == Tanh[(x^2*y+eps2)/t] with eps1 = 0. and ...
0
votes
0answers
45 views

Impose conditions on differential equations

This is my first post in Mathematica Stack Exchange, so thanks for your help and sorry for any rookie mistakes. I am solving the Einstein equations for two vectorial pertubations h_Alpha and v_Alpha ...
1
vote
1answer
47 views

“MemoryAllocationFailure” in DSolve

Mathematica 10.4, Windows 10, 6 GB RAM, 64 bits When I trying to solve DSolve[{v'[t] == 100 - 0.15 v[t]^2, v[0] == 30}, v[t], t] I get ...
4
votes
3answers
215 views

Solving equation

How can I solve this equation: ((a^2 - 1)*((a^2 - 1)*ArcTanh[a] - a))/(2*Sqrt[2*(a^2 - 1)^4]) == C*x I am looking a solution for $a$ in function of $x$. I tried <...
2
votes
1answer
109 views

Maximize a variable in NSolve Function

I want to solve a set of trigometric coupled equations with the NSolve funcion while at the same time trying to maximize a variable which has to be real and between ...
3
votes
3answers
186 views

Cantor Pairing Function

I'm inspecting the Cantor pairing function, that we can find on this link here. But the strange thing is that Mathematica is outputting a wrong result to me. The code below shows the strange behavior....
0
votes
0answers
39 views

Using previous outputs and equations for 3d plots

I am extremely new to Mathematica, and am trying to obtain some plots for my research work. I need to find the roots of a polynomial, and using the roots individually, I need to obtain another ...
1
vote
0answers
48 views

Working of ForAll [closed]

...
0
votes
0answers
39 views
0
votes
0answers
42 views

Hash in Eigenvalue calculation [duplicate]

When I tried to find the eigenvalue of a 5x5 matrix, I get the following ...
2
votes
1answer
128 views

Differential Equation with Numerically Integrated Boundary Conditions

I have a second order differential equation that I'd like to solve numerically, and then integrate its solution twice to get the parametric equations of a curve. The ODE is: $2 \kappa''(s)+\kappa^3(s)...
0
votes
0answers
98 views

Impose a boundary condition to a function

Background I am trying to impose a boundary condition on a function of two variables $u(x_1,x_2)$. The boundary condition is: $u(x_1,0)=A\cos(\omega x_1)$. The same function in mathematica $u(x_1,0)$...
1
vote
4answers
375 views

Equation for the line of intersection between two planes

I have two equations: 2x + y + z = 1 3x - 2y - z = 5 And I have calculated the answers on paper, which gave me $x = 1 + t$, $y = -1 + 5t$ and $z = -7t$. So my ...
0
votes
0answers
35 views

Solvability of a system of equations and inequalities

I want to know if a given system of equalities and inequalities is solvable or not. I do not need the solution, rather just about its solvability. I tried a few variations, but I believe that it can ...
0
votes
2answers
104 views

Solving recursion relation from power series

I am interested in solving differential equations in the form of power series. Let's say we have following equation: $$f^{\prime \prime} (\rho) + \left( \frac{2 e^{-k \rho}}{\rho} - \varepsilon \...
1
vote
1answer
117 views
0
votes
1answer
76 views

norm squared of imaginary function with unknown constants

Is it possible to evaluate the norm squared and expand a given function similar to this, $$ c(t)=\frac{-e^{-iat}}{2}-\bigg[\big(\frac{a-\sqrt{a^2+16b^2}}{4\sqrt{a^2+16b^2}}\big)e^{-\frac{i}{2}(a-\sqrt{...
1
vote
2answers
79 views

Finding roots of a function that includes Bessel functions [duplicate]

I'm fairly new to Mathematica so forgive any stupid mistakes. Here's my function: ...
1
vote
1answer
49 views

Select positive solution based on value of parameter

I want to select positive solutions to Solve[], but as the sign of the solutions depend on the value of some parameters/other variable, I am not sure how to do this?...
1
vote
1answer
69 views

Differential equation [closed]

How does one solve this differential equation? $$y' = \frac{x^3 + 2x^2 y - y^3}{x^3 + x^2 y}$$