Learning Feynman's Trick for Integrals

zackyzz.github.io

267 points by Zen1th 3 days ago


analog31 - 3 days ago

I don't know if this is exactly the same as what I learned in high school as "integration by substitution."

A number of years after I finished school, I was in a new town without a job, and got hired to teach a freshman algebra course at the nearby Big Ten university. About halfway into teaching the class, I was struck by the realization that virtually every problem was solved in the same way, by recognizing the "form" of a problem and applying an algorithm appropriate for that form, drawn from the most recent chapter.

In the TFA, the natural log in the integrand was a dead give-away because it only comes from one place in the standard order of topics in calculus class.

Is this what we call intuition?

The students called this the "trick." Many of them had come from high school math under the impression that math was subjective, and was a matter of guessing the teacher's preferred trick from among the many possible.

For instance, all of the class problems involving maxima and minima involved a quadratic equation, since it was the only form with an extremum that the students had learned. Every min/max problem culminated with completing the square. I taught my students a formula that they could just memorize.

The whole affair left me with a bad taste in my mouth.

tacitusarc - 3 days ago

I just finished Mathematica by David Bessis and I wish this information was presented in the way he talks about math: using words and imagery to explain what is happening, and only using the equations to prove the words are true.

I just haven’t had to use integral calculus in so many years, I don’t recall what the symbols mean and I certainly don’t care about them. That doesn’t mean I wouldn’t find the problem domain interesting, if it was expressed as such. Instead, though, I get a strong dose of mathematical formalism disconnected from anything I can meaningfully reason about. Too bad.

pvitz - 3 days ago

When I was a student of physics and came across this paragraph in Feynman's book, I was curious if he really meant the simple technique explained in the article, a more general one (also described in the article with the integral bounds as functions of a parameter) or something else. I don't know, but this led me to read the text "Advanced Calculus" by Edwin Bidwell Wilson (1912), which includes a lot of examples and gems. If there is some young student out there who wants to go well beyond the basic techniques of calculus taught in analysis or mathematical physics courses, have a look at [0].

[0] https://archive.org/details/advancedcalculus031579mbp/mode/1...

biophysboy - 3 days ago

> So I got a great reputation for doing integrals, only because my box of tools was different from everybody else's

This is the most important lesson I learned in grad school. Methods are so important. I really think it is the core of what we call "critical thinking" - knowing how facts are made.

lordnacho - 3 days ago

My issue with both this and u-substitution is that you don't know what expression to use. There are a LOT of expressions that plausibly simplify the integral. But you have to do a bunch of algebra for each one (and not screw it up!), without really knowing whether it actually helps.

OTOH, if I'm given the expression, it's just mechanical and unrewarding.

jmyeet - 3 days ago

Back in college I stopped doing maths in second year as a major because of the way it was taught. I just hated it. Numerical methodds in particular broke me. My main problem was we never really got told how things fit together. Resources like 3blue1brown just didn't exist at that time, sadly. We just had dusty and expensive and very dry textbooks to rely on. For example, we just got through into ODEs and were told "just use e^at". We started doing contour integrals without really telling us what was going on. Honestly, things like linearity were never really taught for basic stuff like derivatives and integrals.

But I had always loved maths and went back to it much later. After having done some computer science, some concepts just made it click more for me. Like sets were a big one. Seeing functions as just a mapping between sets. Seeing functions as set elements. Seeing derivatives and integrals as simply the mapping between sets of functions.

What fascinates me is that differentiation is solved, basically. Don't come at me about known closed form expressions. But integration is not. Now this makes a certain amount of sense. Differentiation is non-injective after all. But what's more fascinating (and possibly really good evidence of my own neurodivergence) is that integration isn't just an algorithm. It requires some techniques to find, of which the Feynman technique is just one. I think I was introduced to it with the Basel problem. I have to confess I end up watching daily Tiktok integration problems. It scratches an itch.

I kinda wish I'd made it to complex analysis at least in college. I mean I kinda did. I do remember doing something with contour integrals. But it just wasn't structured well. By that I mean Laplace transforms, poles of a function in the S-plane and analytic continuations.

I'm not particularly proficient at the Feynman technique. Like I can't generally spot the alpha substitution that should be made. Maybe one day.

kqr - 3 days ago

To people who find this stuff useful in practise today (and not merely fascinating or useful 50 years ago): what is your line of work?

I have needed to know the values of a few integrals in my job, but I have always ended up with a close enough answer using computational methods. What am I missing by not solving analytically?

FabHK - 3 days ago

Extraordinarily well done didactically, by the way:

First, a motivational anecdote, then some straightforward theory, a simple (yet impressive) example fully worked out, the general method, and further examples of increasing difficulty for practice with hints.

zeroonetwothree - 3 days ago

It’s interesting he mentions he doesn’t like contour integration since many integrals can be done either way.

Feynman’s trick is equivalent to extending it into a double integral and then switching the order of integration.

paulpauper - 2 days ago

Feynman's Trick is one of those things where it sounds great in theory, but then it's hard to know where it works or how to apply it when the example has not already been chosen in advance to exploit it.

impossiblefork - 3 days ago

It starts off with a pretty major error.

I'(t)=\int_0^1 \partial/(\partial t)((x^t - 1)/(ln x))dx = \int_0^1 x^t dx=1/(t+1), when it is actually equal to \int_0^1 x^{t-1}/ln(x)dx.

These two are definitely not always equal to each other.

- 3 days ago
[deleted]
tug2024 - 3 days ago

[dead]