855 words
4 minutes
CalcBC Ch2 - Differentiation Part 1

Chapter 2: Differentiation — Definition and Basic Derivative Rules#

2.1 Average Rate of Change vs. Instantaneous Rate of Change#

Average Rate of Change#

The average rate of change of f(x)f(x) between two points x=ax=a and x=bx=b is:

f(b)f(a)ba.\frac{f(b) - f(a)}{b - a}.
  • This is essentially the slope of the secant line connecting (a,f(a))\bigl(a, f(a)\bigr) and (b,f(b))\bigl(b, f(b)\bigr).
  • It tells us how fast the function’s output changes, on average, as the input goes from aa to bb.

Instantaneous Rate of Change#

The instantaneous rate of change at x=ax=a is the derivative f(a)f'(a). Geometrically, it’s the slope of the tangent line at x=ax=a. Analytically, it is defined using a limit:

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

This limit expresses how f(x)f(x) changes over an infinitesimally small interval around x=ax=a.


2.2 Defining the Derivative of a Function & Derivative Notation#

Limit Definition of the Derivative#

f(x)  =  limh0f(x+h)f(x)h.f'(x) \;=\; \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}.
  • If this limit exists for each xx in an interval, then f(x)f'(x) is a function that gives the slope at every point.
  • If the limit does not exist at some xx, then ff is not differentiable at that point.

Notation#

  • Leibniz Notation: dydx\frac{dy}{dx} or ddx[f(x)]\frac{d}{dx}[f(x)].
  • Lagrange Notation: f(x)f'(x).
  • Newton’s Notation: y˙\dot{y} (often used in physics for time derivatives).

You might see all of these. They convey the same concept: the instantaneous rate of change of yy with respect to xx.


2.3 Estimating Derivatives of a Function at a Point#

Sometimes you only have a graph or a table rather than an explicit formula. To approximate f(a)f'(a):

  • From a Table: Use the difference quotient f(x2)f(x1)x2x1\frac{f(x_2)-f(x_1)}{x_2-x_1} for two points x1x_1 and x2x_2 around aa to get a “best guess.” Closer x1,x2x_1, x_2 are to aa, the better.
  • From a Graph: Draw a tangent line at x=ax=a and estimate its slope by “rise over run.”

2.4 Connecting Differentiability and Continuity#

  • If ff is differentiable at x=ax=a, then ff is automatically continuous at x=ax=a.
  • However, a function can be continuous but not differentiable if it has a “sharp corner,” “vertical tangent,” or a cusp. For instance, x|x| is continuous everywhere but not differentiable at x=0x=0.

2.5 The Power Rule#

A direct result of applying the limit definition to power functions is the Power Rule:

ddx[xn]=nxn1.\frac{d}{dx}[x^n] = n\,x^{n-1}.

Examples:

  • ddx[x3]=3x2\frac{d}{dx}[x^3] = 3x^2.
  • ddx[x]=1\frac{d}{dx}[x] = 1.
  • ddx[x]=ddx[x1/2]=12x1/2=12x.\frac{d}{dx}[\sqrt{x}] = \frac{d}{dx}[x^{1/2}] = \tfrac12 x^{-1/2} = \frac{1}{2\sqrt{x}}.

2.6 Derivative Rules: Constant, Sum, Difference, and Constant Multiple#

  1. Constant Function Rule
    ddx[c]=0,\frac{d}{dx}[c] = 0, where cc is any constant.

  2. Sum / Difference Rules

    ddx[f(x)±g(x)]  =  f(x)  ±  g(x).\frac{d}{dx}[f(x)\pm g(x)] \;=\; f'(x)\;\pm\;g'(x).
  3. Constant Multiple Rule

    ddx[cf(x)]  =  cf(x).\frac{d}{dx}[c\,f(x)] \;=\; c\,f'(x).

All these rules ensure derivatives behave in a linear way with respect to addition and scalar multiplication.


