The last article built two moves from scratch: shrink a secant line down to a tangent (the derivative), and shrink rectangles down to an exact area (the integral). Both worked perfectly for x², because x² is simple enough to expand by hand. Real problems rarely hand you x². They hand you sin(x)·e^x, or 1/(x²−1), or an equation that only tells you how fast something is changing and asks you to reconstruct what it actually is.

This article is about those two original moves surviving contact with everything else. Every rule below isn't a separate thing to memorize, it's the secant-to-tangent idea, or the rectangle-to-area idea, worked out one more time against a harder target. Watch for that pattern. It's the same pattern every time.

Chapter 1

The Product Rule: Watching a Rectangle Grow

Two quantities, u and v, multiplied together, is naturally a rectangle: one side has length u, the other has length v, and the area is u·v. If both sides are changing (both u and v are functions of x), how fast does the area change?

Picture the rectangle growing outward on two edges at once, the right edge stretches out by a small amount Δu\Delta u, and the top edge stretches up by a small amount Δv\Delta v. The new, bigger area splits cleanly into four pieces:

RegionDimensionsArea
Original rectangleu by vu·v
Right strip (new area from u growing)Δu\Delta u by vvΔuv\Delta u
Top strip (new area from v growing)u by Δv\Delta vuΔvu\Delta v
Tiny corner (both growing at once)Δu\Delta u by Δv\Delta vΔuΔv\Delta u\Delta v

Total new area =uv+vΔu+uΔv+ΔuΔv= uv + v\Delta u + u\Delta v + \Delta u\Delta v. Subtract the original area to get just the change: ΔA=vΔu+uΔv+ΔuΔv\Delta A = v\Delta u + u\Delta v + \Delta u\Delta v. Divide everything by Δx\Delta x and let Δx\Delta x shrink toward zero, exactly the same shrinking move from the last article. Picture the two strips settling into ordinary numbers as du/dxdu/dx and dv/dxdv/dx, while the tiny corner region, growing in both directions simultaneously, shrinks to nothing faster than either strip does, and drops out of the limit entirely. What's left:

FormulaMeaning
ddx(uv)=udvdx+vdudx\dfrac{d}{dx}(u \cdot v) = u\dfrac{dv}{dx} + v\dfrac{du}{dx}The rate of change of a product is each piece's own rate, weighted by how big the other piece currently is. The vanishing corner is why there's no third term

Worked example: differentiate x2sin(x)x^2 \sin(x). Let u=x2u = x^2 (so du/dx=2xdu/dx = 2x) and v=sin(x)v = \sin(x) (so dv/dx=cos(x)dv/dx = \cos(x), derived two sections from now). Then:

ddx(x2sinx)=x2cos(x)+sin(x)2x\dfrac{d}{dx}(x^2 \sin x) = x^2 \cos(x) + \sin(x) \cdot 2x

No expanding, no first-principles limit needed ever again for a product, just the two pieces' own rates, cross-weighted.

Chapter 2

The Chain Rule: Rates Inside Rates

Some quantities depend on something that itself depends on something else. A balloon's volume depends on its radius. Its radius, while someone's inflating it, depends on time. If you want to know how fast the volume is growing per second, and you only know how volume depends on radius, and how radius depends on time, the chain rule is the tool that connects the two.

FormulaMeaning
dydx=dydu×dudx\dfrac{dy}{dx} = \dfrac{dy}{du} \times \dfrac{du}{dx}If y depends on u, and u depends on x, the rate of y with respect to x is the product of the two intermediate rates, a rate inside a rate

Worked example, the balloon: volume V=43πr3V = \frac{4}{3}\pi r^3, and the radius is currently 5 cm, growing at dr/dt=2dr/dt = 2 cm per second. How fast is the volume growing right now?

dVdr=4πr2(power rule, applied to the r3 term)\dfrac{dV}{dr} = 4\pi r^2 \quad \text{(power rule, applied to the } r^3 \text{ term)}

At r=5r = 5: dVdr=4π(5)2=100π\dfrac{dV}{dr} = 4\pi(5)^2 = 100\pi

dVdt=dVdr×drdt=100π×2=200π628.3 cubic centimeters per second\dfrac{dV}{dt} = \dfrac{dV}{dr} \times \dfrac{dr}{dt} = 100\pi \times 2 = 200\pi \approx 628.3 \text{ cubic centimeters per second}

The balloon shows the chain rule doing real-world work, connecting two separate, physically meaningful rates. It's worth also seeing the more everyday version, differentiating a single function that simply has another function tucked inside it. Take sin(3x2+1)\sin(3x^2+1). The "outer" function is sine, the "inner" function is 3x2+13x^2+1:

