Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem that involves finding $e$ such that $\left( g-e \right)^2=g$. Maxima tells me that $e=g \pm \sqrt{g}$, but I can't work on that equation to get this result. Actually, I can't go past $2ge - e^2 = g^2 - g$. Can someone show me the algebraic steps to get that result?

share|cite|improve this question
Hint: note that $(g -e)^2 = (-(g-e))^2.$ – Ian Mateus Oct 14 '12 at 22:30
Don't expand it, square root. – wj32 Oct 14 '12 at 22:31
up vote 6 down vote accepted

We have $(g-e)^2 = g$. Taking square roots, $(g-e) = \pm \sqrt{g}$. Rearranging terms gives $ e = g \pm \sqrt{g}$.

Don't expand the left side; this makes it more difficult.

share|cite|improve this answer
Oh, I let that slip. Too much math does that to your brain. Thanks everyone. – GuiRitter Oct 15 '12 at 0:56
Not expanding the right side is the easy part; it's the left side that you need to guard against expanding. – jwodder Oct 15 '12 at 1:48
@Jwodder: corrected – Ganesh Oct 15 '12 at 4:57

If $(g-e)^2=g$, then either $g-e=\sqrt g$, or $g-e=-\sqrt g$. Now solve these equations for $e$ to get the two possibilities.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.