How to draw line tangent to spline in two inflection points

as in the topic.

How to attach line like it was shown on figure below.

SolidworksSketching