Is there anyway to treat two variable, that are a result of expansion, as one?
To use Solve[] I can do
Clear[x, z, y, eq]
eq = Expand[x (z + y)] /. x z -> xz
Solve[eq == 0, xz]
Is there anyway to solve directly like
Clear[x, z, y, eq]
eq = Expand[x (z + y)]
Solve[eq == 0, x z]
/. x -> z? Notice thatx zis a multiplication. – Kuba Jul 07 '17 at 08:28Solve[equations /. x -> xz/z, xz] /. xz -> x ztaking out the not always reliableExpand– LLlAMnYP Jul 07 '17 at 08:31xandzthe same variable, therefore I suggested that. Then one can solve forzas there is onlyzforzorx. – Kuba Jul 07 '17 at 08:35xzas a new variable, one that is different from bothxorz. – I should change my Username Jul 07 '17 at 08:38Solve[equations && var == x z, var]? – LLlAMnYP Jul 07 '17 at 08:39Solve[..., {x, var}]or such. – LLlAMnYP Jul 07 '17 at 08:44a b c - d e f == 0we have no idea whata,b, andcare, but we know that their product,a b cis equal tod e f. – LLlAMnYP Jul 07 '17 at 08:47z xwithvarwhile the linked onea / bwithk, I'd say it is close enough. But I don't have time to focus on details so I will leave the link for people judgement. – Kuba Jul 07 '17 at 09:03Solve[eq == 0, HoldPattern@Times[x, z]]works, but I don't know how stable of a solution this would be in more complex cases – glS Jul 07 '17 at 13:01