I'm very new to physic and I'm watching this physic lecture: https://www.youtube.com/watch?v=GtOGurrUPmQ&list=PLyQSN7X0ro203puVhQsmCj9qhlFQ-As8e&index=2 at the 22:05 he talks about dimensional analysis.
there is an apple and we drop it from height h and we measure how long it takes to hit the ground which we call it t
then he says that $$ t \propto h^\alpha m^\beta g^ \gamma $$ then he talks about dimension $$[T]^1 = [L]^\alpha [M]^\beta \frac{[L]^ \gamma}{[T]^ {2\gamma}} $$ which if i understand correctly is the unit of the above statement. what i do not understand is that if my height is 3 meters then i square my height $3^2$ = 6 meters for example the unit is the same so why the alpha in the first expression goes into the unit expression(the second expression)?
the first expression is kind of an equation of the time it takes for apple drop from height h to hit the ground at time t. for example if I square my height the function just return the $f(x^2)$ to me with the same unit(the unit will never change no matter what input I give to a function) the value that the function return will change not the unit.
I found a question about this story too Dimensional Analysis with $\alpha$, $\beta$, and $\gamma$ Powers but this question do not ask the same question as I'm asking. Im asking about why you treat the unit statement as a function statement?
I mean in mathematic if you have a function f(x) and you square your x and put it into f(x) you get the same unit. The unit is not a function and the function is not a unit its a different story.
I feels like he transform a function into unit then calculate, then plug those units back into a function which seems invalid in mathematic.
Im very new to physic and I found physic world is so weird. can someone explain to me in very step by step and easy to understand with an example. Thank you.