The stress element must satisfy equilibrium; therefore, will write an equilibrium equation for the sum of moments about B.


Derivation of shear stress formula

Note that τH (dx dz) is the product of a stress and an area, resulting in a force term. The term dy is a moment arm distance from point B to the lower horizontal face. Therefore, τH (dx dz) dy is force times distance, resulting in a moment.