j-devlog
KO
~/nav

// categories

// tags

[Calculus Bible]

Calculus Bible Chapter 2: Derivatives

·18 min read·

This post summarizes Chapter 2 of James Stewart's Calculus.

2.1 Derivatives and Rates of Change#

The Tangent Problem (p.80)#

The slope mm of a tangent line is expressed as the limit of the slope of a secant line.

The tangent line to the curve y=f(x)y=f(x) at the point P(a,f(a))P(a, f(a)) is the line through PP with slope (if the limit exists):


m=limxaf(x)f(a)xam=\lim_{x \to a} \frac{f(x) - f(a)}{x-a}


If we let h=xah = x - a, then x=a+hx = a + h, and the slope of the secant line PQPQ can be written as:


mPQ=f(a+h)f(a)hm_{PQ}=\frac{f(a + h)-f(a)}{h}


The Velocity Problem (p.81)#

The function ff describing the motion of an object is called its position function. Over the time interval from t=at=a to t=a+ht=a+h, the change in position is f(a+h)f(a)f(a+h)-f(a).

The average velocity over this interval is:


Average velocity=displacementtime=f(a+h)f(a)h\text{Average velocity} = \frac{\text{displacement}}{\text{time}} = \frac{f(a+h) - f(a)}{h}


Now suppose we compute the average velocity over shorter and shorter time intervals [a,a+h][a, a+h] — that is, as hh approaches 00.

The instantaneous velocity v(a)v(a) at time t=at=a is defined as the limit of average velocities: (p.82)


v(a)=limh0f(a+h)f(a)hv(a)=\lim_{h \to 0} \frac{f(a+h) - f(a)}{h}


The Derivative at a Point (p.83)#

The derivativederivative^{derivative} of a function ff at a number aa, denoted f(a)f'(a), is defined by the following limit (if it exists):


f(a)=limh0f(a+h)f(a)hf'(a)=\lim_{h \to 0} \frac{f(a+h) - f(a)}{h}


Rates of Change#

Let yy be a quantity that depends on another quantity xx. Then yy is a function of xx, written y=f(x)y=f(x). If xx changes from x1x_1 to x2x_2, the change in xx (the increment of xx) is:


Δx=x2x1\Delta x = x_2 - x_1


The corresponding change in yy is:


Δy=f(x2)f(x1)\Delta y = f(x_2) - f(x_1)


The following difference quotient is called the average rate of change of yy with respect to xx over the interval [x1,x2][x_1, x_2]: (p.84)


Average rate of change=ΔyΔx=f(x2)f(x1)x2x1\text{Average rate of change} = \frac{\Delta y}{\Delta x} = \frac{f(x_2) - f(x_1)}{x_2 - x_1}


The limit of this average rate of change is called the instantaneous rate of change of yy with respect to xx at x=x1x = x_1:


Instantaneous rate of change=limΔx0ΔyΔx=limx2x1f(x2)f(x1)x2x1\text{Instantaneous rate of change} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x} = \lim_{x_2 \to x_1} \frac{f(x_2) - f(x_1)}{x_2 - x_1}


2.2 The Derivative as a Function#

If we replace the fixed number aa with a variable xx in the derivative definition, we obtain: (p.88)


f(x)=limh0f(x+h)f(x)hf'(x)=\lim_{h \to 0} \frac{f(x+h) - f(x)}{h}


This function is called the derivative of ff.

Alternative notations for the derivative (p.92)


f(x)=y=dydx=dfdx=ddxf(x)=Df(x)=Dxf(x)f'(x)=y'=\frac{dy}{dx}=\frac{df}{dx}=\frac{d}{dx}f(x)=Df(x)=D_xf(x)


The symbols DD and ddx\frac{d}{dx} are called differentiation operators — they denote the operation of differentiation, the process of computing a derivative. The notation dydx\frac{dy}{dx} was introduced by Leibniz.

Differentiable Functions (p.92)

A function ff is differentiable at aa if f(a)f'(a) exists. ff is differentiable on an open interval (a,b)(a, b) [or (a,), (,a), (,)(a, \infty),\ (-\infty, a),\ (-\infty, \infty)] if it is differentiable at every number in the interval.

The relationship between continuity and differentiability is: (p.93)

If ff is differentiable at aa, then ff is continuous at aa.

When a function is not differentiable (p.94)

Three cases where a function fails to be differentiable:

  • A corner (sharp bend)
  • A discontinuity
  • A vertical tangent (perfectly vertical slope)

Higher Derivatives (p.94)

If ff is a differentiable function, then its derivative ff' is also a function, so we can compute (f)=f(f')'=f''. This is called the second derivative.

In Leibniz notation, the second derivative of y=f(x)y=f(x) is written:


ddx ⁣(dydx)=d2ydx2\frac{d}{dx}\!\left(\frac{dy}{dx}\right)=\frac{d^2y}{dx^2}


