In Example 2, everything was fine, what I was doing matched perfectly with the book until the part "Setting this equal to zero gives *equation*". How is this? The expression on the left has no p, how can it have a p on the right? If the derivative dS/dx is set to 0 how is an x on the right, at the other side of =? I understand the rest. It's just that I don't see how one expression results in the other. That's all. Thank you.
P.S: Sorry if images are annoying, english is not my first language, so this way it's easier for me to explain and for you to understand.
P.S: Sorry if images are annoying, english is not my first language, so this way it's easier for me to explain and for you to understand.