Calculus I Lecture Notes: Functions, Limits, Derivatives, and Integration

Chapter 1: Functions

1.1 Objectives

  • Introduce the concept of a function with examples and study different classes of functions.
  • Discuss methods of finding the domain, range, zeros, and singularities of real-valued functions.
  • Analyze injective (one-to-one), surjective (onto), and bijective functions.
  • Explore inverses of functions and the composition of functions.
  • Understand the differences and similarities between several types of functions.

1.2 Learning Outcomes

  • Define a function; identify different types of functions and distinguish relations that are not functions.
  • Determine the domain and range that makes a rule a function.
  • Investigate the injectiveness, surjectiveness, and inverse of different functions.
  • Establish the composition of two or more functions.

1.4 Introduction and Definitions

  • A function is a means to describe the real world in mathematical terms (e.g., the area of circle CC as a function of its radius rr).
  • Definition 1.1: Function: Let XX and YY be two nonempty sets. A function f:XYf: X \rightarrow Y is a rule which associates to each element xx of set XX a unique element y=f(x)y = f(x) in YY. Alternatively: a relation RR from XX to YY is a function if for every xXx \in X, there corresponds exactly one yYy \in Y.
  • Definition 1.2: Domain, Codomain, and Range:
    • Domain: The set XX of all allowed xx-values. Denoted by Dom(f)\text{Dom}(f) or D(f)D(f).
    • Independent Variable: xx, which takes values in the domain.
    • Dependent Variable: yy, whose value depends on xx.
    • Image: For a particular x1x_1, the value y1=f(x1)y_1 = f(x_1) is the image of x1x_1.
    • Preimage: x1x_1 is the preimage of y1y_1.
    • Codomain: The set YY in the definition f:XYf: X \rightarrow Y.
    • Range: The set of all admissible yy-values as xx goes through its domain. Denoted by Ran(f)={yY:f(x)=y,xD(f)}\text{Ran}(f) = \{y \in Y : f(x) = y, x \in D(f)\}.

1.5 Classes or Types of Functions

  • 1. Linear Functions: y=f(x)=mx+cy = f(x) = mx + c (where mm and cc are constants). The graph is a straight line with gradient mm and yy-intercept cc.
  • 2. Constant Functions: y=f(x)=cy = f(x) = c. A special case of linear functions where m=0m = 0.
  • 3. Quadratic Functions: y=f(x)=ax2+bx+cy = f(x) = ax^2 + bx + c (where a,b,ca, b, c are constants and a0a \neq 0).
  • 4. Polynomial Functions: y=Pn(x)=a0+a1x+a2x2++anxny = P_n(x) = a_0 + a_1x + a_2x^2 + \dots + a_nx^n (an0a_n \neq 0). Constants aia_i are coefficients and nn is a non-negative integer.
  • 5. Power Functions: f(x)=xrf(x) = x^r (where rr is any real number).
  • 6. Rational Functions: Ratio of two polynomials y=f(x)=P(x)Q(x)y = f(x) = \frac{P(x)}{Q(x)} (where Q(x)0Q(x) \neq 0).
  • 7. Algebraic Functions: Roots of an equation of degree nn in yy whose coefficients are rational functions of xx. Functions not algebraic are called Transcendental (includes trigonometric, logarithmic, exponential, and hyperbolic functions).
  • 8. Trigonometric Functions: Involve ratios such as sin(x),cos(x),tan(x),csc(x),sec(x),\sin(x), \cos(x), \tan(x), \csc(x), \sec(x), or cot(x)\cot(x).
  • 9. Inverse Trigonometric Functions: Involve inverses such as arcsin(x),arccos(x),\arcsin(x), \arccos(x), or arctan(x)\arctan(x).
  • 10. Exponential Functions: f(x)=exf(x) = e^x or f(x)=axf(x) = a^x (a>0a > 0). Series expansion: ex=n=0(xnn!)e^x = \sum_{n=0}^{\infty} (\frac{x^n}{n!}).
  • 11. Hyperbolic Functions:
    • sinh(x)=exex2\sinh(x) = \frac{e^x - e^{-x}}{2}
    • cosh(x)=ex+ex2\cosh(x) = \frac{e^x + e^{-x}}{2}
    • tanh(x)=exexex+ex\tanh(x) = \frac{e^x - e^{-x}}{e^x + e^{-x}}
    • csch(x)=2exex\text{csch}(x) = \frac{2}{e^x - e^{-x}}, sech(x)=2ex+ex\text{sech}(x) = \frac{2}{e^x + e^{-x}}, coth(x)=ex+exexex\text{coth}(x) = \frac{e^x + e^{-x}}{e^x - e^{-x}}.
  • 13. Modulus (Absolute Value) Function: f(x)=x=x2f(x) = |x| = \sqrt{x^2}. Defined as xx if x0x \geq 0 and x-x if x<0x < 0.
  • 14. Characteristic Function: χS(x)=1\chi_S(x) = 1 if xSx \in S and 00 if xSx \notin S.
  • 15. Floor Function: x\lfloor x \rfloor is the greatest integer x\leq x. Example: 2.34=2\lfloor 2.34 \rfloor = 2.
  • 16. Ceiling Function: x\lceil x \rceil is the smallest integer x\geq x. Example: 2.34=3\lceil 2.34 \rceil = 3.
  • 18. Euler’s Form: eix=cos(x)+isin(x)e^{ix} = \cos(x) + i\sin(x).
  • 19. Periodic Functions: f(x+T)=f(x)f(x + T) = f(x) for a period T>0T > 0. Smallest TT is the primitive period.
  • 20. Odd Functions: f(x)=f(x)f(-x) = -f(x). Example: x3x^3 and sin(x)\sin(x).
  • 21. Even Functions: f(x)=f(x)f(-x) = f(x). Example: x2x^2 and cos(x)\cos(x).

