Let $F$ be a field and let $f(x)$ be a polynomial of degree $n \geq 1$ in $F[x]$. Let $g(x) = f\big(\frac{1}{x}\big)x^n$.
Assume $f(0) \neq 0$. Prove that $f(x)$ is irreducible over $F$ if and only if $g(x)$ is irreducible over $F$.
$\mathbf{My~Attempt:}$
Prove of if:
Assume that $f(x)$ is irreducible over $F$, WTP: $g(x)$ is irreducible over $F$.
First, notice that $F[x] = \{ a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0 ~|~ a_i \in F \text{ and for some } n \in \mathbb{N} \cup \{ 0 \} \}$.
Since, we let $f(x)$ be a polynomial of degree $n \geq 1$ in $F[x]$.
Then, $f(x) = b_n x^n + b_{n-1} x^{n-1} + \cdots + b_1 x + b_0$, for each constant coefficient $b_i \in F$.
Since, we assumed that $f(x)$ is irreducible over $F$ and we know that $f(0) \neq 0$.
Then, by defintion of irreducible, if $f(x) = h(x)j(x)$ with $h(x), j(x) \in F[x]$, then $h(x)$ or $j(x)$ is a unit in $F[x]$.
Now I don't know how to prove that $g(x) = f\big(\frac{1}{x}\big)x^n = b_n + b_{n-1} x + \cdots + b_1 x^{n-1} + b_0 x^n$ whhere $g(x) \in F[x]$ is irreducible.
Also, I have no idea only how to prove the only if which assume $g(x)$ is irreducible over $F$ and prove $f(x)$ is irreducible over $F$.