It's a common mistake to use the informal contraction, but in formal writing, it's always best to use the full word.