1.7 Monotonic Functions

  • Increasing: f(x1)f(x2)f(x_1) \leq f(x_2) whenever x1<x2x_1 < x_2.
  • Strictly Increasing: f(x1)<f(x2)f(x_1) < f(x_2) whenever x1<x2x_1 < x_2.
  • Decreasing: f(x1)f(x2)f(x_1) \geq f(x_2) whenever x1<x2x_1 < x_2.
  • Strictly Decreasing: f(x1)>f(x2)f(x_1) > f(x_2) whenever x1<x2x_1 < x_2.

1.8 Zeros and Singularities

  • Zero: The value xx for which f(x)=0f(x) = 0.
  • Singularity: For a rational function f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)}, the value of xx for which Q(x)=0Q(x) = 0.

1.9 Injective, Surjective, and Bijective Functions

  • Injective (One-to-One): f(x1)=f(x2)    x1=x2f(x_1) = f(x_2) \implies x_1 = x_2.
  • Surjective (Onto): Every element in the codomain has a preimage; Range = Codomain.
  • Bijective: Both injective and surjective.

1.10 Composite Functions

  • Let f:XYf: X \rightarrow Y and g:YZg: Y \rightarrow Z. The composition is h(x)=(gf)(x)=g(f(x))h(x) = (g \circ f)(x) = g(f(x)).
  • Example: If g(x)=2x+3g(x) = 2x + 3 and f(x)=x2+xf(x) = x^2 + x, then g(f(x))=2(x2+x)+3=2x2+2x+3g(f(x)) = 2(x^2 + x) + 3 = 2x^2 + 2x + 3.

1.11 Inverse Functions

  • A function g=f1g = f^{-1} exists if ff is bijective. It satisfies g(f(x))=xg(f(x)) = x and f(g(y))=yf(g(y)) = y.
  • Guideline to find f1f^{-1}: Verify bijectivity, solve y=f(x)y = f(x) for xx to get x=f1(y)x = f^{-1}(y), and verify the composite conditions.

Chapter 2: Limits and Continuity

