haruspex said:
Choose the unit of distance such that A=1, then choose the unit of time such that, with that unit of distance, g=1.
I understand that. My point in #24 is that there are two distances given, height ##h## and width ##w##. Their ratio is important to the tipping condition. That ratio is not preserved when you set ##g/A = 1##. I think it is more correct first to consider that ##1/A = 1/(w\sqrt{1+\eta^2})## where ##\eta=h/w##.
Then choose units such that ##g/A = g/(w\sqrt{1+\eta^2}) \rightarrow~1/\sqrt{1+\eta^2}.## Of course, one could just as well have chosen the height as the unit of length instead of the width. By assuming that ##g/A ~\rightarrow~1##, you are asserting that the box has equal height and width.
I replicated your derivation and I did not pick up any errors, but I have a question. Why did you not consider the horizontal equation of motion?
One starts from ##z=A \cos(\phi)~;~~\dot z=-A \dot \phi \sin(\phi)~;~~~~\ddot z=-A \ddot \phi \sin(\phi)-A \dot \phi^2 \cos(\phi).##
Then ##m\ddot z=-\mu N=-\mu(mg+m\ddot y)##
Putting in the expression for ##\ddot y## from #18 and for ##\ddot z## from above, I get with some algebra,
##\ddot \phi \sin(\phi)(1-\mu)+\dot \phi^2 \cos(\phi)(1+\mu)=\mu g/A##
The problem is that this equation derived from the horizontal equation of motion does not give consistent results with the one derived from in #18 from the vertical equation of motion for a specific value of ##\phi##. Is something over determined?