f(x)=(1/(x-1))
%typeset_mode True
f
solve(f(x)>2,x)
w=plot(f(x),-5,5, fill=2,thickness=2,fillcolor='yellow', color='darkgreen', ymin=-5, ymax=5) show(w)