where A and B are constants