This question was asked in Ex 6.5,3

f(x)=-(x-1) 2 10

Abhishek Dama's image