Example:
The fraction $\frac{4n+7}{3n+5}$ is irreducible for all $n \in \mathbb{N}$, because $3(4n+7) - 4(3n+5) = 1$
and if $d$ is divisor of $4n+7$ and $3n+5$, it divides $1$, so $d=1$.
I want to know if there is some general method of finding $x, y \in \mathbb{Z}$,
so that $$x(an+b) + y(cn+d) = 1$$ when $(an+b, cn+d) = 1$, instead of trial and error,
or some quicker and easier way (for not so pretty fractions) for determining whether it is irreducible.
Before answering your question, I will just give the following two facts:
Let $\gcd(a,b) = g$
The proof of these two is elementary. In fact, it can be found somewhere here in this website.
Now, Euclidean Algorithm is used to find $g$ in $(1)$. How to apply this algorithm? you may refer to this website for more information.
In our case, the fraction is irreducible if and only if the greatest common divisor $g$ of the numerator and denominator is $1$. We can use the Euclidean Algorithm to find it, thought, and check.
Why do we need (2)?, Okay, this fact might be used as a shortcut to find $g$ in many occasions. For example, if I am given the following fraction and asked to prove it is irreducible: $$\frac{3n+4}{18n+25}$$ then I can use this shortcut as follows: $$\gcd(3n+4,18n+25) = \gcd(3n+4, (18n+25) -6(3n+4)) = \gcd(3n+4,1) = 1$$