Find the set of independent variables X that make the function y = 3cos (2x + π / 4) obtain the maximum and minimum values, and write out the maximum and minimum values respectively

Find the set of independent variables X that make the function y = 3cos (2x + π / 4) obtain the maximum and minimum values, and write out the maximum and minimum values respectively

y=3cos(2x+π/4)
The maximum is 3
When 2x + π / 4 = 2K π + π / 2, K ∈ Z
That is, when x = k π + π / 8, K ∈ Z, the maximum value is obtained
The minimum is - 3
The minimum value is obtained when 2x + π / 4 = 2K π - π / 2, K ∈ Z, that is, x = k π - 3 π / 8, K ∈ Z