c.f. The instantaneous rate of change of velocity with respect to time is called the acceleration a(t)a(t) of the object. The acceleration function is the derivative of the velocity function, and the second derivative of the position function:


a(t)=v(t)=s(t)a(t)=v'(t)=s''(t)


Third Derivative (p.97)

The third derivative can be interpreted as the slope of the curve y=f(x)y=f''(x), or as the rate of change of f(x)f''(x). For y=f(x)y=f(x), the notation for the third derivative is:


y=f(x)=ddx ⁣(d2ydx2)=d3ydx3y'''=f'''(x)=\frac{d}{dx}\!\left(\frac{d^2y}{dx^2}\right)=\frac{d^3y}{dx^3}


2.3 Basic Differentiation Rules#

Derivative of a Constant Function (p.100)


ddx(c)=0\frac{d}{dx}(c)=0


The Power Rule — If nn is a positive integer, then: (p.100)


ddx(xn)=nxn1\frac{d}{dx}(x^n)=nx^{n-1}


The Constant Multiple Rule — If cc is a constant and ff is a differentiable function, then: (p.104)


ddx[cf(x)]=cddxf(x)\frac{d}{dx}[c \cdot f(x)]=c\frac{d}{dx}f(x)


The Sum Rule — If ff and gg are differentiable functions, then: (p.104)


ddx[f(x)+g(x)]=ddxf(x)+ddxg(x)\frac{d}{dx}[f(x)+g(x)]=\frac{d}{dx}f(x)+\frac{d}{dx}g(x)


The Difference Rule — If ff and gg are differentiable functions, then: (p.104)


ddx[f(x)g(x)]=ddxf(x)ddxg(x)\frac{d}{dx}[f(x)-g(x)]=\frac{d}{dx}f(x)-\frac{d}{dx}g(x)


Derivatives of Sine and Cosine (p.106)


ddx(sinx)=cosx\frac{d}{dx}(\sin x)=\cos x


ddx(cosx)=sinx\frac{d}{dx}(\cos x)=-\sin x


2.4 The Product and Quotient Rules#

The Product Rule — If ff and gg are differentiable functions, then: (p.112)


ddx[f(x)g(x)]=f(x)ddx[g(x)]+g(x)ddx[f(x)]\frac{d}{dx}[f(x)g(x)]=f(x)\frac{d}{dx}[g(x)]+g(x)\frac{d}{dx}[f(x)]


The Quotient Rule — If ff and gg are differentiable functions, then: (p.112)


ddx ⁣[f(x)g(x)]=g(x)ddx[f(x)]f(x)ddx[g(x)][g(x)]2\frac{d}{dx}\!\left[\frac{f(x)}{g(x)}\right]=\frac{g(x)\dfrac{d}{dx}[f(x)]-f(x)\dfrac{d}{dx}[g(x)]}{[g(x)]^2}


Derivatives of Trigonometric Functions (p.116)


ddx(sinx)=cosxddx(cosx)=sinxddx(tanx)=sec2x\frac{d}{dx}(\sin x)=\cos x \qquad \frac{d}{dx}(\cos x)=-\sin x \qquad \frac{d}{dx}(\tan x)=\sec^2 x


ddx(cscx)=cscxcotxddx(secx)=secxtanxddx(cotx)=csc2x\frac{d}{dx}(\csc x)=-\csc x \cot x \qquad \frac{d}{dx}(\sec x)=\sec x \tan x \qquad \frac{d}{dx}(\cot x)=-\csc^2 x


2.5 The Chain Rule#

The differentiation rules covered so far cannot handle composite functions. (p.119)

Example: F(x)=x2+1F(x)=\sqrt{x^2+1}

If we let y=f(u)=uy=f(u)=\sqrt{u} and u=g(x)=x2+1u=g(x)=x^2+1, then y=F(x)=f(g(x))y=F(x)=f(g(x)), i.e., F=fgF=f\circ g.

The derivative of the composite function fgf\circ g is the product of the derivatives of ff and gg. This is the Chain Rule.

Intuition: If dudx\frac{du}{dx} is the rate of change of uu with respect to xx, dydu\frac{dy}{du} is the rate of change of yy with respect to uu, and dydx\frac{dy}{dx} is the rate of change of yy with respect to xx, then if uu changes twice as fast as xx and yy changes three times as fast as uu, then yy changes six times as fast as xx.

Leibniz notation:


dydx=dydududx\frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}


Prime notation:


F(x)=f(g(x))g(x)F'(x) = f'(g(x))\cdot g'(x)


The Power Rule Combined with the Chain Rule (p.123)


