Factor the expression by grouping. First, the expression needs to be rewritten as $21x^{2}+ax+bx+6$. To find $a$ and $b$, set up a system to be solved.
$$a+b=23$$ $$ab=21\times 6=126$$
Since $ab$ is positive, $a$ and $b$ have the same sign. Since $a+b$ is positive, $a$ and $b$ are both positive. List all such integer pairs that give product $126$.
Rewrite $21x^{2}+23x+6$ as $\left(21x^{2}+9x\right)+\left(14x+6\right)$.
$$\left(21x^{2}+9x\right)+\left(14x+6\right)$$
Factor out $3x$ in the first and $2$ in the second group.
$$3x\left(7x+3\right)+2\left(7x+3\right)$$
Factor out common term $7x+3$ by using distributive property.
$$\left(7x+3\right)\left(3x+2\right)$$
Steps Using the Quadratic Formula
Quadratic polynomial can be factored using the transformation $ax^{2}+bx+c=a\left(x-x_{1}\right)\left(x-x_{2}\right)$, where $x_{1}$ and $x_{2}$ are the solutions of the quadratic equation $ax^{2}+bx+c=0$.
$$21x^{2}+23x+6=0$$
All equations of the form $ax^{2}+bx+c=0$ can be solved using the quadratic formula: $\frac{-b±\sqrt{b^{2}-4ac}}{2a}$. The quadratic formula gives two solutions, one when $±$ is addition and one when it is subtraction.
Now solve the equation $x=\frac{-23±5}{42}$ when $±$ is plus. Add $-23$ to $5$.
$$x=-\frac{18}{42}$$
Reduce the fraction $\frac{-18}{42}$ to lowest terms by extracting and canceling out $6$.
$$x=-\frac{3}{7}$$
Now solve the equation $x=\frac{-23±5}{42}$ when $±$ is minus. Subtract $5$ from $-23$.
$$x=-\frac{28}{42}$$
Reduce the fraction $\frac{-28}{42}$ to lowest terms by extracting and canceling out $14$.
$$x=-\frac{2}{3}$$
Factor the original expression using $ax^{2}+bx+c=a\left(x-x_{1}\right)\left(x-x_{2}\right)$. Substitute $-\frac{3}{7}$ for $x_{1}$ and $-\frac{2}{3}$ for $x_{2}$.
Multiply $\frac{7x+3}{7}$ times $\frac{3x+2}{3}$ by multiplying numerator times numerator and denominator times denominator. Then reduce the fraction to lowest terms if possible.