2
$\begingroup$

Newbie here. I've been trying to use Reduce to solve a rather long equation. The evaluation has been running for more than hour now, but still hasn't stopped. I've got an inkling that if I were to just "Reduce" it in terms of not a single variable, but an sub-expression in the equation, it might be shorter for Mathematica to reduce.

random example:

bm - am - pn(p(b - a) + pb - pbm - pa + pa*m) = 5b

I want to put (b - a) on one side, regardless whether it will eliminate all "b" and "a" on the other side:

5b/(m - pn(2p - pm)) = (b - a)

As you can see, "b" as "5b" is still on the other side, but still I'd like to ask Mathematica ATTEMPT to reduce it like this. Is there a built-in function for this?

Of course, if all "a" and "b", mathematically, cannot be on just one side, the form might vary vastly and the user might have to find a way to work with that. But, if it is mathematically possible, then Mathematica should be able to reduce it at least most of the time.

$\endgroup$

1 Answer 1

3
$\begingroup$
b m - a m - p n (p (b - a) + p b - p b m - p a + p a m) == 5 b

FullSimplify@Solve[% /. a -> b - x, x][[1]] /. Rule -> Equal /. x -> b - a

{-a + b == (5 b)/(m + (-2 + m) n p^2)}

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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