Select one answer per question. Submit to see the explanation.
theta = Parameter('theta') expr = 2 * theta ** 2 + theta derivative = expr.gradient(theta)