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

learn more… | top users | synonyms (5)

1
vote
1answer
35 views

Implicit derivatives in one line ,How do I do it?

I have this little script to derive implicitly Mathematica $PrePrint = # /. {D[y_, x_, NonConstants -> {y_}] :> y'[x]} &; Example ...
0
votes
2answers
78 views

Significantly different results between Mathematica and Wolfram Alpha with large radicals and small numbers [on hold]

I have some code which involves tiny numbers being put to the power of very large numbers. The function I'm looking at is $\varphi = \omega(T) \left(1 - (1 - \epsilon)^{n_{e}(T)} \right)$ when ...
5
votes
3answers
117 views

Finding the conditions for degenerate solutions to a cubic equation

I have a cubic equation (corresponding to the band structure of a physical system) given by w in the code below. ...
0
votes
1answer
62 views
2
votes
2answers
141 views

Solving a system of weird equations

I'm trying to have Mathematica solve a system of equations for a friend's work in Computer Vision. I'm essentially going in blind to this and am not very familiar with Mathematica syntax, so would ...
0
votes
1answer
58 views

Removing imaginary and negative results from Solve

I have been trying to solve a series of equations that I know have real positive values for the unknowns (they all have real world analogues and they are not linked to a frequency domain) but despite ...
1
vote
0answers
35 views

DSolve -> no results

I am trying to solve a system of differential equations. ...
0
votes
2answers
55 views

NSolve not solving [closed]

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 ...
0
votes
0answers
167 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: ...
0
votes
0answers
46 views

Solving a system of nonlinear equtions [closed]

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 ...
3
votes
1answer
44 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 ...
0
votes
1answer
71 views

Solving non-linear ODE analytically in mathematica [closed]

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
3answers
922 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 ...
1
vote
1answer
38 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 ...
14
votes
3answers
373 views

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
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
83 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
2answers
64 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 ...
7
votes
3answers
176 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 \\ ...
10
votes
1answer
138 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, ...
1
vote
1answer
119 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
77 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
1answer
156 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: ...
2
votes
0answers
47 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
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 ...
1
vote
2answers
81 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: ...
1
vote
1answer
105 views

How to find zeros of 16th degree polynomial with coefficients which contain one symbolic parameter?

I'm trying to find eigenvalues of matrix which is 16x16. Here is a part of matrix: ...
0
votes
0answers
57 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. ...
1
vote
2answers
97 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.
2
votes
1answer
114 views

How can I find all solutions of a complicated expression in a desired interval with Mathematica?

I have an expression which is a combination of Bessel functions: ...
0
votes
3answers
70 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: ...
7
votes
6answers
438 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: ...
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
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
votes
1answer
51 views

Find a minimum value which satisfies an equation

I have to find a minimum value of "a" which makes x=-a+b+c, y=-a+b+c^2 positive where a>1, 0 ...
3
votes
1answer
104 views

Inaccurate answer for a system of equations

When I solve the following system of 6 equations by NSolve, it gives me an answer set; however this answer won't make the 2nd equation equal to zero (i.e. when I put the answers into ...
9
votes
3answers
141 views

How to find the solutions to $a+b+c+d=60$?

How can I find all the solutions to: $$a+b+c+d=60\quad (0\leq a,b,c,d\leq 30,\; a,b,c,d\in\mathbb N)$$ I've tried to use Solve[], but it says that there are more ...
0
votes
2answers
60 views

Solving two variable using two expressions each involving summation

I am trying to solve for h1 and h2 using function solve as in below code, Expression in solve has two equation each equates sum ...
0
votes
1answer
51 views

Complex Polynomial roots [closed]

I have the polynomial $p(z)=1-z^3$, I am using mathematica to get all three roots of $p$, say $a, b$ and $c$, obviously $$ 1-z^3=(z-a)(z-b)(z-c) $$ However, mathematica gives a wrong answer by saying ...
0
votes
2answers
50 views

Getting the first solution instance

How do I get Mathematica to stop a solver and give a result as soon as it finds the first solution instance? I tried this: ...
0
votes
1answer
55 views

Solve not returning anything

I have the following function: ...
0
votes
0answers
46 views

Sharp Ratio Maximization, Closed Forms

I am trying to get a closed form for the following first order conditions (n=4): Here's the nb-File. The code is as follows: ...
0
votes
1answer
41 views

Trouble in finding instances of values of variables that satisfy an inequality

Consider the following mathematical expression with complex numbers (phasor) and two variables (lambda and ia2): ...
6
votes
1answer
209 views

Solving $\frac{dx}{dt} = A \frac{ (1-x)}{(t-t^2)} - \frac{(B*x -C*x^2)}{(t-t^2 )*(t-x)}$

I would like to solve the following equation: $\frac{dx}{dt} = A \frac{ (1-x)}{(t-t^2)} - \frac{(B*x -C*x^2)}{(t-t^2 )*(t-x)}$ I have already posted it here, but still it doesn't work for me (I ...
5
votes
1answer
105 views

Closed form of two-layer recurrence

I am trying to find a closed-form expression for $A(0)$, described by the following recurrence forms, as a function of $L$ and $d$: \begin{align} A(\ell) &= 1 + 2^d A(\ell+1) + \sum_{g=0}^{d-1} ...
0
votes
0answers
67 views

Solve is too slow with this system of equations

The definitions are: ...
0
votes
1answer
84 views

Plotting level curves for 2-variable exponential equation (Lotka-Volterra) - how?

I have $$\frac{e^{(d x + b y)}}{x^c y^a}$$ Incidentally, this is the energy integral for Lotka-Volterra as given by my lecturer's notes. I would like to draw the level curves for this equation for ...