"The function $h$ raises $2$ to the $x$, where $x$ is the input"
and
"The function $h$ raises $2$ to the $x$th power, where $x$ is the input"
both followape the structure of $f$ and $g$ and, despite containing a clause, sound less awkward/contrived than the alternatives.