f(x)=(1-x)/ax+lnx
=1/ax-1/a+lnx
f'(x)=(1/ax)'-(1/a)'+(lnx)'
=1/a(1/x)'+0+1/x
=-1/ax^2+1/x
=-1/ax^2+ax/ax^2
=(ax-1)/ax^2