To solve this, you'll need to use the quadratic formula:
with ax^2+bx+c=0,
x = (-b +/- sqrt(b^2-4ac))/2a
with x^2+3x-1=0
a=1, b=3, c= -1
x = (-b +/- sqrt(b^2-4ac))/2a
x = (-3 +/- sqrt(3^2-4*1*-1))/2*1
x = (-3 +/- sqrt(9-(-4))/2
x = (-3 +/- sqrt(13)/2
x = (-3 + sqrt(13)/2 and x = (-3 - sqrt(13)/2