Relation between TP and MP:
Graphically, given the total product curve, MP is the slope of the tangent at any point on the TP curve. This is shown in Figure.
See that
Relation between TP and AP
Given the TP curve, AP is the slope of a ray from the origin to any point on the TP curve.