Now, they want us to find the optimal x4 value (I have about 8 x variables here) to maximize the function. I know if I was doing this on paper, I'd be taking partial derivatives. I'm just lost on how to get started and then what to do in Stata. Can anyone tell me how to get this started? Please and thank you!