Question: why did tywin sentence tyrion to death?
Answer: Because Tyrion is a dwarf and is a shame for Lannisters. Because Lord Tywin did like (or love) Shae and he wanted to get rid from Tyrion.