{"id":2854,"date":"2018-01-06T13:25:05","date_gmt":"2018-01-06T13:25:05","guid":{"rendered":"http:\/\/www.raymaps.com\/?p=2854"},"modified":"2019-10-13T07:41:34","modified_gmt":"2019-10-13T07:41:34","slug":"omar-khayyams-solution-to-cubic-equations","status":"publish","type":"post","link":"https:\/\/www.raymaps.com\/index.php\/omar-khayyams-solution-to-cubic-equations\/","title":{"rendered":"Omar Khayyam&#8217;s Solution to Cubic  Equations"},"content":{"rendered":"<p>Omar Khayyam was a Muslim mathematician and poet of the 11th and 12th centuries (1048-1131). His poetic works known as Rubaiyat of Omar Khayyam were translated from Persian to English and made popular by Edward Fitzgerald in the late nineteenth century. In the field of mathematics his most valuable contribution was the solution he presented to the cubic equations using geometrical methods. Some of this was adapted from earlier works by Greeks but his compilation of the various cases and their solutions was most complete.<\/p>\n<p>Lets assume that the cubic equation also known as the third degree equation (highest power of the unknown variable) is of the form:<\/p>\n<p>x<sup>3<\/sup>+a<sup>2<\/sup>x=b<\/p>\n<p>Khayyam&#8217;s method consisted of constructing a parabola with equation&nbsp;x<sup>2<\/sup>=ay&nbsp;and a circle with center (b\/2a<sup>2<\/sup>,0) and radius&nbsp;b\/2a<sup>2<\/sup>. Then the x-coordinate of the intersection of the circle and the parabola gives the solution to the cubic equation. The root found by this method is the real and positive root since the length of a line segment cannot be negative or imaginary. These cases (negative and imaginary roots) were not discussed by Khayyam and were worked out much later by other mathematicians. The MATLAB code for this geometrical construction is given below.<\/p>\n<pre lang=\"MATLAB\">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n% Omar Khayyams Method to Find  \n% the Roots of a Cubic Equation \n%\n% Copyright RAYmaps 2017 (YA)\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\nclear all\nclose all\n\n% Plot the parabola\na =5;\nx =-5:0.01:5;\ny =(x.^2)\/a;\nplot(x,y,'linewidth',4);\nhold on\n\n% Plot the circle\nb =100;\nd =b\/(a.^2);\nr =d\/2;\nt =0:pi\/180:2*pi;\nplot(r+r*cos(t), r*sin(t),'r', 'linewidth', 4);\nhold off\naxis([-5 5 -5 5], \"square\")\ngrid on\ntitle('Khayyams Method to Solve Cubic Equations')\nxlabel('x')\nylabel('y')\n<\/pre>\n<p><a style=\"font-weight: bold; background-color: transparent;\" href=\"http:\/\/www.raymaps.com\/index.php\/omar-khayyams-solution-to-cubic-equations\/khayyam\/\" rel=\"attachment wp-att-2858\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2858 aligncenter\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/Khayyam.png\" alt=\"Omar Khayyam's Method for Solving Cubic Equations\" width=\"460\" height=\"458\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/Khayyam.png 460w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/Khayyam-150x150.png 150w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/Khayyam-300x300.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Omar Khayyam&#8217;s Method for Solving Cubic Equations<\/p>\n<p>Notes:<\/p>\n<ol>\n<li>For more on origins of geometrical methods see the following <a href=\"http:\/\/www.raymaps.com\/index.php\/al-khwarizmis-method-of-solving-equations-in-one-variable\/\">post<\/a> on Al-Khwarizmi.<\/li>\n<li>For an interactive tool to understand the method of Omar Khayyam visit the following <a href=\"https:\/\/www.geogebra.org\/m\/nbwq58f8\">page<\/a>.<\/li>\n<li>For a proof of validity of Khayyam&#8217;s method see the following <a href=\"http:\/\/www.math.cornell.edu\/~dwh\/papers\/geomsolu\/geomsolu.html\">page<\/a> on Cornell website or see selected abstract below. Please note slightly different form of the equation where the term a<sup>2<\/sup> has been replaced by a. This is just a constant term and either form works.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.raymaps.com\/index.php\/omar-khayyams-solution-to-cubic-equations\/khayyam2\/\" rel=\"attachment wp-att-2863\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2863 aligncenter\" src=\"http:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/khayyam2.png\" alt=\"Proof of Khayyam's Method from Cornell\" width=\"492\" height=\"766\" srcset=\"https:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/khayyam2.png 492w, https:\/\/www.raymaps.com\/wp-content\/uploads\/2018\/01\/khayyam2-193x300.png 193w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Omar Khayyam was a Muslim mathematician and poet of the 11th and 12th centuries (1048-1131). His poetic works known as Rubaiyat of Omar Khayyam were translated from Persian to English and made popular by Edward Fitzgerald in the late nineteenth century. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81,158,20],"tags":[167,164,165,163,166],"class_list":["post-2854","post","type-post","status-publish","format-standard","hentry","category-fundamentals","category-history-of-science","category-rand","tag-circle","tag-cubic","tag-geometrical","tag-omar-khayyam","tag-parabola"],"_links":{"self":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/comments?post=2854"}],"version-history":[{"count":11,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2854\/revisions"}],"predecessor-version":[{"id":3476,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/posts\/2854\/revisions\/3476"}],"wp:attachment":[{"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/media?parent=2854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/categories?post=2854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raymaps.com\/index.php\/wp-json\/wp\/v2\/tags?post=2854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}