ddxsin(3x2+1)=cos(3x2+1)×ddx(3x2+1)=cos(3x2+1)×6x=6xcos(3x2+1)\dfrac{d}{dx}\sin(3x^2+1) = \cos(3x^2+1) \times \dfrac{d}{dx}(3x^2+1) = \cos(3x^2+1) \times 6x = 6x\cos(3x^2+1)

Same rule, same multiplication, just with the "outer rate" and "inner rate" both living inside a single formula instead of two separate real-world quantities. That's the entire chain rule: multiply the two rates that sit between the thing you care about and the thing you actually control. Every "rate of a rate" problem, a shadow lengthening as someone walks away from a lamppost, a ripple's radius growing as its area grows, temperature changing as altitude changes as a plane climbs, is this same multiplication, just with different letters.

Chapter 3

The Quotient Rule: The Product Rule in Disguise

A quotient u/vu/v is really uu times v1v^{-1}, so the quotient rule isn't a new idea at all, it's the product rule combined with the power rule applied to a negative exponent.

FormulaMeaning
ddx(uv)=vdudxudvdxv2\dfrac{d}{dx}\left(\dfrac{u}{v}\right) = \dfrac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}The derivative of a quotient, derivable directly from treating it as uv1u \cdot v^{-1} and applying the product rule plus the chain rule to the v1v^{-1} term

Worked example: derive the derivative of tan(x)\tan(x), a result that isn't obvious on its own and can't be found by simplifying first. Since tan(x)=sin(x)/cos(x)\tan(x) = \sin(x)/\cos(x), let u=sinxu=\sin x (du/dx=cosxdu/dx=\cos x) and v=cosxv=\cos x (dv/dx=sinxdv/dx=-\sin x):

