As native English speaker, both sentences convey the same meaning: here is a field ${\mathbb F}_q$ and consider (the) two elements $\alpha$ and $\beta$ in there. Another poster has said that "the" conveys the intent that there are only two elements: this isn't true because you introduce the elements by noting that there are $q$ elements in the field. It does however suggest that you want to emphasize these two elements for a reason.
"the" is used in mathematical English in the same way as in non-mathematical English -- which is perhaps a little unfortunate as the way English uses articles (the words "a", "an" and "the") is not always easy to understand. However:
"the" can be used to indicate a specific instance of something: "let us consider the unique (up to isomorphism) field of...". Here, we cannot drop "the" because we're talking about an object of some kind, so we need an article to introduce it. We can't use "a(n)" because it's unique, and "a(n)" implies there is more than one
"the" can be used to introduce plural objects: "here are the elements of the ring...". "A(n)" introduces singular objects, or count nouns (e.g. "a crowd of people", "a gaggle of geese")
we can drop the article ("a", "an" or "the") when talking about an abstract quantity, which reinforces that it is abstract: "We have elements that together form a ring" is equivalent to "We have the elements that together form a ring".
In point 3, the word "the" does subtly change the meaning of the sentence, but not grammatically. It adds a little extra emphasis to the noun (here, "elements") that you might want for a specific reason.