ddx(un)=nun1dudxorddx[g(x)]n=n[g(x)]n1g(x)\frac{d}{dx}(u^n)=nu^{n-1}\frac{du}{dx} \qquad \text{or} \qquad \frac{d}{dx}[g(x)]^n =n[g(x)]^{n-1}\cdot g'(x)


2.6 Implicit Differentiation#

  • Explicit functionexplicit function^{explicit\ function}: a function where one variable is defined directly in terms of another (e.g., y=x3+1y=\sqrt{x^3+1}) (p.128)
  • Implicit functionimplicit function^{implicit\ function}: a function defined by a relation between multiple variables (e.g., x2+y2=25x^2+y^2=25)

To differentiate an implicit function, we use implicit differentiation: differentiate both sides with respect to xx, then solve for yy'.

Example: Differentiating x2+y2=25x^2+y^2=25 using implicit differentiation (p.129)

  1. Differentiate both sides.

ddx(x2+y2)=ddx(25)\frac{d}{dx}(x^2 + y^2)=\frac{d}{dx}(25)


ddx(x2)+ddx(y2)=0\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2)=0


  1. Since y2y^2 is not directly a function of xx, apply the chain rule by treating yy as a function of xx.

ddx(y2)=ddy(y2)dydx=2ydydx\frac{d}{dx}(y^2)=\frac{d}{dy}(y^2)\frac{dy}{dx}=2y\frac{dy}{dx}


2x+2ydydx=02x+2y\frac{dy}{dx}=0


  1. Solving for dydx\dfrac{dy}{dx} gives:

dydx=xy\frac{dy}{dx}=-\frac{x}{y}


Related Rates Problems (p.134): Given two quantities whose rates of change are related, use the rate of change of the more easily measured quantity to find the rate of change of the other.

Example: Air is being pumped into a spherical balloon so that its volume is increasing at a rate of 100 cm3/s100\ \text{cm}^3/\text{s}. How fast is the radius increasing when the diameter is 50 cm50\ \text{cm}?

  1. Identify the given and unknown information
    • Given: the rate of increase of volume is 100 cm3/s100\ \text{cm}^3/\text{s}
    • Unknown: the rate of increase of the radius when the diameter is 50 cm50\ \text{cm}
  2. Let VV be the volume of the balloon and rr the radius. Both are functions of time tt.
    • Given: dVdt=100 cm3/s\dfrac{dV}{dt}=100\ \text{cm}^3/\text{s}
    • Unknown: drdt\dfrac{dr}{dt} when r=25 cmr=25\ \text{cm}
  3. To relate dVdt\dfrac{dV}{dt} and drdt\dfrac{dr}{dt}, use the formula for the volume of a sphere to connect VV and rr.

V=43πr3V=\frac{4}{3}\pi r^3


  1. Differentiate both sides with respect to tt. Use the chain rule on the right side.

dVdt=4πr2drdt\frac{dV}{dt}=4\pi r^2\frac{dr}{dt}


  1. Solve for the unknown quantity.

drdt=14πr2dVdt\frac{dr}{dt}=\frac{1}{4\pi r^2}\frac{dV}{dt}


  1. Substitute r=25 cmr=25\ \text{cm} and dVdt=100\dfrac{dV}{dt}=100.

drdt=14π(25)2100=125π\frac{dr}{dt}=\frac{1}{4\pi (25)^2}\cdot 100=\frac{1}{25\pi}


2.8 Linear Approximations and Differentials#

When xx is near aa, we use the tangent line to ff at the point (a,f(a))(a, f(a)) as an approximation to the curve y=f(x)y=f(x). (p.140)

Equation of the tangent line:


y=f(a)+f(a)(xa)y=f(a)+f'(a)(x-a)


The following approximation is called the linear approximationlinear approximation^{linear\ approximation} or tangent line approximationtangent line approximation^{tangent\ line\ approximation} of ff at aa:


f(x)f(a)+f(a)(xa)f(x)\approx f(a) + f'(a)(x-a)


In other words, a single tangent line lets us approximate the value of the function at points near the point of tangency.

This is also widely applied in physics. (p.143)


Summary#

  • Derivative at a point: f(a)=limh0f(a+h)f(a)hf'(a)=\lim\limits_{h \to 0} \dfrac{f(a+h)-f(a)}{h} — the slope of the tangent line and the instantaneous rate of change
  • Derivative as a function: f(x)f'(x), obtained by replacing the fixed number aa with xx
  • Basic differentiation rules: constant, power, constant multiple, sum, difference, trigonometric functions
  • Product Rule / Quotient Rule: differentiating products or quotients of two functions
  • Chain Rule: differentiating composite functions — F(x)=f(g(x))g(x)F'(x)=f'(g(x))\cdot g'(x)
  • Implicit differentiation: differentiate both sides with respect to xx, then solve for yy'
  • Related rates: use the chain rule to connect rates of change of different quantities
  • Linear approximation: approximate function values using the tangent line

// Related Posts