Do a simultaneous equation to determine first whether the line meet the curve or not.

Once done, you need to find if the gradient at the point of intersection is the same as the gradient of the line.

If they meet and share a common gradient, you have your tangent. If one of those two conditions are not met, the line is not a gradient.