问题 选择题 已知函数f(x)=x2+ax+1在x=1处取极值,则a等于( )A.5B.4C.3D.2 答案 求导函数得,f′(x)=x2+2x-a(x+1)2∵函数f(x)=x2+ax+1在x=1处取极值,∴f'(1)=0∴3-a4=0,∴a=3故选C.