If a cubic function has a maximum value of 4 at x = 1 and a minimum value of 0 at x = 3, and the tangent function image passes through the origin, then the analytic expression of this function is obtained

If a cubic function has a maximum value of 4 at x = 1 and a minimum value of 0 at x = 3, and the tangent function image passes through the origin, then the analytic expression of this function is obtained

What is tangent function? Is it a guiding function?