What you wanted to do is right: to compare the slope between (1,2) and a generic point
on the function's graph, and the slope of the tangent
line at this point given by the derivative:
, and thus the slopes are
Now use the well-known formula for the equation of a line through a point given its
slope to find both equations.