tangent line implementation
functional normal lines