Finding Derivatives of Complicated Functions According to Feynman

Dass Bass
8 min readNov 25, 2020

Image by Gerd Altmann from Pixabay.

Richard Feynman was an American theoretical physicist and co-recipient of the 1965 Nobel Prize in Physics (together with the American physicist Julian Schwinger and the Japanese physicist Shinichiro Tomonaga). He is one of the best-known scientists in the world. According to Wikipedia, “in a 1999 poll of 130 leading physicists worldwide by the British journal Physics World, he was ranked as one of the ten greatest physicists of all time”.

Figure 1: Feynman in 1965 speaking at a seminar at CERN after winning that year’s Nobel Prize (source).

https://www.videoparentingcourse.com/sites/files/ajax-fc-midtjylland-OAsdjb.html
https://www.videoparentingcourse.com/sites/files/ajax-fc-midtjylland-OAsdjb1.html
https://www.videoparentingcourse.com/sites/files/ajax-fc-midtjylland-OAsdjb2.html
https://www.videoparentingcourse.com/sites/files/so-sehen-sie-ba-v-sa-im-id.html
https://www.videoparentingcourse.com/sites/files/V-Ajax-v-Midtjylland-de-pas.html
https://www.arbejdsgiverne.dk/nvc/match-foot-lens-nantes.html
https://www.arbejdsgiverne.dk/nvc/match-foot-lens-nantes1.html
https://www.arbejdsgiverne.dk/nvc/match-foot-lens-nantes2.html
https://www.arbejdsgiverne.dk/nvc/muen-fc-salz-hansi-flick-leon.html
https://www.arbejdsgiverne.dk/nvc/muen-fc-salz-hansi-flick-leon1.html
https://www.arbejdsgiverne.dk/nvc/muen-fc-salz-hansi-flick-leon2.html
http://www.gometrotowing.com/mmx/Inter-Real-Madrid-in-diretta.html
http://www.gometrotowing.com/mmx/Inter-Real-Madrid-in-diretta1.html
http://www.gometrotowing.com/mmx/Inter-Real-Madrid-in-diretta2.html
http://www.gometrotowing.com/mmx/news-city-v-olym-tv-chann.html
http://www.gometrotowing.com/mmx/news-city-v-olym-tv-chann1.html
http://www.gometrotowing.com/mmx/news-city-v-olym-tv-chann2.html
http://www.gometrotowing.com/mmx/Liver-v-Atla-tv-0.html
http://www.gometrotowing.com/mmx/Liver-v-Atla-tv-01.html
https://www.videoparentingcourse.com/sites/webform/Liver-v-Atla-tv-02.html
https://www.videoparentingcourse.com/sites/webform/Liver-v-Atla-tv-03.html
https://www.arbejdsgiverne.dk/nvc/Liver-v-Atla-tv-04.html
https://www.arbejdsgiverne.dk/nvc/Liver-v-Atla-tv-05.html
http://www.gometrotowing.com/mmx/Sal-v-Aja.html
https://www.arbejdsgiverne.dk/nvc/Sal-v-Aja2.html
https://www.videoparentingcourse.com/sites/webform/Sal-v-Aja1.html
http://www.gometrotowing.com/mmx/Inter-vs-Real-Madrid-0.html
https://www.arbejdsgiverne.dk/nvc/Inter-vs-Real-Madrid-02.html
https://www.videoparentingcourse.com/sites/webform/Inter-vs-Real-Madrid-01.html
https://www.arbejdsgiverne.dk/nvc/Inter-v-Real-Madrid_06.html
https://www.arbejdsgiverne.dk/nvc/Inter-v-Real-Madrid_03.html
https://www.arbejdsgiverne.dk/nvc/Inter-v-Real-Madrid_00.html
https://www.arbejdsgiverne.dk/nvc/Ajax-v-Midtjylland-im-Liv06.html
https://www.arbejdsgiverne.dk/nvc/Ajax-v-Midtjylland-im-Liv03.html
https://www.arbejdsgiverne.dk/nvc/Ajax-v-Midtjylland-im-Liv00.html
https://www.arbejdsgiverne.dk/nvc/Liverpool-v-Atalanta-06.html
https://www.arbejdsgiverne.dk/nvc/Liverpool-v-Atalanta-03.html
https://www.arbejdsgiverne.dk/nvc/Liverpool-v-Atalanta-00.html
https://www.arbejdsgiverne.dk/nvc/Mar-v-Por-06.html
https://www.arbejdsgiverne.dk/nvc/Mar-v-Por-03.html
https://www.arbejdsgiverne.dk/nvc/Mar-v-Por-00.html
http://www.gometrotowing.com/mmx/Inter-v-Real-Madrid_07.html
http://www.gometrotowing.com/mmx/Inter-v-Real-Madrid_04.html
http://www.gometrotowing.com/mmx/Inter-v-Real-Madrid_01.html
http://www.gometrotowing.com/mmx/Ajax-v-Midtjylland-im-Liv07.html
http://www.gometrotowing.com/mmx/Ajax-v-Midtjylland-im-Liv04.html
http://www.gometrotowing.com/mmx/Ajax-v-Midtjylland-im-Liv01.html
http://www.gometrotowing.com/mmx/Liverpool-v-Atalanta-07.html
http://www.gometrotowing.com/mmx/Liverpool-v-Atalanta-04.html
http://www.gometrotowing.com/mmx/Liverpool-v-Atalanta-01.html
http://www.gometrotowing.com/mmx/Mar-v-Por-07.html
http://www.gometrotowing.com/mmx/Mar-v-Por-04.html
http://www.gometrotowing.com/mmx/Mar-v-Por-01.html
https://www.videoparentingcourse.com/sites/hub/BM-v-SA-00.html
https://www.videoparentingcourse.com/sites/hub/Inter-v-Real-Madrid_08.html
https://www.videoparentingcourse.com/sites/hub/Inter-v-Real-Madrid_05.html
https://www.videoparentingcourse.com/sites/hub/Inter-v-Real-Madrid_02.html
https://www.videoparentingcourse.com/sites/hub/Ajax-v-Midtjylland-im-Liv08.html
https://www.videoparentingcourse.com/sites/hub/Ajax-v-Midtjylland-im-Liv05.html
https://www.videoparentingcourse.com/sites/hub/Ajax-v-Midtjylland-im-Liv02.html
https://www.videoparentingcourse.com/sites/hub/Liverpool-v-Atalanta-08.html
https://www.videoparentingcourse.com/sites/hub/Liverpool-v-Atalanta-05.html
https://www.videoparentingcourse.com/sites/hub/Liverpool-v-Atalanta-02.html
https://www.videoparentingcourse.com/sites/hub/Mar-v-Por-08.html
https://www.videoparentingcourse.com/sites/hub/Mar-v-Por-05.html
https://www.videoparentingcourse.com/sites/hub/Mar-v-Por-02.html
https://www.arbejdsgiverne.dk/nvc/par-atl-mad-vs-lok-mos.html
https://www.arbejdsgiverne.dk/nvc/par-atl-mad-vs-lok-mos-directo.html
https://www.arbejdsgiverne.dk/nvc/par-atl-mad-vs-lok-mos-en-vi.html
https://www.arbejdsgiverne.dk/nvc/par-atl-mad-vs-lok-mos-en-vivo.html
https://www.arbejdsgiverne.dk/nvc/par-atl-mad-vs-lok-mos-en-vi-2020.html
http://www.gometrotowing.com/mmx/Video-inter-vs-real-uefa.html
http://www.gometrotowing.com/mmx/Video-inter-vs-real-uefa-0.html
http://www.gometrotowing.com/mmx/Video-inter-vs-real-uefa-1.html
http://www.gometrotowing.com/mmx/Video-inter-vs-real-uefa2.html
http://www.gometrotowing.com/mmx/Video-inter-vs-real-uefa3.html
http://www.gometrotowing.com/mmx/Video-marseille-porto-en-direct.html
http://www.gometrotowing.com/mmx/Video-marseille-porto-en00.html
http://www.gometrotowing.com/mmx/Video-marseille-porto-en1.html
http://www.gometrotowing.com/mmx/Video-marseille-porto-en2.html
http://www.gometrotowing.com/mmx/Video-marseille-porto-en3.html
http://www.gometrotowing.com/mmx/Vi-Bay-Mun-Red-Bull-Sal-v-en-2020.html
http://www.gometrotowing.com/mmx/Vi-Bay-Mun-Red-Bull-Sal-v-en.html
http://www.gometrotowing.com/mmx/Vi-Bay-Mun-Red-Bull-Sal-v-en-0.html
https://www.arbejdsgiverne.dk/nvc/Video-Ajax-vs-Midtjylland-Live-fk-0.html
https://www.arbejdsgiverne.dk/nvc/Video-Ajax-vs-Midtjylland-Live-fk-1.html
https://www.arbejdsgiverne.dk/nvc/Video-Ajax-vs-Midtjylland-Live-fk-2.html
https://www.arbejdsgiverne.dk/nvc/Video-Ajax-vs-Midtjylland-Live-fk-3.html
https://www.arbejdsgiverne.dk/nvc/Video-Ajax-vs-Midtjylland-Live-fk-4.html
https://www.videoparentingcourse.com/sites/fox/Bayern-Munich-Red-Salzburg-v-en.html
https://www.videoparentingcourse.com/sites/fox/Bayern-Munich-Red-Salzburg-lv.html
https://www.videoparentingcourse.com/sites/fox/Bayern-Munich-Red-Salzburg-lv.html

