Consider the functions f(x)={x+1, x≤12x+1, 1<x≤2 g(x)={x2, −1≤x<2x+2, 2≤x≤3 Range of the function f(g(x)) is