To verify if the roots are correctly calculated, we'll use
Viete's relations.
Because we'll need the coefficients of
the quadratic, first, we'll write the equation in the general
form:
ax^2 + bx + c = 0
We'll
identify the coefficients a,b,c:
a =
1
b = -6
c =
8
These relations link the roots of the equation and the
coefficients of the equation, in this way:
x1 + x2 =
-b/a
The sum of the roots of the equation is the ratio of
the coefficients b and a.
x1*x2 =
c/a
The product of the roots is the ratio of the
coefficients c and a.
We'll substitute the coefficients
a,b,c and the calculated roots and we'll verify the
identities:
x1+x2 =
-(-6)/1
x1+x2 = 6
We'll
substitute x1 by 2 and x2 by 4:
2+4 = 6,
true!
x1*x2 = 8
2*4 =
8
Since both Viete's relations have been verified,
the calculated roots are valid.
x1 =
2
x2 =
4
No comments:
Post a Comment