1. The problem statement, all variables and given/known data I have an equation q*(p-q). I need a function with which I could specify a p, and which would ouput a q at which q*(p-q) is maximized. For example: f(p) -> analyzes y = q*(p-q) -> outputs the q at which y reaches it's maximum (in other words, f(p) = maximum of y at a given p). 2. Relevant equations q*(p-q) 3. The attempt at a solution Tried to apply the second partial derivative test to this, but it came out inconclusive with a D = 0. It seems like I applied it where it isn't needed at all.