When I have an expression in polar coordinates and I substitute the definition of $r$ and $\phi$, I get the corresponding expression in polar coordinates. I would like to go back and obtain the same expression now as a function of $r$ and $\phi$, but the code below doesn't simplify the ArcTan
as I would like:
ρ[x_, y_] := Sqrt[x^2 + y^2];
Θ[x_, y_] := ArcTan[x, y];
$Assumptions = r > 0 && r ∈ Reals, ϕ ∈ Reals;
ϕ /. r -> ρ[x, y] /. ϕ -> Θ[x, y]
% /. x -> r Cos[ϕ] /. y -> r Sin[ϕ]