Suppose I have a consumer with a utility function $U(x,y) = x^\alpha y ^{1-\alpha} $ where $a \in (0,1)$. Suppose this consumer has wealth $w$ and the prices for $x$ and $y$ are $p_x$ and $p_y$ respectively. I have already set up budget constraints, calculated demand and expenditure functions.
But now I am given another utility function $\alpha \log x + (1-\alpha) \log y$. Supposedly I can calculate the demand function for this without needing to do further calculation. I don't see how though. What property of logarithms are useful here? I know obviously the definition of a logarithm, but I haven't seen it in this context and am confused what kind of math I should apply to it to find a demand function. Is this just arithmetic? Is it calculus? What is pertinent here to solving this problem?