Recall that the formula for the tangent line of a curve at a point is given by
.
This is, indeed, a line with slope passing though .
Since we are looking for the tangent line(s) with slope , first we solve .
By the chain rule with , the derivative of can be obtained by
.
Then, if and only if
.
In the case of , we get , therefore the corresponding tangent line is
.
On the other hand, for , we have , so that
.
Therefore, the tangent lines of the given function with slope are