2.4 Limit of a Function

  • Left Hand Limit: f(x)lf(x) \rightarrow l as xx0x \rightarrow x_0^- if for ϵ>0\epsilon > 0, δ>0\exists \delta > 0 such that f(x)l<ϵ|f(x) - l| < \epsilon when x0δ<x<x0x_0 - \delta < x < x_0.
  • Right Hand Limit: f(x)lf(x) \rightarrow l as xx0+x \rightarrow x_0^+ if for ϵ>0\epsilon > 0, δ>0\exists \delta > 0 such that f(x)l<ϵ|f(x) - l| < \epsilon when x0<x<x0+δx_0 < x < x_0 + \delta.
  • Limit of a Function: f(x)f(x) has limit ll at x=x0x = x_0 iff the left and right hand limits both exist and are equal.
  • Definition 2.3: limxx0f(x)=l\lim_{x \rightarrow x_0} f(x) = l if for any ϵ>0\epsilon > 0, δ>0\exists \delta > 0 such that 0<xx0<δ    f(x)l<ϵ0 < |x - x_0| < \delta \implies |f(x) - l| < \epsilon.

2.5 Properties of Limits

  • 1. Limits are unique.
  • 2. limxak=k\lim_{x \rightarrow a} k = k (constant).
  • 3. Sum/Difference: lim[f(x)±g(x)]=limf(x)±limg(x)\lim [f(x) \pm g(x)] = \lim f(x) \pm \lim g(x).
  • 4. Product: lim[f(x)g(x)]=(limf(x))(limg(x))\lim [f(x)g(x)] = (\lim f(x))(\lim g(x)).
  • 5. Scalar: lim[kf(x)]=klimf(x)\lim [kf(x)] = k \lim f(x).
  • 6. Quotient: lim[f(x)g(x)]=limf(x)limg(x)\lim [\frac{f(x)}{g(x)}] = \frac{\lim f(x)}{\lim g(x)} (given limg(x)0\lim g(x) \neq 0).

2.9 Continuity

  • Definition 2.9: ff is continuous at x=ax = a if:
    • 1. f(a)f(a) exists.
    • 2. limxaf(x)\lim_{x \rightarrow a} f(x) exists.
    • 3. limxaf(x)=f(a)\lim_{x \rightarrow a} f(x) = f(a).
  • Rational functions are continuous except at the zeros of the denominator.

Chapter 3: The Derivative

3.4 Fundamentals and Definitions

  • The slope mm of the tangent line to the graph of ff at P(a,f(a))P(a, f(a)) is the derivative f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \rightarrow 0} \frac{f(a+h) - f(a)}{h}.
  • Finding the derivative this way is called differentiation from first principles.
  • If y=f(x)y = f(x), the derivative is dydx=limΔx0ΔyΔx\frac{dy}{dx} = \lim_{\Delta x \rightarrow 0} \frac{\Delta y}{\Delta x}.

3.6 Rules of Differentiation

  • Sum/Difference Rule: ddx[f(x)±g(x)]=f(x)±g(x)\frac{d}{dx}[f(x) \pm g(x)] = f'(x) \pm g'(x).
  • Constant Multiple: ddx[cf(x)]=cf(x)\frac{d}{dx}[cf(x)] = cf'(x).
  • Power Rule: ddx[xn]=nxn1\frac{d}{dx}[x^n] = nx^{n-1}.
  • Product Rule: ddx[uv]=udvdx+vdudx\frac{d}{dx}[uv] = u\frac{dv}{dx} + v\frac{du}{dx}.
  • Quotient Rule: ddx[uv]=vdudxudvdxv2\frac{d}{dx}[\frac{u}{v}] = \frac{v\frac{du}{dx} - u\frac{dv}{dx}}{v^2}.
  • Chain Rule: If y=h(g(x))y = h(g(x)), let u=g(x)u = g(x), then dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}.
  • Leibnitz Rule: For the nn-th derivative of a product uvuv:     Dn(uv)=Dn(u)v+(n1)Dn1(u)D(v)+(n2)Dn2(u)D2(v)++uDn(v)D^n(uv) = D^n(u)v + \binom{n}{1}D^{n-1}(u)D(v) + \binom{n}{2}D^{n-2}(u)D^2(v) + \dots + uD^n(v).

