you should already know :

image.png

but referring back to the diagrams:

image.png

image.png

using the boundary conditions and law of equilibrium: