Hi! I am following the hint given in Exercise 4.5.E in Vakil's Foundations of Algebraic Geometry, but I am stuck trying to prove that if $a_1,a_2 \in Q_i$, then $a_1^2 + 2a_1 a_2 + a_2^2 \in Q_{2i}$.
What I have tried so far: We have $$a_1^2 + 2a_1 a_2 + a_2^2 \in Q_{2i} \text{ iff } (a_1^2 + 2a_1 a_2 + a_2^2)^{\deg f}/f^{2i} \in P_0.$$ I have tried expanding this using the binomial formula, but this doesn't get me anywhere (at least not at the moment) as I would like each term to be in $P_0$, however I can't see why this should be the case for any term except the first and last (i.e. the completely obvious ones). I am hoping for a very generous hint or even just a complete solution.
By the way this is not homework, or an assignment or anything like that, this is just me trying to get a better understanding of Algebraic Geometry by working through the exercises in Vakil's notes, as I find this very enlightening (both when it comes to rigour and intuition). Thanks in advance.
Added for the sake of self-containment: In this exercise we are going to show that if $S$ is a graded ring, then there is a bijection between the prime ideals of $(S_f)_{0}$ (the degree zero elements in $S$ localized at the element $f \in S$) and the homogeneous prime ideals in $S$ not containing $f$. We will avoid notation by proving the slightly stronger statement:
If $A$ is a graded ring with an invertible element $f$ of positive degree, then there is a bijection between the prime ideals of $A_0$ and the homogeneous prime ideals of $A$.
One direction is obvious (just use the inclusion $A_0 \to A$), for the other given a prime ideal $P_0$ in $A_0$, we define $P = \oplus Q_i$, where $Q_i \subset A_i$, and an element $a \in A_i$ is contained in $Q_i$ iff $a^{\deg(f)}/f^i \in P_0$. We are going to show that this is a prime ideal, and following the hints given, one of the steps in the proof of this claim is showing the above (i.e. $a_1^2 + 2a_1a_2+a_2^2\in Q_{2i}$). The entire exercise can be read on page 146 in the notes, here.