Given the function FX = 2Sin (Wx + 6 / π) (W > 0), if the shortest distance between the image of the function FX and the two adjacent intersections of the line y = √ 2 is equal to π, then= The answer is half. I want to know why

Given the function FX = 2Sin (Wx + 6 / π) (W > 0), if the shortest distance between the image of the function FX and the two adjacent intersections of the line y = √ 2 is equal to π, then= The answer is half. I want to know why

fx=2sin(wx+6/π)
We get sin (Wx + 6 / π) = √ 2 / 2
Let WX1 + 6 / π = π / 4, wx2 + 6 / π = 3 π / 4
Then x2-x1 = π
The two formulas are subtracted to get w = 1 / 2