A (X 2) + B (X) + C 0: Quadratic Equation (2nd Degree Polynomial) Solution

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 6

Quadratic Equation (2nd Degree Polynomial) Solution:

a*(x^2) + b*(x) + c = 0
Input Equation Coefficients:
a=
2.0000
b=
8.0000
c=
-10.0000
Roots of Quadratic Equation:
x1 =
= (-b+SQRT(b^2-4*a*c))/(2*a)
1.0000
x2 =
= (-b-SQRT(b^2-4*a*c))/(2*a)
-5.0000

Cubic Equation (3rd Degree Polynomial) Solution:


a*(x^3) + b*(x^2) + c*(x) + d = 0
Input Equation Coefficients:
a=
2.0000
b=
-4.0000
c=
-22.0000
d=
24.0000
Solve Cubic Equation:
f=
-12.333
g=
4.074
h=
-65.333
i=
8.336
j=
2.028
k=
1.818
L=
-2.028
M=
0.822
N=
0.986
P=
0.667
R=
N.A.
S=
N.A.
T=
N.A.
U=
N.A.

= ((3*c/a)-(b^2/a^2))/3
= ((2*b^3/a^3)-(9*b*c/a^2)+(27*d/a))/27
= (g^2/4)+(f^3/27)
= SQRT((g^2/4)-h)
= i^(1/3)
= ACOS(-(g/(2*i)))
= j*(-1)
= COS(k/3)
= SQRT(3)*SIN(k/3)
= (b/(3*a))*(-1)
= -(g/2)+SQRT(h)
= R^(1/3)
= -(g/2)-SQRT(h)
= T^(1/3)

Roots of Cubic Equation:


Case #1: If h > 0
Case #2: If h <= 0
x1 =
x2 =
x3 =

N.A.

4.0000

N.A.

-3.0000

N.A.

1.0000

Case #3: If f, g, h = 0
= 2*j*COS(k/3)-(b/(3*a))
N.A.
= L*(M+N)+P
N.A.
= L*(M-N)+P
N.A.

Quartic Equation (4th Degree Polynomial) Solution:


a*(x^4) + b*(x^3) + c*(x^2) + d*(x) + e = 0
Input Equation Coefficients:
a=
3.0000
b=
6.0000
c=
-123.0000
d=
-126.0000
e=
1080.0000

Modified Coefficients (dividing each by 'a'):


ao =
= a/a
1.0000
bo =
= b/a
2.0000
co =
= c/a
-41.0000
do =
= d/a
-42.0000
eo =
= e/a
360.0000

f=
= co-(3*bo^2/8)
-42.500
g=
= do+(bo^3/8)-(bo*co/2)
0.000
h=
= eo-(3*bo^4/256)+(bo^2*co/16)-(bo*do/4)
370.563
Substitute 'f', 'g', and 'h' into following Cubic Equation:
(y^3) + (f/2)*(y^2) + ((f^2-4*h)/16*y - g^2/64 = 0
a1 =
=1
1.000
b1 =
= (f/2)
-21.250
c1 =
= ((f^2-4*h)/16
20.250
d1 =
= -(g^2/64)
0.000
Solve Cubic Equation:
f1 =
= ((3*c1/a1)-(b1^2/a1^2))/3
-130.271
g1 =
= ((2*b1^3/a1^3)-(9*b1*c1/a1^2)+(27*d1/a1))/27
-567.355
h1 =
= (g1^2/4)+(f1^3/27)
-1406.979
i=
= SQRT((g1^2/4)-h1)
286.147
j=
= i^(1/3)
6.590
k=
= ACOS(-(g1/(2*i)))
0.131
L=
= j*(-1)
-6.590
M=
= COS(k/3)
0.999
N=
= SQRT(3)*SIN(k/3)
0.076
P=
= (b1/(3*a1))*(-1)
7.083
R=
= -(g1/2)+SQRT(h1)
N.A.
S=
= R^(1/3)
N.A.
T=
= -(g1/2)-SQRT(h1)
N.A.
U=
= T^(1/3)
N.A.
Roots of Cubic Equation:
Case #1: If h1 > 0
Case #2: If h1 <= 0
Case #3: If f1, g1, h1 = 0
y1 =
= 2*j*COS(k/3)-(b/(3*a1))
N.A.
20.2500
N.A.
y2 =
= L*(M+N)+P
N.A.
0.0000
N.A.
y3 =
= L*(M-N)+P
N.A.
1.0000
N.A.
p=
q=
r=
s=

4.5000
1.0000
0.0000
0.5000

Roots of Quartic Equation:


x1 =
5.0000
x2 =
3.0000
x3 =
-4.0000

= SQRT(y1)
= SQRT(y3)
= -g/(8*p*q)
= b/(4*a)

= p+q+r-s
= p-q-r-s
= -p+q-r-s

x4 =

-6.0000

= -p-q+r-s

You might also like