Andrew M.H. Alexander

psychedelic zippers: integration by parts as installation art

Integration by parts: it’s a psychedelic two-way zipper. This was the point of my short-lived installation piece in the Main Room of Deep Springs College during a calculus class I taught in Spring 2026.

The piece demonstrates two different ways to integrate-by-parts the integral: \[\int\! x^5 \sin(x)\,dx\] One way—the “obvious” way; the supposedly “better” way—is to multiply together \(x^5\) and its derivatives with the antiderivatives of sine, summing the result with alternating plus-or-minusses.

To visualize that, here’s a table with \(x^5\) and its derivatives, together with \(\sin x\) and its antiderivatives, displayed such that differentiation proceeds in the downward direction:
\[\vdots\]
\[-\sin x\]
\[-\cos x\]
\[\sin x\]
\[\cos x\]
\[-\sin x\]
\[-\cos x\]
\[{\Large x^5}\] \[{\Large \sin x}\]
\[5x^4\]
\[20x^3\]
\[60x^2\]
\[120x\]
\[120\]
\[0\]
\[0\]
\[\vdots\]
You can imagine picking up these two strands of functions and “folding” them togther to create the answer: attaching \(x^5\) with \(-\cos x\), attaching \(5x^4\) with \(-\sin x\), and so forth. We get: \[\begin{align*} \int\! x^5 \sin(x)\,dx \quad=\quad &+x^5(- \cos x) \\ &-5x^4(-\sin x) \\ &+20x^3\cos x \\ &-60x^2 \sin x \\ &+120x(-\cos x) \\ &-120(-\sin x) \\ &+ 0\cdot \cos x \\ &- 0\cdot \sin x \\ &\quad \vdots \end{align*}\] Simplifying the sign (s-i-g-n) stuff, we get: \[\begin{align*} \int\! x^5 \sin(x)\,dx \quad=\quad &-x^5\cos x \\ &+5x^4\sin x \\ &+20x^3\cos x \\ &-60x^2 \sin x \\ &-120x \cos x \\ &+120\sin x. \end{align*}\] Alternatively, we can make the opposite choice. Rather than fold/pair up the derivatives of \(x^5\) with the antiderivatives of sine, we can pair up the derivatives of sine with antiderivatives of \(x^5\). The corresponding table then looks like:
\[\vdots\]
\[\dfrac{x^{11}}{332640}\]
\[\dfrac{x^{10}}{30240}\]
\[\dfrac{x^9}{3024}\]
\[\dfrac{x^8}{336}\]
\[\dfrac{x^7}{42}\]
\[\dfrac{x^6}{6}\]
\[{\Large x^5}\] \[{\Large \sin x}\]
\[\cos x\]
\[-\sin x\]
\[-\cos x\]
\[\sin x\]
\[\cos x\]
\[-\sin x\]
\[-\cos x\]
\[\vdots\]

This gives us: \[\begin{align*} \int\! x^5 \sin(x)\,dx \quad=\quad &+\frac{x^6}{6}\sin x \\ \\ &-\frac{x^7}{42}\cos x\\ \\ &+\frac{x^8}{336}(-\sin x) \\ \\ &-\frac{x^9}{3024}(-\cos x) \\ \\ &+\frac{x^{10}}{30240} \sin x \\ \\ &-\frac{x^{11}}{332640} \cos x \\ \\ &\quad\vdots \end{align*}\] It’s an infinite series!!! In the first way of computing this integral, the derivatives of \(x^5\) eventually zero out, meaning that our series terminates. But in this way, we’re using the antiderivatives of \(x^5\), which never become \(0\), and so the series never terminates. We get an infinite series. Spiritually it relates closely to Taylor series (a marginally more sophisticated way of constructing an infinite series using integration by parts).

Here’s the full table, with all the derivatives and antiderivatives of both functions:
\[\vdots\] \[\vdots\]
\[\dfrac{x^{11}}{332640}\] \[-\sin x\]
\[\dfrac{x^{10}}{30240}\] \[-\cos x\]
\[\dfrac{x^9}{3024}\] \[\sin x\]
\[\dfrac{x^8}{336}\] \[\cos x\]
\[\dfrac{x^7}{42}\] \[-\sin x\]
\[\dfrac{x^6}{6}\] \[-\cos x\]
\[{\Large x^5}\] \[{\Large \sin x}\]
\[5x^4\] \[\cos x\]
\[20x^3\] \[-\sin x\]
\[60x^2\] \[-\cos x\]
\[120x\] \[\sin x\]
\[120\] \[\cos x\]
\[0\] \[-\sin x\]
\[0\] \[-\cos x\]
\[\vdots\] \[\vdots\]

For the demo, I wrote out a half-dozen of each of the anti/derivatives on sheets of 8.5x11 paper, and taped them together, with a few inches of tape between each sheet so they could dangle.

We then taped the top of each column to the ceiling, and taped the matching derivative/antiderivative pairs together to create the two equivalent answers:

It’s like you have a giant X—two strands, connected at the middle, a diploid chromosome—and you fold up the two pairs of opposite legs together.

Here's a shot of me, taken by student Lance, installing it: