👉 In mathematics, a cofunction is a function that has its input and output as two angles formed by two intersecting lines. These are functions where the input angle is complementary to the output angle. For example, consider the function f(x) = sin(x). This function is defined for all real numbers x, but it has a cofunction relationship with itself because sin(90° - x) = cos(x).