Circuit Theory/Quadratic Equation Revisited

From testwiki
Revision as of 02:00, 17 April 2022 by imported>JackBot (Formatting, Special:UncategorizedPages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Quadratic Equation

The roots to the quadratic polynomial

y=ax2+bx+c

are easily derived and many people memorized them in high school:

x=b±b24ac2a.

Derivation of the Quadratic Equation

To derive this set y=0 and complete the square:

0=ax2+bx+c0=a(x2+bax+ca)0=x2+bax+(b2a)2+ca(b2a)20=(x+b2a)2+(ca(b2a)2).

Solving for x gives

0=(x+b2a)2+(ca(b2a)2)(x+b2a)2=(ca(b2a)2)=b24ac(2a)2.

Taking the square root of both sides and putting everything over a common denominator gives

x+b2a=±b24ac(2a)2x=b±b24ac2a.

Numerical Instability of the Usual Formulation of the Quadratic Equation

Middlebrook has pointed out that this is a poor expression from a numerical point of view for certain values of a, b, and c.

[Give an example here]

Middlebrook showed how a better expression can be obtained as follows. First, factor b2a out of the expression:

x=b±b24ac2a=(b2a)(1±14acb2).


Now let

Q2=acb2.

Then

x=(b2a)(1±14Q2)

A More Numerically Stable Formulation of the Negative Root

Considering just the negative square root we have

x1=(b2a)(114Q2).

Multiplying the numerator and denominator by 1+14Q2 gives

x1=(b2a)(114Q2)(1+14Q21+14Q2)=(b2a)(11+4Q21+14Q2)=2bQ2a(11+14Q2)=2b(acb2)a(11+14Q2)=2cb(11+14Q2)=cb(112+1214Q2).

By defining

F=12+1214Q2

we can write

x1=cbF.

Note that as Q0, F1.

Finding the Positive Root Using the Same Approach

Turning now to the positive square root we have

x2=(b2a)(1+14Q2)=(ba)(12+1214Q2)=bFa.

Using the two roots x1 and x2, we can factor the quadratic equation

y=ax2+bx+c=a(x2+ba+ca)=a(xx1)(xx2)=a(x+cbF)(x+bFa).

Accuracy for Low Q

For values of Q0.3 the value of F is within 10% of 1 and we may neglect it. As noted above, the approximation gets better as Q0. With this approximation the quadratic equation has a very simple factorization:

y=ax2+bx+ca(x+cb)(x+ba),

an expression that involves no messy square roots and can be written by inspection. Of course, it is necessary to check the assumption about Q being small before using the simplification. Without this simplification, F needs to be calculated and the roots are slightly more complicated.

[Explore the consequences if Q>0.5.]

Template:BookCat