Step 1: Use the derivative test in a different order:
Expanding gives $f(x)=x^3-27x+26$. The cubic has a positive leading coefficient, so it rises, falls, then rises again. The local maximum is the smaller critical point.
Step 2: Critical points:
$f'(x)=3(x^2-9)$ gives $x=-3$ and $x=3$. The smaller one, $x=-3$, is the maximum.
Step 3: Dot product:
$\vec a\cdot\vec c=7x+4+3x$ evaluated properly: $\vec a\cdot\vec c=7x+(-2)(-2)+3x=10x+4$. At $x=-3$, this is $-30+4=-26$. Option D.
Final Answer:
The local maximum is at x = -3, which gives a . c = -26.
\[ \boxed{\text{(D) }-26} \]