I have been taking online classes on linear regression, and in that the instructor told that heteroscedasticity can be solved by taking log of the variables, I was not much acquainted with the intuition behind logs, but a quick google search lent me the answer that, suppose if i have log 9 with base 3 , my answer will be 2, so log tells me what power is my base(3) raised to to get the answer 9.
So how is it that when we apply log to our variables, we solve the problem of heteroscedasticity? Can someone please explain me the intuition and technical and logical thinking behind it?