I know :
"The columns of a matrix A are linearly independent if and only if the equation $$Ax=0$$ has only the trivial solution."
What if the equation has a nontrivial solution. Does this imply that the columns are linearly dependant? I have a hard time with if and only if statements.
Yes exactly, this is logic. If $p$ and $q$ are two propositions and $p$ implies $q$ is true, then the negation of $q$ implies the negation of $p$.