The graph of a sinusoidal function has a minimum point at (0,2)(0,2)left parenthesis, 0, comma, 2, right parenthesis and then has a maximum point at (3\pi,6)(3π,6)left parenthesis, 3, pi, comma, 6, right parenthesis.
Write the formula of the function, where xxx is entered in radians.