you read some books and think hard = not plagiarism
you press a button and a machine creates a derivative work from some books = plagiarism (mostly by people who made the machine and charge you for it, maybe arguably you but that's a different question)