The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [equation-solving]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

List of answer to solve with interdependant solutions

I am solving a fairly annoying matrix equation order by order in perturbation around a small parameter. I am solving for a list of free parameter that are $\beta 1[1],\beta 0[1],\alpha 0[1], \beta m1[...
0
votes
0answers
44 views

Solving a system of linear equations with complex unknown

I am trying to solve the system of equations which is given by $ABA^*=-B$, where A is $2\times2$ matrix, $A^*$ is a conjugate transpose of $A$ and $B$ is a $2 \times 2$ unitary matrix. Entries of both ...
1
vote
1answer
81 views

How to use the roots of equations? [closed]

Can anyone explain to me how can I use the roots of an equation? Let clarify my question with one example. Suppose that I have an equation which I want to find its root: ...
0
votes
0answers
70 views

How to differentiate a function constructed through FindRoot?

I am trying to maximize a function which has as a variable another function that was solved numerically using FindRoot. My code is below.I start by defining some parameters ...
1
vote
1answer
63 views

How do I use Solve with conditional equations?

Short version: How do I have Solve handle a system of equations where some of the equations may be conditional? Simplified Problem: I am solving the following system of equations: a * b = 10^-14 b^...
0
votes
1answer
70 views

Power::infy: Infinite expression 1/0. encountered

I am trying to solve the following linear system consisting of four unknowns. ...
0
votes
0answers
58 views

InterpolatingFunction in NSolve

I'm trying to get NSolve to solve a simple system of equations. It makes use of various interpolating functions (for thermodynamic properties). I can solve the system outside of NSolve by ordering the ...
1
vote
1answer
55 views

Interpreting the solution for a nonlinear system in a matrix form

I have an issue of how to interpret the solution of the following nonlinear system in a matrix: $F=PX^{-1}AX+wL$ where $w>0$ is a scalar, $F=(F_1,F_2)$, $P=(P_1,P_2)$, and $L=(L_1,L_2)$ are all a ...
4
votes
3answers
130 views

How to find maximum/minimum in `ContourPlot`?

The ContourPlot of Sin[x^3 + y] - 2 Cos[x y]==0 has a maximum around (-1.8,-2.3), see figure ...
0
votes
1answer
73 views

Is it possible to use FindRoot with a function of two variables? [closed]

How can I use FindRoot with 2 variables function? Is there a different way to do that? For example ...
0
votes
1answer
36 views

Conditions to make unitary a given matrix

Suppose I have some symmetric matrix W = {{c[1, 1], c[1, 2], c[1, 3]}, {c[1, 2], c[2, 2],c[2, 3]}, {c[1, 3], c[2, 3], c[3, 3]}}; where the c's are complex and I ...
3
votes
1answer
47 views

Finding closed forms for various addition laws on elliptic curves, FullSimplify fails even with assumptions?

I would like to get Mathematica to do some tedious algebra for me, but I have been unsuccessful so far, and I don't know whether I am not using it correctly or whether it is simply not sophisticated ...
1
vote
1answer
176 views

How do you avoid Null in matrix? [closed]

The following matrix equation is a Lyapunov equation, $$ mA.x+ x.mA^T=-mC,$$ the matrix $mA$ is given by $$ ...
5
votes
2answers
273 views

Find multiple solutions of a nonlinear ODE

I have a nonlinear ordinary differential equation with two parameters c and R in the form of: ...
1
vote
1answer
59 views

Numerical solution of equation with free parameters

I have an equation which is not analytically solvable, thus I need to solve it numerically. But, this equation has some free parameters which I want to replace them with some numbers after solving the ...
0
votes
1answer
43 views

Reducing or solving a simple linear equation problem

I have the following equations ...
0
votes
0answers
54 views

The Solve command is not able to find a solution of a system

I have a system with large rational numbers ...
0
votes
1answer
42 views
0
votes
1answer
32 views

FindRoot with NIntegrate: either recursion depth exceeded or numerical integration converging too slowly

Trying to numerically solve an equation involving an integral, either the error Recursion depth exceeded appears (when ...
0
votes
1answer
33 views

How does Mathematica solve this 2D piecewise function from constraints?

I am interested in learning the technique(s) used to solve the following 2D piecewise equation for $x, y$ when given $z$, where $z = f(x, y)$. $\text{Given that $x \in \mathbb{Z}$, $y \in \mathbb{Z}$}...
5
votes
1answer
162 views

Solving partial differential equation involving Hilbert transform

While solving one research paper published in Physical Review Letters, I came across the following equation and I am unable to solve it. $$\frac{\partial f}{\partial t}−(\mathcal{H}(f)\left(\frac{\...
0
votes
1answer
67 views

Problems with manipulation

I am plotting geodesics on an ellipsoid. My problem is that I cannot do the manipulation, from a, b, c. From the starting point and the initial vector, the manipulation works well, but from the ...
1
vote
1answer
67 views

ListPlot3D of the results of FindRoot

I have a system of 2 simultaneous equations where i want to calculate the values of Tc and Tc which ranging with the values of two variables which are wfc and V. I tried to evaluate it by using ...
0
votes
0answers
69 views

Limiting solution space for symbolic algebra problems

I have a system of 12 quadratic equations with 12 variables (x11, x12, x21, x22, x23, x33, p1, p2, p3, ϕ, μ, τ) and several positive constants,w, q1, q2. ... > 0<...
2
votes
2answers
72 views

Vortex motion equation for flux-flow instability

I am solving the motion equation of an isolated vortex oscillation in a superconductor. I am assuming that the driving force is generated by an RF current oscillating at 1.3 GHz. The main point of ...
1
vote
2answers
104 views

Error messages for FindRoot and NIntegrate

I want to solve the following problem. First, the setup. A function $V(\varphi)$ defined as \begin{multline} V(\varphi)=\frac{\alpha-3}{4}e^{\sqrt{2\alpha}\varphi}+\frac{\alpha-5} {\gamma}e^{(\...
1
vote
2answers
40 views

NSolve cannot find solution to system of trig equations

I was making a program to convert a rotation matrix to a set of euler angles. I wanted to do this for any valid rotation order that the euler angles were made with, and I did not want to do it the ...
0
votes
1answer
59 views

Five equations to solve 6-variables question, is it possible?

I was given a task to find the value of variable a,b,c,d,e and f. But I'm not sure it is even possible, given that only 5 equations are available. Can anybody point out how to solve these: ...
0
votes
1answer
66 views

Still having problem with solving high polynomials with exponential equations simultaneously

I need to find the value of Ta and Tc for two simultaneous equations to get a numerical answer using NSolve. I have tried using FindMinimum and NMinimize and still could not solve the problem. Here is ...
1
vote
1answer
54 views

Why does Mathematica just return Hold of my Input? [closed]

Example: Solve[x^2 + a x + 1 == 0, x] Output: Hold[Solve[x^2 + a x + 1 == 0, x]] What is the problem? Any child can solve this in its head
1
vote
2answers
131 views

Solving BPV of second order nonlinear ODE through NDSolve

I'm trying to solve a 2nd order related ODE system in two region using Piecewise. BC: 1) y'[0]=0 and at y'[1.6]=0 while at 1 <...
13
votes
1answer
3k views

Has Mathematica 12 gotten worse at solving simple equations?

Mathematica used to be easily able to solve an equation like this: Reduce[Log[Sqrt[k p]/Log[k]] == 0, p] (I can easily do it myself, at least I can find the ...
4
votes
1answer
94 views

Triggering WhenEvent as a result of WhenEvent

I'm attempting to solve a dead-simple differential equation with events: ...
0
votes
0answers
54 views

Discontinuity in plotting the solution of a trig function system

I have the following system ...
0
votes
0answers
34 views

Solving equations, checking linear dependency of equations

I have the following input and try to do solve the equations for in total four unknowns. When I run the input only "solutions" for two of the four unknowns are given in the output. I am not quite sure,...
0
votes
1answer
80 views

Can not solve this question [closed]

Solve[beta*x *((1 + (1 - m)*sigma*theta ((x^(-1/2) - 1)/((1 - theta)*x^(-1/2) + theta)))) - S == 0, x] Can someone please help me, I don't know why x is not ...
0
votes
1answer
36 views

How do I plot the output of Solve as a function? [closed]

I have a system of equations (13 eq) and I want to solve for S. There are four solutions in terms of k and ...
4
votes
3answers
114 views

Tangent point coordinates when the curve is a set of points

I want to find the coordinates of the tangent point between a convex curve and a line that passes from a point with known coordinates (0,b) ("efficient portfolio" ...
3
votes
1answer
67 views

Help with solving a PDE and plotting its solution

I have trouble with solving the PDE with periodic boundary condition, which appears to be stiff somewhere, so I tried "StiffnessSwitching". But the code still doesn'...
0
votes
1answer
32 views

Plotting roots of a non polynomial function

I'd like to plot the solutions of a function f(y)=k, when f(y) is non polynomial. This is the Mathematica script I have produced so far: ...
-1
votes
1answer
58 views

Coupled PDEs: Wave and String Equations

I need to solve a system of mixed string and wave equations. Omitting some constants it looks like this: $$u_ {\text {yy}} (y, t) - u_ {\text {tt}} (y, t) = \varphi _{t}(x, y, t)$$ $$\nabla _{\{x,y\}}...
4
votes
2answers
66 views

Numerical equation solving with FindRoot and BandpassFilter

I have problems combining filtering of a data list and FindRoot. Here is an example: ...
0
votes
0answers
63 views

Solve a Differential equation analytically instead of numerically

I want to solve the differential equations (shown below in the list 'eqs') analytically instead of numerical. Using NDSolve the following code works perfectly fine but using DSolve it doensn't. I ...
4
votes
2answers
139 views

Approximate solutions to non polynomial equations

Let's assume the following symbolic equations $$E=\sqrt{p^2+m^2}+\frac{e d_1(p)}{r}+\frac{e^2d_2(p)}{r^2}$$ being $d_{i}$ some generic function of $p$. I would like to find solutions to this ...
0
votes
0answers
48 views

Problem with a plot

I have a function which has a dependency on x alone. I wanted to find the roots of this equation, so I tried plotting the equation, but I am getting the error "integer expected at position 2 in Surd[0....
0
votes
2answers
124 views

Mathematica unable to interpret equations in DSolve

I'm trying to solve a system of seven ODEs with seven conditions. Since the following approach using DSolve is yielding the same output as the input, Mathematica can't find a solution. ...
4
votes
1answer
101 views

Hat function(UnitTriangle[x]) is really applicable in Finite Element Method?

I am learning finite element method(galerkin method) for solving ode/pde. when searching this topic, I often see examples using the hat functionUnitTriangle[x] as ...
2
votes
1answer
85 views

Simultaneous Equations and Optimization

I have the following simultaneous equations. $W=G[V](s+80)+(1-G[V])114$ $V=(1-F[W])(90-s)$ where $F$ and $G$ are cumulative distribution functions of $x$ and $y$. The variables of $x$ and $y$ are ...
-1
votes
1answer
50 views

Assigning a general result from Solve to a variable [closed]

Thank you Michel, for the help. Now, I want to get the result and assign it to a variable and then make a new function. How can I do that? I was tryng this way with "First", as follow the picture, ...