For the first part draw the graph of sinx, draw the line segment joining the origin to the point (p/2, 1) and draw the line y=x.
For the second part draw the graph of tanx and draw straight line segments joining the origin to the points (a, tana) and (b, tanb).