I'm working on a homework problem that asks which positive integers can be written in the form $x^2+xy+5y^2$. An example was given on how to find all positive integers that can be written as the difference of two squares (i.e. $x^2-y^2$), but it was a proof by cases that doesn't seem to carry over to more generalized versions of the form $ax^2+bx+cy^2$.
Is there any method to approaching these kinds of problems?
See this text. It describes precisely which numbers are represented by a binary quadratic form (Proposition 4.1). In your case the discriminant is $-19$, so a number $n$ is represented by your form iff $-19$ is a square modulo $4n$. You can conclude by using the Gauss reciprocity law.