# how to find x in the following formula

For a software project, I need to calculate some things. on of the formulas looks like:

26280 = 2 * SQRT((149,598,000,000 - x) / 1.4) + x / 10,217,588,910,387,300,000


My colegue says you can't solve the above equation (you won't be able to find x) I quite convinced you should be able to find x, the problem is, I don't know how :(

I came as far as rewriting the above into:

((26280 - x) / 20,435,177,820,774,600,000)^2 = (149,598,000,000 - x) / 1.4


but now I'm stuck.

Could anyone explain to me how to move on, in order to find x?

• Expand everything and use the quadratic equation. – Austin Mohr Apr 5 '12 at 13:19
• it's the 'expand everything' that I don't know how to do – Flipse Apr 5 '12 at 13:28
• is it true that (a/b)^2 = a^2 / b^2 ? (it's been at least 15 years since I last had math classes, and only 10 years after that I learned that I should have been paying attention) – Flipse Apr 5 '12 at 13:33
• Yes. That expression is true. – dot dot Apr 5 '12 at 13:36
• The two equations you have written are not equivalent. The two answers below address the second one, but it's not the same as the first. Because the numbers are so large, the solutions to both equations are approximately the same. – Peter Phipps Apr 5 '12 at 15:08

First, it's useful to write the expression in the standard quadratic form. For ease of reading/writing, I'm going to set $A = 20,435,177,820,744,600,00$ and $B = 149,598,000,000$.

\begin{align*} \left(\frac{26280 - x}{A}\right)^2 &= \frac{B - x}{1.4}\\ \frac{(26280 - x)^2}{A^2} &= \frac{B}{1.4} - \frac{x}{1.4}\\ \frac{26280^2 - 52560x - x^2}{A^2} &= \frac{5}{7}B - \frac{5}{7}x\\ \frac{26280^2}{A^2} - \frac{52560x}{A^2} - \frac{x^2}{A^2} &= \frac{5}{7}B - \frac{5}{7}x\\ 0 &= \frac{x^2}{A^2} + \left(\frac{52560}{A^2} - \frac{5}{7}\right)x + \frac{5}{7}B - \frac{26280^2}{A^2}. \end{align*}

You can finish this up with the quadratic formula.

EDIT: Alternatively, there is WolframAlpha.

• Is it guaranteed that both solutions of the quadratic equation will solve the original equation? – Johannes Kloos Apr 5 '12 at 13:39
• @Johannes Kloos: Yes. For example x=1 has the same solution as 2x=2 because the relation within x and the right hand of the equation is the same in both. – dot dot Apr 5 '12 at 13:42
• @dotdot: That works only because you are applying an equivalence transformation. As a counter-example, $x=-1$ has one solution, namely $-1$. $x^2 = (-1)^2 = 1$ has two, $x = 1$ and $x=-1$. – Johannes Kloos Apr 5 '12 at 13:50
• thanks! that helped me across. – Flipse Apr 5 '12 at 13:52
• As Johannes points out, you should make sure the two solutions given by the quadratic are in the domain of your original equation (the one with the square root). – Austin Mohr Apr 5 '12 at 14:06

As Austin Mohr said it's a quadratic equation. You must only expand. Their solutions are: -298283208976198672964919958167422500864 and 149598000000.