Matching Function With Derivative Graph