Differentiation of y = ax type