∫π每天一道数学题

已知函数 f(x)=x+2ex+af(x) = \frac{x + 2}{e^x + a} 的最大值为 11,则 a=()a = (\quad)
A.12\frac{1}{2}
B.11
C.32\frac{3}{2}
D.22