OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Dec 01, 2021 1:47 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Poh-Shen Loh’s new method to solving quadratic equation
PostPosted: Mon Oct 18, 2021 12:04 pm 
Offline
Member
Member

Joined: Sat Mar 10, 2018 10:16 am
Posts: 232
Maybe you already heard something about this(it is more than one year old!), but if not, this may be useful for you. This new method make calculating of quadratic equations much much easier than before.

1. Edit equation to algebraic form
2. Key to success is that a=1 Fortunately if not, you just simple divide whole equation
3. Now calculate M:
Image
4. Now calculate u:
Image
5. And results are your!
Image

That’s all! No ugly big formula!

Detailed explanation from author why it works and how he found it, is on https://www.poshenloh.com/quadraticdetail/

I hope this will help you. ;)

_________________
https://github.com/Klaykap/BleskOS


Top
 Profile  
 
 Post subject: Re: Poh-Shen Loh’s new method to solving quadratic equation
PostPosted: Mon Oct 18, 2021 12:59 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3487
Well, let's work this backwards a bit. Start by substituting the equation for u into the equation for x:
Image
Image
Image
Hm. That's starting to look a bit familiar. What happens if we substitute the equation for M into the equation for x too?
Image
Image
A bit of algebra and you'll have the quadratic formula. (At least when a=1.)

I'm not sure I'd call this a new method, but it is a good demonstration of how a difficult problem can be broken down into several easier ones.


Top
 Profile  
 
 Post subject: Re: Poh-Shen Loh’s new method to solving quadratic equation
PostPosted: Mon Oct 18, 2021 1:02 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1134
Klakap wrote:
That’s all! No ugly big formula!
I beg to differ. This method is known in Germany (in only slightly different form) as the midnight formula (reason being, you should be able to recite it even if awoken at midnight with no warning). I've used this way to solve quadratics all my life, certainly before 2019. And I never understood the fascination I've seen in others with the general formula. You see, in my book of formulas, there was apparently a typo in the general formula, and it was too complicated for my taste, anyway, so I just always used the normal formula.

No, if you want a novel way without a formula, you can use al-Khwarizmi's original method. Bring the equation into the form x² + px = q. Geometrically, the left hand side is an area, so the right hand side must be an area as well. In particular, the left hand side is a square of unknown side length plus a rectangle with one known and one unknown side, and that all adds up to a known area. But we can rearrange the left hand side: If we bisect the rectangle along the side p, then we get two rectangles with side lengths x and p/2. We can paste these onto the unknown square on the right and the bottom (this will go easier if you make a picture, but I have no scanner handy and my paint skills suck). Then the resulting figure is almost a square. In fact, we would only need to add a square with side length p/2 to complete a square, and we can add to the left hand side if we also add the same to the right hand side. Then on the left we have a square with side length x + p/2, and on the right we have a known area quantity: (x + p/2)² = q + p²/4. All that is left to do is to take the root and subtract the p/2 to isolate the x. And of course, in order to get both solutions, you have to put a +- in front of the square root: x = -p/2 +- sqrt(q + p²/4).

_________________
Thou hast outraged, not insulted me, sir; but for that I ask thee not to beware of Starbuck; thou wouldst but laugh; but let Ahab beware of Ahab; beware of thyself, old man.


Top
 Profile  
 
 Post subject: Re: Poh-Shen Loh’s new method to solving quadratic equation
PostPosted: Tue Oct 19, 2021 1:16 am 
Offline
Member
Member

Joined: Sat Mar 10, 2018 10:16 am
Posts: 232
Occontrabass wrote:
I'm not sure I'd call this a new method, but it is a good demonstration of how a difficult problem can be broken down into several easier ones.

Yes, I also think this should not be called new method, new thing here is explanation how we got this. It is more intuitive than other explanations(watch video). But for me, this final three-line solution is easier to remember than whole formula.

nullplan wrote:
No, if you want a novel way without a formula, you can use al-Khwarizmi's original method.

That’s interesting thing. I did not now about this.

_________________
https://github.com/Klaykap/BleskOS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group