\begin{align*}
(pq+p-3)^2-(3pq+p+q-6)(pq+p-3)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\
=(p^2q^2+p^2+9+2p^2q-6q-6pq)-(3p^2q^2+p^2q+pq^2-6pq+3p^6q+p^2+pq-6p-9pq-3p-3q+18)+2(p^2q^2+p^2q+pq^2-7pq+p+q+2)\\
=pq^2-6pq+5p+5q-5\\
=pq(q-6)+5(p+q-1)
\end{align*}
I ran the above code in LaTeX but unfortunately the output is not coming well. The same happens when I use gather* environment.
I am attaching the screenshot for this.
I want all the "=" signs to start from left. Also I want to start each line starting with "=" from a new line which is not happening in this code.
Further I dont want each line starting with "=" to come up with a new equation number but all these are happening.
Kindly suggest me some remedies for this.
Please find the output attached.
In other words my calculation looks very worse in my paper.How to align or make it look good ?


align*insidegather*? – Apr 02 '19 at 04:35