If $a, b, p$ and $q$ are positive with $a<b$ find the x-coordinate of the stationary point of the curve $y=(x-a)^p(x-b)^q$ in the domain $a<x<b$.
This question is from the chain rule chapter, so it doesn't involve the product or quotient rule. How do I do this question?