What is a trademark, and how is it different than a patent or copyright?

Trademarks, patents and copyrights can be confusing topics. Here's what each is used for, and how they're different from each other.