Suppose I have the following maximization problem:
The result is a function of $a$:
I want to extract this function of $a$. I tried:
mm[a_] := Out[]
but this did not work. For example, mm returns:
What is the correct way of defining this function?