3.7 Derivatives of Transcendental Functions

  • Logarithmic: ddx(ln(x))=1x\frac{d}{dx}(\ln(x)) = \frac{1}{x}. For general base: ddx(loga(u))=1uln(a)dudx\frac{d}{dx}(\log_a(u)) = \frac{1}{u \ln(a)} \frac{du}{dx}.
  • Exponential: ddx(ex)=ex\frac{d}{dx}(e^x) = e^x. For general base: ddx(au)=auln(a)dudx\frac{d}{dx}(a^u) = a^u \ln(a) \frac{du}{dx}.
  • Hyperbolic:
    • ddx(sinh(u))=cosh(u)dudx\frac{d}{dx}(\sinh(u)) = \cosh(u) \frac{du}{dx}
    • ddx(cosh(u))=sinh(u)dudx\frac{d}{dx}(\cosh(u)) = \sinh(u) \frac{du}{dx}
    • ddx(tanh(u))=sech2(u)dudx\frac{d}{dx}(\tanh(u)) = \text{sech}^2(u) \frac{du}{dx}
  • Inverse Trigonometric:
    • ddx(arcsin(u))=11u2dudx\frac{d}{dx}(\arcsin(u)) = \frac{1}{\sqrt{1-u^2}} \frac{du}{dx}
    • ddx(arccos(u))=11u2dudx\frac{d}{dx}(\arccos(u)) = \frac{-1}{\sqrt{1-u^2}} \frac{du}{dx}
    • ddx(arctan(u))=11+u2dudx\frac{d}{dx}(\arctan(u)) = \frac{1}{1+u^2} \frac{du}{dx}

3.12 Applications of Differentiation

  • L’Hospital’s Rule: If a limit f(x)g(x)\frac{f(x)}{g(x)} results in 00\frac{0}{0} or \frac{\infty}{\infty}, then limf(x)g(x)=limf(x)g(x)\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)}.
  • Critical Points: Points where f(c)=0f'(c) = 0.
  • Maximum and Minimum:
    • First Derivative Test: If ff' changes from positive to negative, it is a local maximum. If from negative to positive, a local minimum.
    • Second Derivative Test: If f(p)=0f'(p) = 0 and f(p)<0f''(p) < 0, there is a local maximum. If f(p)>0f''(p) > 0, a local minimum.
  • Rolle’s Theorem: If ff is continuous on [a,b][a, b], differentiable on (a,b)(a, b), and f(a)=f(b)f(a) = f(b), then p(a,b)\exists p \in (a, b) such that f(p)=0f'(p) = 0.
  • Lagrange’s Mean Value Theorem: f(b)f(a)ba=f(p)\frac{f(b) - f(a)}{b - a} = f'(p) for some p(a,b)p \in (a, b).

Chapter 4: Integration

4.4 The Indefinite Integral

  • Integration is finding the antiderivative. If ddxF(x)=f(x)\frac{d}{dx}F(x) = f(x), then f(x)dx=F(x)+C\int f(x) dx = F(x) + C.
  • Standard Integrals:
    • xndx=xn+1n+1+c\int x^n dx = \frac{x^{n+1}}{n+1} + c (for n1n \neq -1)
    • 1xdx=lnx+c\int \frac{1}{x} dx = \ln|x| + c
    • exdx=ex+c\int e^x dx = e^x + c
    • cos(x)dx=sin(x)+c\int \cos(x) dx = \sin(x) + c
    • sin(x)dx=cos(x)+c\int \sin(x) dx = -\cos(x) + c

4.5 Methods of Integration

  • 1. Substitution: Let x=x(t)x = x(t), then f(x)dx=f(x(t))dxdtdt\int f(x) dx = \int f(x(t)) \frac{dx}{dt} dt.
  • 2. Integration by Parts: Derived from the product rule: udv=uvvdu\int u \, dv = uv - \int v \, du.
  • 3. Partial Fractions: Resolving a rational function f(x)g(x)\frac{f(x)}{g(x)} into simpler fractions based on the factors of g(x)g(x).
    • Linear factors: Axr\frac{A}{x-r}.
    • Quadratic factors: Bx+Cx2+px+q\frac{Bx+C}{x^2+px+q}.
  • 4. Reduction Formulas: Reducing higher powers to lower powers. Example for In=tann(x)dxI_n = \int \tan^n(x) dx:     In=tann1(x)n1In2I_n = \frac{\tan^{n-1}(x)}{n-1} - I_{n-2}.

