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

wizards with all your mental esoterica. I'm a lowly peasant who never took more than high-school precal. Here is my question:

I've got an equation:

margY = (imageHeight + (2*margY))*mYRatio;

margY is on both sides of this equation. I'd like to get it on one side by itself. In a sense, taking the recursivity out of the definition of margY. Is this a mathematical chimera? Sounds like a mystical achievement. But my lowly mind sniffs a vague intuition that there is some algabraic manipulation for it, just too lowly to figure it out.

share|cite|improve this question
up vote 1 down vote accepted

You have

$$ \text{margY} = \text{imageHeight} \text{*} \text{mYRatio} + 2\text{margY}\text{*}\text{mYRatio}, $$ so

$$ \text{margY} - 2\text{margY}\text{*}\text{mYRatio}= \text{imageHeight} \text{*} \text{mYRatio} , $$ so $$ \text{margY}(1 - 2\text{*}\text{mYRatio})= \text{imageHeight} \text{*} \text{mYRatio} , $$ and thus $$ \text{margY}= \frac{\text{imageHeight} \text{*} \text{mYRatio}}{1 - 2\text{*}\text{mYRatio}} , $$ provided that mYRatio is not $1/2$.

share|cite|improve this answer
wow,very straight forward. – Colin Brogan Apr 29 '12 at 17:44
I guess I could have done that with basic algebra knowledge, didn't think it all the way through. – Colin Brogan Apr 29 '12 at 18:44

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.