In US you would argue fair use while the book publisher would argue that you infringed their copyright by harming the market for that book. Once you scan the book, you no longer have any need to buy it, thus they loose an extra sale. Of course, practically speaking, as long as you don't go around selling your newly scanned copy of said book to all of your classmates, you shouldn't run into any problems.