Run the multiplication forward first: (x+3)(x+5)=x2+5x+3x+15=x2+8x+15. The middle coefficient 8 is the sum 3+5, and the constant 15 is the product 3×5. Factoring runs this backward: given x2+8x+15, look for the pair with product 15 and sum 8. The pairs with product 15 are 1 and 15, and 3 and 5; only 3 and 5 add to 8.
The signs follow from the same two facts. If c is positive, both numbers have the same sign, the sign of b: x2−8x+15=(x−3)(x−5). If c is negative, the signs differ and the larger number takes the sign of b: x2+2x−15=(x+5)(x−3), since 5⋅(−3)=−15 and 5+(−3)=2.
When a=1, the leading coefficient gets mixed into the cross terms. For 3x2+10x+8, multiply a⋅c=24 and find a pair with product 24 and sum 10: 4 and 6. Split the middle term with them, 3x2+4x+6x+8, and group: x(3x+4)+2(3x+4)=(3x+4)(x+2). Using c=8 alone would look for a pair with product 8 and sum 10, and none exists.
Some trinomials do not factor over the integers at all. For x2+3x+1, no integer pair has product 1 and sum 3, and the discriminant 9−4=5 is not a perfect square. That is the signal to use the quadratic formula instead of searching longer.
Think of it like this. Factoring a trinomial is a two-clue number riddle: "Two numbers have product 15 and sum 8; what are they?" The product clue gives a short list of candidates and the sum clue picks the winner. When a=1 the product clue becomes ac, and some riddles have no whole-number answer at all.
Core idea. Reverse FOIL by finding the pair whose product is ac and whose sum is b.