Prove that if every vertex of a simple graph $G$ has degree at least $2$ then $G$ contains a cycle. (Our definition says no multiple edges and no loops allowed; also all simple graphs are finite by our definition.)
I have already proved this in a different way, but would like to try this by using the concept of the longest path.
Consider the longest path in $G$. I'm going to assume that I can pick one of the vertices on the end or beginning (preferably both). I know that each of these vertices on the end must have degree 1 because it's the longest path and I want to say that there is an edge that connects them to each other as if the edge leaving the end or the beginning connected to something else it wouldn't be the longest path. Lastly I'd like to claim that the path plus this edge is a cycle.
This method is supposed to be easier, but I find I'm confused almost every step of the way on whether each statement is true. Could someone show me how to prove this using the concept of longest path or if possible explain why my attempt works.