I've been reading two algebra textbooks from the early 1900's. Each presents an algorithm for factoring quadratic trinomials when the coefficient of the $x^2$ term does not equal one. The technique converts the problem into one that can be solved in the same manner as solving problems where the coefficient of the $x^2$ term is equal to one (i.e., find factors of $c$ that sum to $b$).
In the first example, the coefficient of the $x^2$ term is a square and its square root is exactly contained in the coefficient of the $x$ term. Here is an example:
I cannot figure out why this method works and there is no additional detail in the book or anywhere else that I've looked that describes this method.
The second method applies when the $x^2$ coefficient is not a square, or is a square but that is not contained exactly in the coefficient of the $x$ term. Here is an example:
Conceptually, I understand how this works because the factors of $b$ should contain the same factors in $a$ and $c$, so finding factors based on a $c$ term that is the product of $a$ and $c$ makes sense. However, I don't see this connection in the first example even though in any quadratic trinomial, the following should be true: $$ (Px + m)(Qx + n) = PQx^2 + (Pn + mQ)x + mn $$
As you can see, the $b$ term contains the factors $P,n,m,Q$ which are the same factors in the $a$ term and the $c$ term.
Can anyone provide a hint as to why the first example works?

