Tangent Line with Pythagorean Theorem