A cubic block with uniform density $\rho$ and side length $a$ rests on a slope, with one of its face facing directly downwards. The slop is inclined at an angle $\theta$ with the horizontal. Assume that the coefficient of friction is infinite.
The block will topple if $\theta>\pi/4$. When $\theta=\pi/4$, all reaction force of the slope concentrates at the lowest edge in contact with the slope.
Now, my question is, for a given value of $\theta$, what is the pressure at a point at the bottom of the block with a distance $x$ from the lowest edge? For $0\leq x\leq a$, the pressure $p(x)$ decreases, since a moment need to be generated by the reaction force to balance out the moment of gravity.
How can I find a formula for $p(x)$?