I am trying to do a simple operation of manipulating an equation of multiple variables (say, $x,y,z$), so that I can get one of the these variables on the LHS and everything else on the RHS. It should be a simple operation, but I cannot find a way to do it in Mathematica (I tried exploring
Simplify but they don't seem to serve this purpose). And other posts (e.g. here) are too long/complicated to understand for my simple purposes.
Obviously the equation cannot be solved (1 equation in several variables). I just want it to be simply rearranged to be in terms of one variable on one side. For example to rearrange
x y+y^2-1+z y x-24*z+Tan[x]==x^4
so that all $z$ terms are on LHS and everything else on RHS, like:
z==(x^4-x y-y^2+1-Tan[x])/(y x-24)
I think it should be a simple operation...
UPDATE: Also, how to make this work even if the LHS is to be an expression in one variable ($z$) and not just $z$ itself. For example, if we slightly modify the above example to start with:
xy+y^2-1+(z+Cos[z]) y x-24*(z+Cos[z])+Tan[x]==x^4 and we now want it to get the result as
z+Cos[z]==(x^4-x y-y^2+1-Tan[x])/(y x-24) ? Of course, by this I imply that Mathematica will need to automatically treat
z+Cos[z] (instead of only
z) as a new variable, witout me having to tell it to do so.