n = 2 (slider from 0 to 10, step 1)
f(x) = x^(n)
Text1: "f(x) = " + f + ""
g(x) = If[0 ≤ x ≤ 1, f(x)]