
Before proceeding, let's review the sign convention used for plotting bending- moment diagrams.
A negative bending moment is defined as:

To compute maximum tension bending stresses at locations having negative bending moment, the distance y used in the flexure formula is the distance from the neutral surface to the top of the beam cross section.