input: Write a python function to solve a quadratic equation using the given function.
  assert solve_equation(1)==1
  assert solve_equation(2)==3
  assert solve_equation(3)==7
output: def solve_equation(x):
      return x**2 - x + 1