※This is different from "desu" and "deshita". Those are polite. You use them with people you do not know well. You also use them with people older than you. "Da" is casual. You use it with friends and family. Using "da" in polite talk can sound rude.
※Watch out: Do not add "da" to i-adjectives. For example, saying "takai da" is wrong. I-adjectives already mean "is [adjective]". Just say "takai" for "is expensive".
※Don't use this when asking a question. For example, say "元気なの?" not "元気だの?". You cannot drop だ in the middle of a sentence. You also cannot drop it in the past tense.
※Use this when you want to state a fact strongly. It sounds like you are very sure. Men use it more often when speaking. In books, it is a normal way to end sentences.
Contrasts with (1)
〜い / 〜かったThis is the basic form of an い-adjective. It describes a quality of something. You use it for present or past qualities.
Less formal alternatives (1)
〜です / 〜でしたThis word means 'is' or 'am'. It connects two things. It makes your sentence polite.