Chapter 5: The Definite Integral and Applications

5.4 Introduction and Area

  • Definite Integral: The limit of a Riemann Sum: limnr=1nf(ξr)δr=abf(x)dx\lim_{n \rightarrow \infty} \sum_{r=1}^n f(\xi_r) \delta_r = \int_a^b f(x) dx.
  • Fundamental Theorem: abf(x)dx=F(b)F(a)\int_a^b f(x) dx = F(b) - F(a).
  • The value represents the area under the curve y=f(x)y = f(x) from x=ax = a to x=bx = b.

5.5 Properties of Definite Integrals

  • abf(x)dx=baf(x)dx\int_a^b f(x) dx = -\int_b^a f(x) dx
  • abf(x)dx=acf(x)dx+cbf(x)dx\int_a^b f(x) dx = \int_a^c f(x) dx + \int_c^b f(x) dx
  • 0af(x)dx=0af(ax)dx\int_0^a f(x) dx = \int_0^a f(a - x) dx
  • Derivative of an integral: ddxaxf(t)dt=f(x)\frac{d}{dx} \int_a^x f(t) dt = f(x).

5.6 - 5.8 Geometric Applications

  • Area between two curves: A=ab[f(x)g(x)]dxA = \int_a^b [f(x) - g(x)] dx.
  • Arc Length: L=ab1+[f(x)]2dxL = \int_a^b \sqrt{1 + [f'(x)]^2} dx.
  • Solid of Revolution (Volume):
    • About xx-axis: V=πaby2dxV = \pi \int_a^b y^2 dx.
    • About yy-axis: V=πabx2dyV = \pi \int_a^b x^2 dy.
  • Mean Value of a Function: yˉ=1baabydx\bar{y} = \frac{1}{b - a} \int_a^b y \, dx.

5.10 Moment of Inertia

  • Definition: I=miri2I = \sum m_i r_i^2. For continuous bodies, use integrals.
  • Parallel Axis Theorem: I=IG+Ma2I = I_G + Ma^2 (where IGI_G is through mass center).
  • Perpendicular Axis Theorem: Iz=Ix+IyI_z = I_x + I_y.
  • Specific Results:
    • Thin Rod (length 2l2l): Icenter=13Ml2I_{center} = \frac{1}{3}Ml^2.
    • Circular Disc (radius aa): Icenter=12Ma2I_{center} = \frac{1}{2}Ma^2.
    • Sphere (radius rr): I=25Mr2I = \frac{2}{5}Mr^2.

5.11 Differential Equations

  • Focuses on Ordinary Differential Equations (ODE) solvable by separation of variables.
  • General Form: dydx=f(x)g(y)    1g(y)dy=f(x)dx\frac{dy}{dx} = f(x)g(y) \implies \int \frac{1}{g(y)} dy = \int f(x) dx.

5.12 - 5.14 Science, Engineering, and Economic Applications

  • Displacement: s(t)=v(t)dts(t) = \int |v(t)| dt.
  • Work Done: W=abF(s)dsW = \int_a^b F(s) ds. Hooke’s Law for springs: F=kx    W=kxdxF = kx \implies W = \int kx \, dx.
  • Growth and Decay: dpdt=kp    p(t)=p0ekt\frac{dp}{dt} = kp \implies p(t) = p_0 e^{kt}.
    • Half-life is the time for a substance to decay to half its original amount.
  • Economics:
    • Total Cost: C(x)=C(x)dxC(x) = \int C'(x) dx (where C(x)C'(x) is marginal cost).
    • Total Revenue: r(x)=M(x)dxr(x) = \int M(x) dx (where M(x)M(x) is marginal revenue).