The beam is simply supported at both ends. The point load P acts downward at position a, the distributed load w acts downward over the full span, and the external moment M_0 is fixed at 0 in this simulator (kept in the formula box for clarity). Position a is automatically clamped inside the span L.
Top = beam and loads (yellow arrow = point load, cyan arrows = distributed load, triangles = supports) / middle = SFD V(x) / bottom = BMD M(x), red marker = location of M_max
For a simply supported beam of length L under a point load P at position a, a uniform distributed load w over the span, and an external moment M_0 at position b, the reactions follow from equilibrium and the internal forces are obtained section by section.
From the equilibrium of forces and moments, the right reaction R_B and the left reaction R_A:
$$R_B = \frac{P\,a + w\,L^2/2 + M_0}{L},\qquad R_A = P + w\,L - R_B$$Shear force V(x), where H(·) is the Heaviside step function:
$$V(x) = R_A - w\,x - P\,H(x-a)$$Bending moment M(x):
$$M(x) = R_A\,x - \frac{w\,x^2}{2} - P\,(x-a)\,H(x-a) + M_0\,H(x-b)$$Extrema of M(x) occur where dM/dx = V(x) = 0, and that point is the cross-section with the largest bending stress in design.