deflection of beam as a function of (P,L,E,I)
bending stress of beam as a function of moment.
shear stress of beam as a function of shear.
Then you need to add the two stresses together, but they almost always don't add linearly. Bending stress is varies with the height, y, within the section; ie: high at both top and bottom fibers, and zero at the mid section. Shear stress is parabolic, with its maximum at the mid section. A bit of reading will reveal what shear stress engineers usually use at the extreme fibers (it is not zero).
This is all in most books on "Mechanics of Materials".
We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling We Value Civility
• Positive and compassionate attitudes
• Patience while debating We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving