f(x) = -1/x, x ≤ -1
ax^2 +b , -1<x<1
1/x , x≥ 1
since it is continuous f(1- ɛ)=f(1+ ɛ) where ɛ is a very small positive number.
so a+b = 1
since it is derivable f'(1- ɛ)=f'(1+ ɛ) where ɛ is a very small positive number.
2ax = -1/x^2 (at x=1)
a=-1/2
hence, b=3/2
---
"You don't have to believe in God, but you should believe in The Book." -Paul Erdős