Show that $\frac{1}{(-q,q)_\infty}=(q,q^2)_\infty$
I found the following proof: $\frac{1}{(-q,q)_\infty}=\frac{(1-q)(1-q^2)\cdots}{(1-q^2)(1-q^4)\cdots}=(q,q^2)_\infty$ However, this seems to lack formality since I am treating the infinite product as something that can "cancel out" infinitely. I feel like I would have to make this argument for the partial product, but this method no longer works. Is there a way to formalize what I did here?
We know the infinite product \begin{align*} (a,q)_{\infty}:=\prod_{k=0}^\infty\left(1-aq^k\right) \end{align*} is analytic in the interior of the unit disc which implies it can be expanded as convergent power series at the origin for $|q|<1$.
We show the following is valid: \begin{align*} \color{blue}{\frac{1}{(-q,q)_{\infty}}=\left(q,q^2\right)_{\infty}}\tag{1} \end{align*}
Comment:
In (2) we use $\left(1-q^{j+1}\right)\left(1+q^{j+1}\right)=\left(1-q^{2j+2}\right)$ and multiply two convergent infinite products.
In (3) we use the definition of the infinite product as limit of a sequence of finite products. This notation is admissible, since none of the factors is zero. Note, we conveniently set upper limits which is useful in the next steps.
In (4) we use one single limit instead of two limits which can be shown by recalling the $\varepsilon$ definition of the limits.
In (5) we cancel factors with even powers of $q$.