Feynman made several fundamental contributions to physics. These include the path integral formulation of quantum mechanics, the theory of quantum electrodynamics (developing pictorial representations describing the behavior of subatomic particles, the famous Feynman diagrams),
and the theoretical explanation of the superfluidity of liquid helium. He also pioneered the field of quantum computing, introduced the concept of nanotechnology, among many other things. Feynman was also a famous popularizer of physics.

Figure 2: An example of a Feynman diagram. Here, an electron (e⁻) and a positron (e⁺) annihilate, producing a photon γ. The photon then becomes a quark-antiquark pair and after that, the antiquark radiates a gluon g (source).

Feynman once described his view of science:

“If you expect science to give all the answers to the wonderful questions about what we are, where we’re going, what the meaning of the universe is… you could easily become disillusioned and look for a mystic answer…[W]e’re exploring, trying to find out as much as we can about the world. People [ask], “Are you looking for the ultimate physics laws?” No, I’m not. I’m just looking to find out more about the world. If it turns out there is an ultimate law which explains everything, so be it; that would be very nice to discover. If it turns out it’s like an onion, with millions of layers… then that’s the way it is. But whatever way it comes out, it’s nature, and she’s going to come out the way she is! Therefore we shouldn’t pre-decide what it is we’re going to find, except to try to find out more. If you think that you are going to get an answer to some deep philosophical question, you may be wrong — it may be that you can’t get an answer to that particular problem by finding out more about the character of nature. But I don’t look at it like that; my interest in science is to find out more about the world, and the more I find out, the better.” — Richard Feynman

