3. The first term of an arithmetic sequence is a non-zero real number $a$, and for each positive integer $n$, the sum of the first $n$ terms of the sequence is equal to $a n^{2}$. Then the common difference of this sequence is $\qquad$

Translate the text above into English, please keep the original text's line breaks and format, and output the translation result directly.
3. $2 a$