Step 1 :Given expression: \(a^{2}+a b+a x+b x\)
Step 2 :Factor out common terms: \((a + b)(a + x)\)
Step 3 :\(\boxed{(a + b)(a + x)}\)