2.7 Derivatives of sinx\sin x, cosx\cos x, exe^x, and lnx\ln x#

  1. sinx\sin x and cosx\cos x

    • ddx[sinx]=cosx\frac{d}{dx}[\sin x] = \cos x.
    • ddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\,\sin x.
  2. exe^x
    ddx[ex]=ex.\frac{d}{dx}[e^x] = e^x.

  3. lnx\ln x
    ddx[lnx]=1x,x>0.\frac{d}{dx}[\ln x] = \frac{1}{x},\quad x>0.

These are standard derivatives you should memorize. They can be derived rigorously using the limit definition, but in practice they’re typically treated as fundamental facts.


2.8 The Product Rule#

When you have f(x)=u(x)v(x)f(x) = u(x)\,v(x), its derivative is given by:

f(x)=u(x)v(x)  +  u(x)v(x).f'(x) = u'(x)\,v(x) \;+\; u(x)\,v'(x).

Example: If f(x)=(x3)(sinx)f(x)= (x^3)\,(\sin x), then

f(x)=(3x2)(sinx)  +  (x3)(cosx).f'(x)= (3x^2)(\sin x) \;+\; (x^3)(\cos x).

2.9 The Quotient Rule#

For a function that’s the ratio of two differentiable functions u(x)v(x)\frac{u(x)}{v(x)}, the derivative is:

(uv)=u(x)v(x)u(x)v(x)(v(x))2.\left(\frac{u}{v}\right)' = \frac{u'(x)\,v(x) - u(x)\,v'(x)}{(\,v(x)\,)^2}.

Example: If g(x)=2x1+x2g(x)= \frac{2x}{1+x^2},

g(x)=(2)(1+x2)(2x)(2x)(1+x2)2=2(1+x2)4x2(1+x2)2.g'(x)= \frac{(2)(1+x^2) - (2x)(2x)}{(1+x^2)^2} = \frac{2(1+x^2) -4x^2}{(1+x^2)^2}.

2.10 The Derivatives of tanx\tan x, cotx\cot x, secx\sec x, and cscx\csc x#

Using the quotient rule (or known identities), we get:

  • ddx[tanx]=sec2x.\frac{d}{dx}[\tan x] = \sec^2 x.
  • ddx[cotx]=csc2x.\frac{d}{dx}[\cot x] = -\,\csc^2 x.
  • ddx[secx]=secxtanx.\frac{d}{dx}[\sec x] = \sec x\,\tan x.
  • ddx[cscx]=cscxcotx.\frac{d}{dx}[\csc x] = -\,\csc x\,\cot x.

These can also be memorized or derived systematically using tanx=sinxcosx\tan x= \frac{\sin x}{\cos x}, etc.


Self-Check Practice#

Below are several sample problems to reinforce your understanding. Try each before looking at the solution.


Self-Check 1#

Problem: Using the limit definition of the derivative, show that:

ddx[x2]  =  2x.\frac{d}{dx}[x^2]\;=\;2x.

Solution 1#

  1. By definition:

    ddx[x2]  =  limh0(x+h)2x2h.\frac{d}{dx}[x^2] \;=\; \lim_{h\to 0}\frac{(x+h)^2 -x^2}{h}.
  2. Expand the numerator: (x+h)2=x2+2xh+h2.(x+h)^2 = x^2 +2xh +h^2.

    So,

    (x+h)2x2h=x2+2xh+h2x2h=2xh+h2h.\frac{(x+h)^2 -x^2}{h} = \frac{x^2 +2xh +h^2 -x^2}{h} = \frac{2xh + h^2}{h}.
  3. Factor out hh:

    2xh+h2h=2x+h.\frac{2xh +h^2}{h} = 2x +h.
  4. Now take the limit as h0h\to 0. Clearly, 2x+h2x2x +h \to 2x.

  5. Hence, ddx[x2]=2x\frac{d}{dx}[x^2] = \boxed{2x}.


Self-Check 2#

Problem: Differentiate f(x)=7x43x+10f(x)= 7x^4 -3x +10 using Power, Sum, and Constant Rules.

