For the second one, the only if is clear from $f(x)g(x)=1$ by comparing coefficients of the terms of degree zero. For the if just do long division for series (remember that it is like long division for polynomials but organizing the terms by increasing degrees).

For the first one, for the if part, consider a large power of $a_0^{-1}f(x)$.

For the only if it is clear $a_0$ is going to be a unit by comparing coefficients in $f(x)g(x)=1$.

For the only if part we can assume $a_0=1$ (by considering $a_0^{-1}f(x)$) to have to write less. We use induction in the number of terms. If $B$ is a nilpotent term and $f(x)$ is a unit then $f(x)-B$ is also a unit.

Begin from polynomials of at most degree one (we can always assume the inverse with the same number of terms by adding if necessary terms with zero coefficients). $f(x)=1+a_1x+a_2x^2+...+a_nx^n$ and $g(x)=1+b_1x+b_2x^2+...+b_nx^n$. From $f(x)g(x)=1$ you can solve, comparing coefficients, for the coefficients of $g$.

For example, $b_1+a_1=0$. Then $b_1=-a_1$. But then $0=b_1a_1+a_2+b_2=-a_1^2$. So, $a_1$ is nilpotent. ...