ddx[tanx]=cosx(cosx)sinx(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x\dfrac{d}{dx}[\tan x] = \dfrac{\cos x(\cos x) - \sin x(-\sin x)}{\cos^2 x} = \dfrac{\cos^2 x + \sin^2 x}{\cos^2 x} = \dfrac{1}{\cos^2 x} = \sec^2 x

using the Pythagorean identity cos2x+sin2x=1\cos^2x+\sin^2x=1 to collapse the numerator into something clean. That's a genuinely new result, the derivative of tangent, arrived at with nothing but the quotient rule and one trig identity.

Worked check with numbers, on a case simple enough to verify independently: differentiate x2/xx^2/x at the point x=3x=3, where the honest answer should just be the derivative of xx itself, which is 1. Let u=x2u=x^2 (du/dx=2xdu/dx=2x), v=xv=x (dv/dx=1dv/dx=1).

ddx(x2x)=x(2x)x2(1)x2=2x2x2x2=x2x2=1\dfrac{d}{dx}\left(\dfrac{x^2}{x}\right) = \dfrac{x(2x) - x^2(1)}{x^2} = \dfrac{2x^2 - x^2}{x^2} = \dfrac{x^2}{x^2} = 1

Confirms the rule against something already checkable by simplifying first.

Chapter 4

Derivatives of Sine and Cosine: A Circle Doing the Proving

Here's a genuinely different kind of function, sin(x)\sin(x), and the shrinking-interval definition from the last article still applies directly:

f(x)=limh0sin(x+h)sin(x)hf'(x) = \lim_{h \to 0} \dfrac{\sin(x+h) - \sin(x)}{h}

Using the angle-addition identity sin(x+h)=sin(x)cos(h)+cos(x)sin(h)\sin(x+h) = \sin(x)\cos(h) + \cos(x)\sin(h), this splits into two separate pieces:

f(x)=sin(x)×limh0cosh1h  +  cos(x)×limh0sinhhf'(x) = \sin(x) \times \lim_{h\to 0}\dfrac{\cos h - 1}{h} \;+\; \cos(x) \times \lim_{h\to 0}\dfrac{\sin h}{h}

Both of those small limits get answered by the same picture, the unit circle: mark a small angle θ\theta from the positive x-axis to a point P on the circle, drop a vertical line from P down to the x-axis (that segment's length is exactly sinθ\sin\theta), and draw the circular arc from (1,0)(1,0) to P (that arc's length is exactly θ\theta). For a small angle, that vertical segment and that arc are already nearly the same length, and they converge completely as θ\theta shrinks toward zero.

Made rigorous rather than just eyeballed, comparing sinθ\sin\theta against θ\theta against a third quantity, tanθ\tan\theta (the length you'd get by extending the radius line out to the vertical tangent at (1,0)(1,0)), gives the inequality sinθ<θ<tanθ\sin\theta < \theta < \tan\theta for any small positive angle. Divide through by sinθ\sin\theta: 1<θ/sinθ<1/cosθ1 < \theta/\sin\theta < 1/\cos\theta. As θ\theta shrinks toward zero, cosθ\cos\theta approaches 1, so 1/cosθ1/\cos\theta approaches 1 too, squeezing θ/sinθ\theta/\sin\theta between two things that both approach 1. It has no choice but to approach 1 as well, which means limh0sin(h)/h=1\lim_{h\to 0}\sin(h)/h = 1. The second limit, limh0(cosh1)/h\lim_{h\to 0}(\cos h - 1)/h, works out to 0 through a similar squeeze argument.

Substitute both limit values back into the split expression from the start of this section:

f(x)=sin(x)×0  +  cos(x)×1=cos(x)f'(x) = \sin(x) \times 0 \;+\; \cos(x) \times 1 = \cos(x)

FormulaMeaning
ddx[sinx]=cosx\dfrac{d}{dx}[\sin x] = \cos xThe derivative of sine is cosine, proven entirely from the unit circle picture above, no memorization required
ddx[cosx]=sinx\dfrac{d}{dx}[\cos x] = -\sin xProven the identical way, starting from the angle-addition identity for cosine instead, and substituting the same two limit values
Chapter 5

Derivatives of Exponentials and Logarithms: Why e Is the "Natural" Base

Apply the shrinking-interval definition to exe^x directly:

ddx[ex]=limh0ex+hexh=ex×limh0eh1h\dfrac{d}{dx}[e^x] = \lim_{h \to 0} \dfrac{e^{x+h} - e^x}{h} = e^x \times \lim_{h \to 0} \dfrac{e^h - 1}{h}

That remaining limit, (eh1)/h(e^h - 1)/h as hh shrinks to zero, isn't a coincidence to memorize, it's essentially the definition of the number ee: ee is the unique base for which this particular limit equals exactly 1.

Substitute that value directly back into the expression above:

ddx[ex]=ex×1=ex\dfrac{d}{dx}[e^x] = e^x \times 1 = e^x

FormulaMeaning
ddx[ex]=ex\dfrac{d}{dx}[e^x] = e^xexe^x is its own derivative, by construction, this property is what defines ee as a number in the first place

Logarithms fall out of this almost for free, using implicit differentiation, properly introduced in the next section, but here's the preview. If y=ln(x)y = \ln(x), then by definition x=eyx = e^y. Differentiate both sides with respect to xx, remembering that yy is secretly a function of xx:

1=ey×dydx1 = e^y \times \dfrac{dy}{dx}

Since ey=xe^y = x by the original definition, substitute it back in:

1=x×dydxdydx=1x1 = x \times \dfrac{dy}{dx} \quad \Rightarrow \quad \dfrac{dy}{dx} = \dfrac{1}{x}

FormulaMeaning
ddx[lnx]=1x\dfrac{d}{dx}[\ln x] = \dfrac{1}{x}Derived directly from the inverse relationship between ln(x)\ln(x) and exe^x, no separate rule to memorize
Chapter 6

Implicit Differentiation: When y Refuses to Be Isolated

Every function differentiated so far has had yy sitting by itself on one side: y=x2y = x^2, y=sin(x)y = \sin(x). Plenty of genuinely useful equations don't cooperate. A circle of radius 5 is written x2+y2=25x^2 + y^2 = 25, and there's no way to isolate yy as a single clean function, the top half and bottom half are two different functions glued together at the edges.

The trick: differentiate both sides with respect to xx anyway, treating yy as an unnamed function of xx, and every time yy shows up, the chain rule quietly kicks in, contributing an extra dy/dxdy/dx.

x2+y2=25x^2 + y^2 = 25 ddx[x2]+ddx[y2]=ddx[25]\dfrac{d}{dx}[x^2] + \dfrac{d}{dx}[y^2] = \dfrac{d}{dx}[25] 2x+2ydydx=02x + 2y\dfrac{dy}{dx} = 0 dydx=xy\dfrac{dy}{dx} = -\dfrac{x}{y}

Worked check at the point (3,4)(3, 4), which sits on this circle since 32+42=9+16=253^2 + 4^2 = 9 + 16 = 25:

dydx=34\dfrac{dy}{dx} = -\dfrac{3}{4}

That claim survives a direct geometric test rather than sitting as an unverified formula. The radius from the origin to (3,4)(3, 4) has slope 4/34/3. The tangent line at that same point, drawn from the implicit derivative, has slope 3/4-3/4. A tangent line to a circle is always perpendicular to the radius at that point, and the negative reciprocal of 4/34/3 is exactly 3/4-3/4, so the two lines agree completely. The implicit derivative and a basic geometry fact confirm each other, which is a good sign the technique is doing something real, not just producing symbols.

Chapter 7

u-Substitution: Undoing the Chain Rule

Every technique so far has been about taking derivatives apart. Integration is the reverse direction, and it turns out every differentiation rule has a mirror-image integration technique built by literally running it backward.

The chain rule says ddx[sin(x2)]=cos(x2)×2x\dfrac{d}{dx}[\sin(x^2)] = \cos(x^2) \times 2x. Flip that statement around: if you're ever handed the integral 2xcos(x2)dx\int 2x\cos(x^2)\,dx, and you notice that 2x2x is exactly the derivative of the x2x^2 sitting inside the cosine, you're looking at a chain rule in reverse, and the antiderivative is just sin(x2)\sin(x^2).

The formal bookkeeping for this is called u-substitution:

StepWhat Happens
1. Spot the inner function and its derivative sitting nearbyIn 2xcos(x2)dx\int 2x\cos(x^2)\,dx, let u=x2u = x^2, so du=2xdxdu = 2x\,dx
2. SubstituteThe integral becomes cos(u)du\int \cos(u)\,du
3. Integrate the simpler expressioncos(u)du=sin(u)+C\int \cos(u)\,du = \sin(u) + C
4. Substitute backsin(x2)+C\sin(x^2) + C

Worked check: differentiate the answer. ddx[sin(x2)]=cos(x2)2x\dfrac{d}{dx}[\sin(x^2)] = \cos(x^2) \cdot 2x, exactly the original integrand. u-substitution isn't a new idea, it's pattern-matching for "does this integral secretly contain a chain rule that already happened," then running it in reverse.

Everything above handles an indefinite integral, no boundaries, just an antiderivative plus a constant. Definite integrals need one extra piece of bookkeeping: when xx is replaced by uu, the boundary values need to switch to matching uu-values too.

Worked example: 022xcos(x2)dx\displaystyle\int_0^2 2x\cos(x^2)\,dx. Using the same substitution as above, u=x2u=x^2, the boundaries transform along with everything else: when x=0x=0, u=02=0u=0^2=0; when x=2x=2, u=22=4u=2^2=4.

022xcos(x2)dx=04cos(u)du=[sin(u)]04=sin(4)sin(0)=sin(4)\int_0^2 2x\cos(x^2)\,dx = \int_0^4 \cos(u)\,du = \big[\sin(u)\big]_0^4 = \sin(4) - \sin(0) = \sin(4)

Worked check: find the antiderivative in terms of xx first (already done above, sin(x2)\sin(x^2)), then evaluate directly at the original xx-boundaries instead: sin(22)sin(02)=sin(4)sin(0)=sin(4)\sin(2^2) - \sin(0^2) = \sin(4) - \sin(0) = \sin(4). Both routes land on the identical answer, which is the actual point: changing the boundaries during substitution isn't a separate rule to memorize, it's just doing the "substitute back to xx" step early, once, instead of saving it for the very end.

Chapter 8

Integration by Parts: Undoing the Product Rule, and Why the Trade Is Worth Making

The product rule, rearranged, gives a genuinely useful integration formula. Starting from ddx(uv)=uv+uv\dfrac{d}{dx}(uv) = u'v + uv', integrate both sides:

uv=uvdx+uvdxuv = \int u'v\,dx + \int uv'\,dx

Rearranged into its standard, more usable form:

FormulaMeaning
udv=uvvdu\int u\,dv = uv - \int v\,duIntegration by parts: swap one hard integral for a (hopefully easier) different one, using the product rule run in reverse

Here's the actual intuition behind why anyone would want to make this trade, since the formula alone doesn't explain it. Every integration-by-parts problem hands you a product of two pieces, and everything depends on which piece becomes uu and which becomes dvdv. The piece called uu should be whichever one gets simpler when differentiated, xx differentiates down to just 1, ln(x)\ln(x) differentiates down to 1/x1/x. The piece called dvdv should be whichever one stays perfectly manageable when integrated, exe^x integrates right back to exe^x, sin(x)\sin(x) integrates to cos(x)-\cos(x). The trade deliberately routes the "get simpler" job to whichever piece is actually capable of getting simpler, and routes the "stay easy" job to whichever piece can absorb it without complaint.

This is also where the classic ordering, logarithmic, inverse trig, algebraic, trigonometric, exponential (sometimes taught as the acronym LIATE), actually comes from, not as an arbitrary sequence to memorize, but as a genuine ranking of which function types simplify fastest under differentiation. A logarithm differentiates into something dramatically simpler. An exponential differentiates into itself, no simplification at all. So when a product contains both, the logarithm becomes uu, since it has somewhere useful to go, and the exponential becomes dvdv, since it doesn't mind being integrated.

Worked example: xexdx\int x e^x\,dx. Here xx is algebraic (simplifies to 1 under differentiation) and exe^x is exponential (stays exactly itself either way), so u=xu = x (du=dxdu = dx) and dv=exdxdv = e^x\,dx (v=exv = e^x):

xexdx=xexexdx=xexex+C\int x e^x\,dx = xe^x - \int e^x\,dx = xe^x - e^x + C

Worked check: differentiate xexexxe^x - e^x. Using the product rule on the first term: ex+xexex=xexe^x + xe^x - e^x = xe^x, exactly the original integrand.

Sometimes neither piece simplifies in either direction, they just trade places with each other forever, and integration by parts still gets there, by a stranger route worth seeing once.

Worked example: excos(x)dx\int e^x \cos(x)\,dx. Apply integration by parts, letting u=exu = e^x and dv=cos(x)dxdv = \cos(x)\,dx, so du=exdxdu = e^x\,dx and v=sinxv = \sin x:

excosxdx=exsinxexsinxdx\int e^x \cos x\,dx = e^x \sin x - \int e^x \sin x\,dx

The remaining integral needs integration by parts too. Apply it again, letting u=exu = e^x and dv=sin(x)dxdv = \sin(x)\,dx, so v=cosxv = -\cos x:

exsinxdx=excosx+excosxdx\int e^x \sin x\,dx = -e^x \cos x + \int e^x \cos x\,dx

Substitute this back into the first line:

excosxdx=exsinx[excosx+excosxdx]=exsinx+excosxexcosxdx\int e^x \cos x\,dx = e^x \sin x - \left[-e^x \cos x + \int e^x \cos x\,dx\right] = e^x \sin x + e^x \cos x - \int e^x \cos x\,dx

The original integral has quietly reappeared on the right-hand side. Treat it like an unknown to solve for, calling it II:

I=exsinx+excosxII = e^x \sin x + e^x \cos x - I 2I=exsinx+excosx2I = e^x \sin x + e^x \cos x I=exsinx+excosx2+CI = \dfrac{e^x \sin x + e^x \cos x}{2} + C

Worked check: differentiate (exsinx+excosx)/2(e^x \sin x + e^x \cos x)/2, using the product rule on each term: [exsinx+excosx+excosxexsinx]/2=[2excosx]/2=excosx[e^x\sin x + e^x\cos x + e^x\cos x - e^x\sin x]/2 = [2e^x\cos x]/2 = e^x\cos x, exactly the original integrand. Integration by parts didn't just simplify this integral, it looped back on itself, and the loop itself was the solution, treating the unsolved integral as an algebraic unknown and solving for it directly.

Chapter 9

Integration of Special Forms

Trig integrals using identities and substitution. The right technique for a trig integral depends on a single question: is the power even or odd?

For an even power, like sin2(x)dx\int \sin^2(x)\,dx, there's no obvious antiderivative sitting in plain sight, sin2(x)\sin^2(x) isn't the derivative of anything simple. The half-angle identity sin2(x)=1cos2x2\sin^2(x) = \dfrac{1 - \cos 2x}{2} rewrites it into something that is:

sin2(x)dx=1cos2x2dx=x2sin(2x)4+C\int \sin^2(x)\,dx = \int \dfrac{1 - \cos 2x}{2}\,dx = \dfrac{x}{2} - \dfrac{\sin(2x)}{4} + C

Worked check: differentiate x/2sin(2x)/4x/2 - \sin(2x)/4. Using the chain rule on the second term: 1/2(2cos2x)/4=1/2cos(2x)/2=(1cos2x)/2=sin2(x)1/2 - (2\cos 2x)/4 = 1/2 - \cos(2x)/2 = (1-\cos 2x)/2 = \sin^2(x), matching the same identity used to set the problem up.

For an odd power, a genuinely different move works better, worth seeing since it's a different trick entirely. sin3(x)dx\int \sin^3(x)\,dx: peel off a single factor of sin(x)\sin(x), leaving an even power behind, then rewrite that even power using sin2(x)=1cos2(x)\sin^2(x) = 1 - \cos^2(x):

sin3(x)dx=sin2(x)sin(x)dx=(1cos2x)sin(x)dx\int \sin^3(x)\,dx = \int \sin^2(x)\sin(x)\,dx = \int (1-\cos^2 x)\sin(x)\,dx

The integral is now secretly a u-substitution: let u=cos(x)u = \cos(x), so du=sin(x)dxdu = -\sin(x)\,dx, meaning sin(x)dx=du\sin(x)\,dx = -du:

=(1u2)(du)=(1u2)du=u+u33+C=cos(x)+cos3(x)3+C= \int (1-u^2)(-du) = -\int(1-u^2)\,du = -u + \dfrac{u^3}{3} + C = -\cos(x) + \dfrac{\cos^3(x)}{3} + C

Worked check: differentiate cosx+cos3x/3-\cos x + \cos^3 x/3. Using the chain rule on the second term: sinx+3cos2x(sinx)/3=sinxcos2xsinx=sinx(1cos2x)=sinxsin2x=sin3x\sin x + 3\cos^2 x(-\sin x)/3 = \sin x - \cos^2 x\sin x = \sin x(1-\cos^2 x) = \sin x \sin^2 x = \sin^3 x, matching the original integrand.

The decision rule underneath both examples: an even power needs an identity to break it into pieces with a direct antiderivative; an odd power can always spare one factor to feed a substitution, since peeling off one sine leaves an even power that converts cleanly into cosines.

Rational functions using partial fractions. 1x21dx\int \dfrac{1}{x^2-1}\,dx looks intractable until the denominator factors: x21=(x1)(x+1)x^2 - 1 = (x-1)(x+1). The technique splits the single fraction into two simpler ones:

1(x1)(x+1)=Ax1+Bx+1\dfrac{1}{(x-1)(x+1)} = \dfrac{A}{x-1} + \dfrac{B}{x+1}

StepCalculation
Clear denominators1=A(x+1)+B(x1)1 = A(x+1) + B(x-1)
Choose x=1x = 1 to eliminate BB1=A(2)A=1/21 = A(2) \Rightarrow A = 1/2
Choose x=1x = -1 to eliminate AA1=B(2)B=1/21 = B(-2) \Rightarrow B = -1/2

1x21=1/2x11/2x+1\dfrac{1}{x^2-1} = \dfrac{1/2}{x-1} - \dfrac{1/2}{x+1}, and each piece integrates directly to a logarithm:

1x21dx=12lnx112lnx+1+C\int \dfrac{1}{x^2-1}\,dx = \dfrac{1}{2}\ln|x-1| - \dfrac{1}{2}\ln|x+1| + C

It's worth seeing why this technique works at all, rather than trusting the algebra on faith. Adding two simple fractions over a common denominator, 1/(x1)1/(x-1) plus 1/(x+1)1/(x+1), produces exactly [(x+1)+(x1)]/[(x1)(x+1)]=2x/(x21)[(x+1)+(x-1)] / [(x-1)(x+1)] = 2x/(x^2-1), a single, messier-looking fraction. Partial fractions is that exact process, run in reverse: given the messy combined fraction, find the two simple pieces that would have combined to produce it. Two separate 1/(linear)1/(\text{linear}) terms are already known how to integrate. The technique's entire value is turning one unfamiliar integral into two familiar ones, using nothing but the algebra of adding fractions, done backward.

Chapter 10

Differential Equations, Revisited: The Integrating Factor

The last article solved dy/dt=kydy/dt = ky by separating variables, but plenty of differential equations don't separate cleanly. The general first-order linear form is dy/dx+P(x)y=Q(x)dy/dx + P(x)y = Q(x), and the fix is a genuinely clever trick, one worth deriving rather than just accepting as a formula.

The goal: find some function μ(x)\mu(x) to multiply the whole equation by, chosen specifically so the left-hand side collapses into the derivative of a single product, μy\mu \cdot y. Start from what that would actually require. The product rule says:

ddx[μy]=μdydx+ydμdx\dfrac{d}{dx}[\mu \cdot y] = \mu\dfrac{dy}{dx} + y\dfrac{d\mu}{dx}

Compare that to what's sitting on the left side of the original equation after multiplying through by μ\mu: μdydx+μPy\mu\dfrac{dy}{dx} + \mu Py. For these two expressions to match exactly, the second terms have to be equal:

ydμdx=μPydμdx=μPy\dfrac{d\mu}{dx} = \mu P y \quad \Rightarrow \quad \dfrac{d\mu}{dx} = \mu P

This is itself a differential equation for μ\mu, and it's the exact same separable equation solved earlier in this article, just with different letters. Separate it:

dμμ=Pdxln(μ)=Pdxμ=ePdx\dfrac{d\mu}{\mu} = P\,dx \quad \Rightarrow \quad \ln(\mu) = \int P\,dx \quad \Rightarrow \quad \mu = e^{\int P\,dx}

FormulaMeaning
μ(x)=eP(x)dx\mu(x) = e^{\int P(x)\,dx}The integrating factor, derived rather than assumed, by demanding that d/dx[μy]d/dx[\mu \cdot y] exactly equal μ(dy/dx)+μPy\mu(dy/dx) + \mu Py

Worked example, a bathtub filling while draining, a genuinely common shape for this kind of equation: dy/dx+2y=10dy/dx + 2y = 10. Here P(x)=2P(x) = 2, a constant, so:

μ(x)=e2dx=e2x\mu(x) = e^{\int 2\,dx} = e^{2x}

Multiply the whole equation by e2xe^{2x}:

e2xdydx+2e2xy=10e2xe^{2x}\dfrac{dy}{dx} + 2e^{2x}y = 10e^{2x}

The entire left side is, by design, exactly ddx[e2xy]\dfrac{d}{dx}[e^{2x}y]. So:

ddx[e2xy]=10e2x\dfrac{d}{dx}[e^{2x}y] = 10e^{2x}

Integrate both sides directly:

e2xy=5e2x+Cy=5+Ce2xe^{2x}y = 5e^{2x} + C \quad \Rightarrow \quad y = 5 + Ce^{-2x}

Worked check: dy/dx=2Ce2xdy/dx = -2Ce^{-2x}. Plug back into the original equation: 2Ce2x+2(5+Ce2x)=2Ce2x+10+2Ce2x=10-2Ce^{-2x} + 2(5+Ce^{-2x}) = -2Ce^{-2x}+10+2Ce^{-2x} = 10. And there's a genuinely nice physical reading here: as xx grows large, the Ce2xCe^{-2x} term fades to nothing, and yy settles toward 5, a steady equilibrium.

That equilibrium claim holds regardless of the starting point. Three solution curves, starting from three different values (C=3C = -3, C=3C = 3, and C=6C = 6, corresponding to starting values of 2, 8, and 11), all bend toward the same horizontal line at y=5y = 5 as xx grows, no matter where each one began. This single differential equation doesn't have one solution, it has an entire family of them, one curve for every possible starting value, and the starting condition only ever changes CC, never where the family eventually ends up.

Chapter 11

Slope Fields: Seeing a Solution Before Solving Anything

Every differential equation solved so far needed algebra to actually produce an answer. There's a way to see what the family of solutions looks like without doing any of that algebra at all.

A differential equation like dy/dx=f(x,y)dy/dx = f(x, y) hands you, at every single point in the plane, the exact slope a solution curve would have if it happened to pass through that point. Plot a short line segment with that slope at a grid of points, and the resulting picture, called a slope field, lets a solution curve's shape emerge visually, just by imagining a curve that stays tangent to the little segments as it moves through the grid.

Take the equation dy/dx=x/ydy/dx = -x/y, which happens to be exactly the implicit-differentiation relationship derived earlier for the circle x2+y2=25x^2+y^2=25. Plotting short slope-segments at a grid of points, each tilted according to the local value of x/y-x/y, visibly curls into circular arcs, matching a reference circle x2+y2=2x^2+y^2=2 laid over the same grid, all without separating a single variable or integrating anything.

Point (x, y)Slope =x/y= -x/yWhat It Suggests
(1,1)(1, 1)1-1Tilting steeply downward, curling clockwise
(2,1)(2, 1)2-2Even steeper, same clockwise curl
(1,2)(1, 2)0.5-0.5Gentler downward tilt
(1,1)(-1, 1)11Tilting upward, continuing the same clockwise loop
(2,1)(-2, -1)2-2Consistent with a closed circular path

That the slope field for dy/dx=x/ydy/dx = -x/y visually traces circles isn't a coincidence, it's the same relationship found earlier by implicitly differentiating x2+y2=Cx^2+y^2=C. Solving that differential equation algebraically (separating variables: ydy=xdxy\,dy = -x\,dx, integrating both sides: y2/2=x2/2+constanty^2/2 = -x^2/2 + \text{constant}, rearranging: x2+y2=constantx^2+y^2 = \text{constant}) produces exactly the family of circles the slope field already showed by eye. Seeing the answer first, then confirming it with algebra, is often a faster and more honest way to understand what a differential equation is actually describing.

Chapter 12

How These Techniques Actually Relate to Each Other

Nothing in this article is a separate trick. Every integration technique is a differentiation rule, run in reverse, on purpose.

Differentiation RuleIts Reverse (Integration Technique)
Product rule: ddx(uv)=uv+uv\dfrac{d}{dx}(uv) = u'v + uv'Integration by parts: udv=uvvdu\int u\,dv = uv - \int v\,du
Chain rule: dydx=dydududx\dfrac{dy}{dx} = \dfrac{dy}{du}\dfrac{du}{dx}u-substitution: spot the inner derivative, substitute, integrate the simpler piece
Power rule and trig/log derivativesTrig identities and partial fractions: rewrite first, so a known derivative rule applies in reverse
Implicit differentiation on a relationshipSlope fields: the same relationship, read visually instead of algebraically
Separation of variablesThe integrating factor: itself derived from a second, smaller separable equation, for equations that don't separate cleanly on their own
Chapter 13

Conclusion & Key Takeaways

Nothing in this article introduced a new idea. The secant collapsing into a tangent, and the rectangles collapsing into an exact area, from the last article, are still the entire engine. Every rule here is what happens when that engine gets pointed at a harder target: two functions multiplied together, one function nested inside another, a circle instead of a simple curve, an equation that only describes a rate instead of handing you the answer directly. Learn the target, not a separate formula for each one, and the formulas stop needing to be memorized at all, they're just what the shrinking-interval trick was always going to produce, run one more time.

TakeawayWhy It Matters
The product rule comes from a growing rectangle, not a formula to memorizeTwo strips survive the shrinking limit; the tiny corner region, growing in both directions at once, vanishes faster and drops out entirely
The chain rule is just multiplying rates that sit between each otherWhether it's a balloon's volume growing 628.3 cubic centimeters per second, or a sine function with a polynomial tucked inside it, it's the same two-rate multiplication either way
The derivatives of sine and cosine come from a single pictureThe unit circle inequality sinθ<θ<tanθ\sin\theta < \theta < \tan\theta, squeezed as θ\theta shrinks to zero, proves both derivatives without any memorization
The quotient rule earns its keep on results that can't be found any other wayThe derivative of tan(x)\tan(x), worked out to sec2x\sec^2 x, isn't available by simplifying first, the quotient rule is the only route in
e is defined by its own derivative propertyexe^x being its own derivative isn't a coincidence to accept, it's the actual definition of what makes ee special
Implicit differentiation checks out against plain geometryA circle's tangent slope, found without ever isolating yy, matches the fact that a tangent is always perpendicular to its radius
u-substitution is the chain rule, noticed and run backwardIf an inner function's derivative is sitting right next to it in the integral, that's a chain rule waiting to be undone
Definite integrals just move the "back to x" step earlierTransforming the boundaries during substitution and evaluating in u, or substituting back to x first and using the original boundaries, land on the exact same answer
Choosing uu and dvdv is a reasoned decision, not a coin flipuu should be whatever simplifies under differentiation; dvdv should be whatever tolerates being integrated, which is also the actual logic behind the LIATE ordering
Integration by parts can solve for an integral that reappears in its own answerexcosxdx\int e^x\cos x\,dx, applied twice, loops back to itself and gets solved algebraically, like an unknown in an equation
Trig integrals split on one question: even power or oddEven powers need an identity; odd powers can always spare one factor to feed a substitution
Partial fractions is fraction addition, run in reverseThe same algebra that combines 1/(x1)1/(x-1) and 1/(x+1)1/(x+1) into one fraction also tells you how to split a combined fraction back apart
The integrating factor is derived, not assumedDemanding that the product rule collapse the left side into one clean derivative produces a second, smaller separable equation, solved with the exact technique from earlier in the article
A family of solution curves can share one destinationThree different starting values all bend toward the same equilibrium line, the starting condition only changes the path there, never the destination
A slope field lets you see a differential equation's answer before solving itdy/dx=x/ydy/dx = -x/y visually traces circles, the same family of curves the algebra confirms afterward
Every technique in this article is a mirror image of one from the lastDifferentiation rules and integration techniques are the same short list of ideas, read in opposite directions

Sources

Paul Dawkins, Paul's Online Math Notes, Calculus I: derivative rules and implicit differentiation Paul Dawkins, Paul's Online Math Notes, Calculus II: integration by parts Paul Dawkins, Paul's Online Math Notes, Calculus II: integration techniques including partial fractions MIT OpenCourseWare 18.03SC, Differential Equations, Solutions of First Order Linear Equations MIT OpenCourseWare 18.03SC, Differential Equations, practice problems on first-order linear ODEs and direction fields James Stewart, Calculus, standard reference for derivative rules, integration techniques, and the unit circle derivation of the derivatives of sine and cosine; George B. Thomas, Thomas' Calculus, standard reference for implicit differentiation and partial fraction decomposition