I have a generic question about best practices in writing equations.
I usually don't care about braces when they're not mandatory, e.g. {x}_{i} and x_i. However, I noticed that their use changes the spacing between characters. For example, the output of P\left(x\right) is different from the output of P{\left(x\right)}, as the former adds a space between P and (x) while the latter doesn't.
Generally speaking, is there any good practice for the use of braces, from a WYSIWYM point of view? How do they affect spacing? How should they be used to tie something to something else, e.g. the function P to its argument (x)? Can they be safely omitted in {x}_{i} or should they be always used for some technical/semantic/typographic/phylosophical reason?
Also, should braces be used in combination with parentheses? For example, which of these should be used to get (a+b)(c+d)?
\begin{align}
\left(a+b\right) \left(c+d\right) \\
\left({a+b}\right) \left({c+d}\right) \\
{\left(a+b\right)} {\left(c+d\right)}
\end{align}
I haven't been able to find anything, because all search results for braces refer to \lbrace \rbrace rather than { }.
Additional question: I wrote \frac{1}{n^2} n and I noticed that I get no spacing between the 1/n² and n, while in a well-formatted equations there should be. How could more space be added, and should braces be used somewhere? I'm not asking if any \addMoreSpaceHere command exists, but if the use of braces affects spacing and how, for example \frac{1}{n^2} n and {\frac{1}{n^2}} {n}
Thank you!


\[...\]preferable to$$...$$? – Werner Apr 19 '18 at 16:35(a+b)(c+d)– egreg Apr 19 '18 at 17:17(a+\frac{b}{2})(c+d)and I have to use\left( ... \right)to extend pharenteses vertically? In this case which one should I use? – Taekwondavide Apr 19 '18 at 17:22