f(x) = If[x > 1, (2 * x)]
g(x) = If[x > 1, (2 * x), x]
h(x) = If[x ≥ 1, (2 * x) + 1, x + 2]
p(x) = If[x  <  1, x, If[1 ≤ x  <  2, (2 * x), (3 * x)]]
q(x) = If[x  <  1, 1, If[1 ≤ x  <  2, 2, 3]]
r(x) = If[0  <  x  <  1, 1, If[1 ≤ x  <  2, 2, 3]]
s(x) = If[0  <  x  <  1, 1, If[1 ≤ x  <  2, 2, If[2 ≤ x, 3]]]