To check if \(1\) and \(3\) are roots, substitute each into the equation:
For \(x=1\), \(1^2 - 3 \cdot 1 + 2 = 1 - 3 + 2 = 0\). So \(1\) is a root.
For \(x=3\), \(3^2 - 3 \cdot 3 + 2 = 9 - 9 + 2 = 2 \neq 0\). So \(3\) is not a root
A quadratic equation may have no real solution. For example, \(x^2 =-1\) has no real solution because the square of a real number cannot be negative.
Solving by Factorization
To solve a quadratic equation of the form \( ax^2 + bx + c = 0 \) with \( a \neq 0 \), we can leverage our understanding of solving linear equations. The key idea is to transform the quadratic equation into a product of linear factors using factorization. This allows us to convert the problem into solving simpler linear equations, which we already know how to handle.
Suppose \(ax^2 + bx + c = 0\), where \(a \neq 0\).$$\begin{aligned}ax^2 + bx + c &= 0 \\
\therefore x^2 + \frac{b}{a}x + \frac{c}{a} &= 0 \quad \text{(divide each term by \(a\), since \(a \neq 0\))} \\
\therefore x^2 + \frac{b}{a}x + \left(\frac{b}{2a}\right)^2 - \left(\frac{b}{2a}\right)^2 + \frac{c}{a} &= 0 \quad \text{(complete the square)} \\
\therefore \left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a^2} &= 0 \quad \text{(simplify)} \\
\therefore \left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a^2} &= 0 \quad \text{(where \(\Delta = b^2 - 4ac\))}.\end{aligned}$$Now, consider the cases based on the discriminant \(\Delta\):
Case \(\Delta \geq 0\): Since \(\frac{\Delta}{4a^2} \geq 0\), a real square root exists.$$\begin{aligned}\left(x + \frac{b}{2a}\right)^2 - \left(\sqrt{\frac{\Delta}{4a^2}}\right)^2 &= 0 \\
\therefore \left(x + \frac{b}{2a} - \sqrt{\frac{\Delta}{4a^2}}\right) \left(x + \frac{b}{2a} + \sqrt{\frac{\Delta}{4a^2}}\right) &= 0 \quad \text{(difference of squares)}.\end{aligned}$$Applying the null factor law:$$x + \frac{b}{2a} - \sqrt{\frac{\Delta}{4a^2}} = 0 \quad \text{or} \quad x + \frac{b}{2a} + \sqrt{\frac{\Delta}{4a^2}} = 0.$$Solving these linear equations:$$x = -\frac{b}{2a} + \sqrt{\frac{\Delta}{4a^2}} \quad \text{or} \quad x = -\frac{b}{2a} - \sqrt{\frac{\Delta}{4a^2}}.$$Simplifying:$$x = \frac{-b \pm \sqrt{\Delta}}{2a}.$$
If \(\Delta > 0\), there are two distinct real roots.
If \(\Delta = 0\), there is one real root (double root): \(x = -\frac{b}{2a}\).
Case \(\Delta < 0\): Then \(\frac{\Delta}{4a^2} < 0\), so$$\left(x + \frac{b}{2a}\right)^2 = \frac{\Delta}{4a^2} < 0.$$Since the square of a real number is non-negative, there are no real solutions.