Is the cookbook copyright or invention? Is cooking an invention?

It is an invention, not a copyright.

Cooking recipes are a method, a technological invention, and only inventions can be patented.

Copyright generally refers to the development of a book, a TV play (movie), a song, a painting and a software.