Feynman Calculus Notebook

In the early 1930s, when Feynman was at Far Rockaway High School, he assembled a set of handwritten notes based on a book called Calculus for the Practical Man. At that time, it was unusual for a high school student to have a calculus instructor. The Practical Man series (by J.E. Thompson) were self-instruction books for those “who wish[ed] to obtain a practical mastery of some of the more usual and directly useful branches of the science without the aid of a teacher.” Feynman’s notes followed the book closely, and he “quite literally read Calculus for the Practical Man from cover to cover.”

As noted by Physics Today, “Feynman’s calculus notes illustrate one of the famous physicist’s defining qualities: his insatiable curiosity… When he found a subject that interested him, he was not about to wait for the right teacher to come along; he was determined to master it himself.”

Figure 3: Feynman’s notebook (source) based on J. E. Thompson’s book Calculus for the Practical Man (source).

Differentiating à la Feynman

This section follows closely this book by Feynman, Leighton, and Sands which I will henceforth call FLR. In it, Feynman describes a clever way to quickly evaluate derivatives of complicated, multi-product functions.

Derivatives of Simple Functions

The only derivatives one needs to know to understand Feynman’s algorithm (explained in the next section) are of the following type:

Equation 1: Examples of simple derivatives used in Feynman’s algorithm, described in the next section.

Derivatives of More Complicated Functions

The example in FRS, which will be used here (apart from a constant pre-factor in the first term), is given by:

Equation 2: Function to be differentiated.

Following Feynman, the first step is to repeat the two terms in f(x), each multiplied by a yet undetermined expression as follows:

Equation 3: The first step of the procedure of differentiating f(x).

Both terms contain a product of factors in the numerator and another product of factors in the denominator. For convenience, we can write this expression as:

Equation 4: Eq. 3 written in a more convenient way.

The expressions inside the brackets will be sums of functions. To obtain each term of these sums one applies the following 3-step algorithm. Consider, for example, the first factor, namely, (1+2x²). The three steps are:

  • This factor becomes the denominator of the first term inside the first of the two brackets
  • The exponent of this factor, which is 1, becomes the pre-factor of the first term inside the first bracket
  • The derivative of this factor becomes the numerator of the first term inside the first bracket

The following schematics makes the algorithm more concrete:

Equation 5: Applying the algorithm to the first factor of the first term of f(x).

Now, applying the algorithm to the second factor of the first term of f(x):

Equation 6: Applying the algorithm to the second factor of the first term.

When we apply the algorithm to all terms we obtain the derivative of f(x), namely:

Equation 7: Applying the algorithm to the full expression, the final result is obtained.

Generalizing the Algorithm

Eq. 2 is a sum of two terms, each one having the following form:

Equation 8: The form of each of the two terms in Eq. 2.

The general form of the derivative of Eq. 8 is then:

Equation 9: Generalization of Eq. 7.

Thanks for reading and see you soon! As always, constructive criticism and feedback are always welcome!

My Linkedin, personal website www.marcotavora.me, and Github have some other interesting content about mathematics and other topics such as science, history of science, machine learning, deep learning, finance, and much more! Check them out!

--

--