Solving for x (multiple x's in the equation)

407 Views Asked by At

How would you solve this equation for x. Not sure where to start. Thanks in advance.

$$3.5 = (-7e12*x^4) + (-0.9259*x^3) + (7.222*x^2) + (-22.054*x) + 19.757$$

2

There are 2 best solutions below

0
On

Unless something is wrong with your typesetting(why the e's in the coefficients?), you are just solving a quartic equation. There is a long and extremely complicated formula for the exact answer, to find the roots of any quartic, you can look online to find it. Alternatively, you could just go on Wolfram Alpha and get numerical approximations(I think it will actually give you exact form too).

0
On

Numerically.

There is a quartic formula, but its unwieldy to use and not very numerically stable.

An example of a numerical method is Newton's method: if you want to find a solution of $f(x)=0$, start with a guess $x_0$ and apply the iteration

$$ x_n = x_{n-1} - \frac{f(x_{n-1})}{f'(x_{n-1})}$$

until convergence.

If $f(x) = a_N x^N + a_{N-1} x^{N-1} + \ldots + a_1 x + a_0$, $f'(x) = N a_N x^{N-1} + (N-1) a_{N-1} x^{N-2} + \ldots + 2 a_2 x + a_1$.

A lot of mathematical programming languages have functions to get the roots of a polynomial -- for example, in Matlab/Octave, there is one called "roots".