n^2+3n-12=6
You asked:
MathBot Answer:
Solve by factoring:
Transform the equation such that one side is equal to zero. $$\begin{aligned} {n}^{2} + 3 n - 12 &= 6 \\ n^{2} + 3 n - 18 &= 0\end{aligned}$$
Factor the nonzero side of the equation completely. $$\begin{aligned} n^{2} + 3 n - 18 &= 0 \\ \left(n - 3\right) \left(n + 6\right) &= 0\end{aligned}$$
The product of any number and zero is zero, so the equation will hold true if either of the factors is equal to zero. Set each of the factors equal to zero and solve. $$\begin{aligned} n - 3 &= 0\\ n &= 3\end{aligned}$$ $$\begin{aligned} n + 6 &= 0\\ n &= -6\end{aligned}$$
Solve by quadratic formula:
Subtract the right hand side from the left hand side of: \[{n}^{2} + 3 n - 12 = 6\] The result is a quadratic equation: \[n^{2} + 3 n - 18 = 0\]
Given a quadratic equation \(a x^{2} + b x + c = 0\), where \(a\), \(b\), \(c\) are constants and \(a \ne 0\), the solutions are given by the quadratic formula: \[x = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a}\] In this case \(a=1\), \(b=3\), and \(c=-18\).
The discriminant is the quantity under the square root sign in the quadratic formula, and its sign determines the number of solutions to the quadratic equation when the coefficients are real. The discriminant is:\[b^{2}-4ac = 3^{2} - 4 \left(-18\right)=81 > 0\] The discriminant is greater than zero, so this quadratic equation has two real solutions.
The two solutions are: \[n = \frac{\left(-1\right) 3 + \sqrt{81}}{2 \cdot 1} = 3 \] \[n = \frac{\left(-1\right) 3 - \sqrt{81}}{2 \cdot 1} = -6 \]