Given that f(x) = x\(^2\) + 3x + 1, find the value of x at…