Usage patterns
図書館で本を借りるto borrow a book at the library
I borrowed three books from the library.
図書館に本を返すto return a book to the library
I returned the book I had borrowed to the library.
図書館で勉強するto study at the library
Before exams, I always study at the library.
図書館に行くto go to the library
I plan to go to the library on the weekend.