I have the following expression in Mathematica:

$$\beta^{\frac{1}{(1 - \beta)}} - \beta^{\frac{\beta}{(1 - \beta)}}$$

I want to express it as

$$\beta^{\frac{\beta}{(1 - \beta)}}\left (\beta -1 \right)$$

I tried Factor and Simplify without success.

I would appreciate any advise.

expr = b^(1/(1 - b)) - b^(b/(1 - b));

Mathematica graphics

FullSimplify[expr,ComplexityFunction -> (Count[#, Power[_, _?Negative], Infinity] &)]

Mathematica graphics

reference: advice-for-mathematica-as-mathematicians-aid

|improve this answer|||||
  • $\begingroup$ How come this only works with Negative power, even when ?Negative isn't used, when an expression with positive power clearly exists. $\endgroup$ – Feyre Jan 6 '17 at 12:50
  • $\begingroup$ Thanks. It works well, but I don't quite understand the logic behind this. I would have to read the reference that you left. $\endgroup$ – John Shin Jan 6 '17 at 13:24

You can use


where $b=\beta$.

|improve this answer|||||
  • 1
    $\begingroup$ More simply Simplify[expr /. b -> a + 1] /. a -> b - 1 $\endgroup$ – Simon Woods Jan 6 '17 at 21:53
  • $\begingroup$ @SimonWoods yeah, good catch! I just took a to be the exponent of b, but your solution does the trick too, and it's much cleaner! $\endgroup$ – AccidentalFourierTransform Jan 6 '17 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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