Solution 2#

  • Term by term:
    1. ddx[7x4]=74x3=28x3.\frac{d}{dx}[7x^4] = 7\cdot 4x^{3}=28x^3.
    2. ddx[3x]=3.\frac{d}{dx}[-3x] = -3.
    3. ddx[10]=0.\frac{d}{dx}[10] = 0.

Putting it all together:

f(x)=28x33.f'(x)= 28x^3 -3.

Self-Check 3#

Problem: Differentiate g(x)=x5lnxg(x)= x^5 \ln x using the Product Rule. Assume x>0x>0.

Solution 3#

  1. Let u(x)=x5u(x)= x^5 and v(x)=lnxv(x)= \ln x.

  2. Then u(x)=5x4u'(x)= 5x^4 and v(x)=1xv'(x)= \frac{1}{x}.

  3. Product Rule:

    g(x)=u(x)v(x)+u(x)v(x)=(5x4)(lnx)+(x5)(1x).g'(x)= u'(x)\,v(x) + u(x)\,v'(x) = (5x^4)(\ln x) + (x^5)\left(\frac{1}{x}\right).
  4. Simplify the second term:

    (x5)(1x)=x4.(x^5)\left(\frac{1}{x}\right) = x^4.
  5. Therefore,

    g(x)=5x4lnx+x4=x4(5lnx+1).g'(x)= 5x^4 \ln x + x^4 = x^4(5\ln x + 1).

Self-Check 4#

Problem: Differentiate h(x)=sinxx2h(x)= \frac{\sin x}{x^2} using the Quotient Rule.

Solution 4#

  1. Let u(x)=sinxu(x)= \sin x and v(x)=x2v(x)= x^2.

  2. Then u(x)=cosxu'(x)= \cos x and v(x)=2xv'(x)= 2x.

  3. Quotient Rule:

    h(x)=u(x)v(x)u(x)v(x)(v(x))2=(cosx)(x2)(sinx)(2x)(x2)2.h'(x)= \frac{u'(x)\,v(x) - u(x)\,v'(x)}{(v(x))^2} = \frac{(\cos x)(x^2) -(\sin x)(2x)}{(x^2)^2}.
  4. Simplify numerator and denominator:

    =x2cosx2xsinxx4=x2cosxx42xsinxx4=cosxx22sinxx3.= \frac{x^2 \cos x -2x \sin x}{x^4} = \frac{x^2\cos x}{x^4} - \frac{2x\sin x}{x^4} = \frac{\cos x}{x^2} - \frac{2\sin x}{x^3}.
  5. Final derivative:

    h(x)=cosxx22sinxx3.h'(x)= \boxed{\frac{\cos x}{x^2} - \frac{2\sin x}{x^3}}.

Self-Check 5#

Problem: Find the derivatives of each of the following trigonometric functions:

  1. p(x)=tanxp(x)= \tan x
  2. q(x)=secxq(x)= \sec x

Solution 5#

  1. p(x)=tanxp(x)= \tan x

    • Recall tanx=sinxcosx\tan x= \frac{\sin x}{\cos x}. Using the quotient rule:

      p(x)=(cosx)(cosx)(sinx)(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x.p'(x)= \frac{(\cos x)(\cos x) -(\sin x)(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x.

    So, ddx[tanx]=sec2x.\frac{d}{dx}[\tan x]= \sec^2 x.

  2. q(x)=secxq(x)= \sec x

    • secx=1cosx\sec x= \frac{1}{\cos x}. Using the quotient rule or known identities:

      q(x)=secxtanx.q'(x)= \sec x \tan x.

    Alternatively, you can do ddx[secx]=secxtanx\frac{d}{dx}[\sec x]= \sec x \tan x directly, if you’ve memorized it.

Hence, the results:

ddx[tanx]=sec2xandddx[secx]=secxtanx.\frac{d}{dx}[\tan x]= \sec^2 x \quad\text{and}\quad \frac{d}{dx}[\sec x]= \sec x \tan x.
CalcBC Ch2 - Differentiation Part 1
https://mashiroisasleep.github.io/posts/calcbc/calcnotes2/
Author
Mashiro
Published at
2025-04-02