<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gradient(x, a, c):
 """ J'.G """

    return jac(x, a).T.dot(g(x, a, c))