x∈[-pie/4,pie/6]
3x+pie/4∈[-pie/2,3pie/4]
y=sin(3x+pie/4)-1的最大值是:1-1=0.(在x=pie/2时取得)
最小值是:-1-1=-2.(在x=-pie/2时取得)