It is known that the function f (x) is an even function defined on R. when x is greater than 0, f (x) = x * x + 3x-1, the analytic expression of F (x) is obtained

It is known that the function f (x) is an even function defined on R. when x is greater than 0, f (x) = x * x + 3x-1, the analytic expression of F (x) is obtained

Even function, so f (x) = f (- x)
When x < 0, - x > 0
f(-x)=x^2-3x-1=f(x)
So the analytic expression
x^2+3x-1 x>0
F (x) = 0, x = 0 (even function f (0) = 0, because f (0) = f (- 0) = - f (0))
x^2-3x-1 x<0