What is the difference between a copyright and a patent or trade secret?

Copyrights protect expression. Patents protect inventions. Trade secrets protect commercially valuable ideas and information that are kept secret. A copyright may protect the expression of an idea, but it does not protect the idea itself. For that, recourse must be had, if at all, to patent, trade secret or unfair competition laws.