是 y = |2x+6| + |x-1| - 4|x+1|
当 x < -3 时,y = -(2x+6)-(x-1)+4(x+1) = x-1 < -4 ;
当 -3 ≤ x < -1 时,y = (2x+6)-(x-1)+4(x+1) = 5x + 11 < 6 ;
当 -1 ≤ x < 1 时,y = (2x+6)-(x-1)-4(x+1) = -3x+3 ≤ 6 ;
当 x > 1 时,y = (2x+6)+(x-1)-4(x+1) = -x+1 < 0 ;
综上可得,当 x = -1 时,函数有最大值 6 .