Elementary Mathematics III: Functions, Calculus, and Applications

The Concept and Foundation of Mathematical Functions

A function is the fundamental mathematical means by which real-world phenomena are described. It represents an input-output relation where for every unique input xx, there is assigned one and only one output element yy. Formally, let XX and YY be two non-empty sets; a function f:X→Yf: X \rightarrow Y is a rule assigning to each element x∈Xx \in X a unique element y∈Yy \in Y, written as y=f(x)y = f(x). Alternatively, it is a relation RR from XX to YY such that for any x∈Xx \in X, there exists exactly one y∈Yy \in Y such that xRyxRy. If xRy1xRy_1 and xRy2xRy_2, then y1=y2y_1 = y_2. Set XX is defined as the domain (Dom(f)Dom(f)), comprised of independent variables. The set YY is the codomain. The range (Ran(f)Ran(f)) is the set of all admissible yy-values achieved as xx traverses the domain, defined as R(f)=y∈Y:f(x)=y;x∈D(f)R(f) = {y \in Y : f(x) = y; x \in D(f)}.

To illustrate these definitions, consider Example 1 where X1=1,2,3X_1 = {1, 2, 3}, Y1=−73,−1,12,2,2,4,5,6Y_1 = {-\frac{7}{3}, -1, \frac{1}{2}, \sqrt{2}, 2, 4, 5, 6}, and f(x)=2xf(x) = 2x. This defines a function because every element in X1X_1 has a unique image in Y1Y_1; the range is 2,4,6{2, 4, 6}. Conversely, in Example 2, X2=0,4X_2 = {0, 4} and g(x)=±xg(x) = \pm \sqrt{x} does not define a function because the element 44 maps to both 22 and −2-2 in the codomain, violating uniqueness. Remark 5 notes that when a formula y=f(x)y = f(x) is given without an explicit domain, the domain consists of all xx for which the formula evaluates as a real number, excluding division by zero and even roots of negative numbers. A function can also be represented as a set of ordered pairs (x,y)(x, y), often visualized as coordinates on a plane.

Detailed Classification of Functions

Mathematics utilizes various classes of functions to model different behaviors. A linear function takes the form y=f(x)=mx+cy = f(x) = mx + c, representing a straight line with gradient mm and yy-intercept cc. Constant functions are a sub-case of linear functions where f(x)=cf(x) = c and m=0m = 0. Quadratic functions follow f(x)=ax2+bx+cf(x) = ax^2 + bx + c with a≠0a \neq 0. Power functions are defined as f(x)=xrf(x) = x^r for any real number rr, such as h(x)=x−2h(x) = x^{-2}. Polynomial functions of degree nn are expressed as Pn(x)=a0+a1x+a2x2+⋯+anxnP_n(x) = a_0 + a_1x + a_2x^2 + \dots + a_nx^n where an≠0a_n \neq 0. Rational functions are quotients of polynomials f(x)=P(x)Q(x)f(x) = \frac{P(x)}{Q(x)} where Q(x)≠0Q(x) \neq 0. Trigonometric functions involve ratios like sine and cosine, while inverse trigonometric functions involve their arcs counterparts like sin⁡−1(x)\sin^{-1}(x).

Exponential functions take the form f(x)=axf(x) = a^x or f(x)=exf(x) = e^x, where exe^x can be expanded as the series ∑n=0∞xnn!\sum_{n=0}^{\infty} \frac{x^n}{n!}. Hyperbolic functions are defined via exponentials: sinh⁡(x)=ex−e−x2\sinh(x) = \frac{e^x - e^{-x}}{2} and cosh⁡(x)=ex+e−x2\cosh(x) = \frac{e^x + e^{-x}}{2}. Logarithmic functions involve logarithms such as log⁡10(x)\log_{10}(x) or the natural logarithm ln⁡∣x∣\ln|x|. The modulus or absolute value function is f(x)=∣x∣f(x) = |x|, defined piecewise as xx if x≥0x \ge 0 and −x-x if x<0x < 0. The characteristic function ϕS(x)\phi_S(x) returns 11 if x∈Sx \in S and 00 otherwise. Integer functions include the floor function ⌊x⌋\lfloor x \rfloor (greatest integer ≤x\le x) and the ceiling function ⌈x⌉\lceil x \rceil (smallest integer ≥x\ge x). Periodic functions exist if there is a T>0T > 0 such that f(x+T)=f(x)f(x + T) = f(x) for all xx. A function is even if f(−x)=f(x)f(-x) = f(x) and odd if f(−x)=−f(x)f(-x) = -f(x); this property is referred to as parity.

Determination of Domain and Range

The domain and range determine the practical boundaries of a rule. For f(x)=x2f(x) = x^2, the domain is all real numbers R=(−∞,∞)R = (-\infty, \infty) and the range is [0,∞)[0, \infty) because squares are non-negative. For f(x)=1xf(x) = \frac{1}{x}, the domain and range are both R∖0R \setminus {0}. More complex cases like f(x)=4x2−1f(x) = \sqrt{4x^2 - 1} require 4x2−1≥04x^2 - 1 \ge 0, leading to a domain of (−∞,−12]∪[12,∞)(-\infty, -\frac{1}{2}] \cup [\frac{1}{2}, \infty). For f(x)=14−x2f(x) = \frac{1}{\sqrt{4 - x^2}}, the expression is real only if 4−x2>04 - x^2 > 0, yielding a domain of (−2,2)(-2, 2). In Example 7, f(x)=log⁡(x2−4)f(x) = \log(x^2 - 4) requires x2−4>0x^2 - 4 > 0, which results in a domain of (−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty). To find the range algebraically, solve y=f(x)y = f(x) for xx and identify what yy values allow xx to be real. For f(x)=e2x+4f(x) = e^{2x+4}, setting y=e2x+4y = e^{2x+4} gives x=12(ln⁡(y)−4)x = \frac{1}{2}(\ln(y) - 4), which requires y>0y > 0, so the range is (0,∞)(0, \infty).

Monotonicity, Injectivity, and Bijectivity

Monotonicity describes the direction of a function. ff is increasing on [a,b][a, b] if f(x1)≤f(x2)f(x_1) \le f(x_2) whenever x1<x2x_1 < x_2, and strictly increasing if f(x1)<f(x2)f(x_1) < f(x_2). Similarly, a function is decreasing if f(x1)≥f(x2)f(x_1) \ge f(x_2) and strictly decreasing if f(x1)>f(x2)f(x_1) > f(x_2). For instance, f(x)=2xf(x) = 2x is strictly increasing on [0,2][0, 2], while g(x)=1xg(x) = \frac{1}{x} is strictly decreasing on [1,3][1, 3].

A function is injective (one-to-one) if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2. It is surjective (onto) if every element in the codomain has a preimage in the domain (range equals codomain). A function is bijective if it is both injective and surjective. Consider f(x)=2x+1f(x) = 2x + 1 from RR to RR: since 2a+1=2b+12a + 1 = 2b + 1 implies a=ba = b, it is injective; since x=y−12x = \frac{y-1}{2} exists for all y∈Ry \in R, it is surjective, thus bijective. Conversely, f:R→Rf: R \rightarrow R where f(x)=x2f(x) = x^2 is not injective because f(−2)=f(2)=4f(-2) = f(2) = 4, and not surjective because negative reals have no preimages.

Composition and Inverse Functions

Composite functions involve applying one function to the result of another. If f:X→Yf: X \rightarrow Y and g:Y→Zg: Y \rightarrow Z, the composition h=g∘fh = g \circ f is defined by h(x)=g(f(x))h(x) = g(f(x)). In general, g(f(x))≠f(g(x))g(f(x)) \neq f(g(x)). For g(x)=2x+3g(x) = 2x + 3 and f(x)=x2+xf(x) = x^2 + x, g(f(5))=g(30)=63g(f(5)) = g(30) = 63, whereas f(g(5))=f(13)=182f(g(5)) = f(13) = 182.

An inverse function f−1f^{-1} exists only for bijective functions. If f:X→Yf: X \rightarrow Y is bijective, f−1:Y→Xf^{-1}: Y \rightarrow X satisfies f−1(f(x))=xf^{-1}(f(x)) = x and f(f−1(y))=yf(f^{-1}(y)) = y. To find an inverse: 1. Verify bijectivity; 2. Solve y=f(x)y = f(x) for xx to get x=f−1(y)x = f^{-1}(y); 3. Interchange variables to write f−1(x)f^{-1}(x). For f(x)=3x+11f(x) = 3x + 11, solving for xx gives x=y−113x = \frac{y-11}{3}, thus f−1(x)=x−113f^{-1}(x) = \frac{x-11}{3}. In Example 48, the inverse of g(x)=3x+5x−7g(x) = \frac{3x+5}{x-7} is found to be g−1(x)=7x+5x−3g^{-1}(x) = \frac{7x+5}{x-3}.

Limits and Continuity of Functions

The limit describes the behavior of a function f(x)f(x) as xx approaches a point bb. The left-hand limit is written lim⁡x→b−f(x)=l\lim_{x \rightarrow b^-} f(x) = l and the right-hand limit as lim⁡x→a+f(x)=l\lim_{x \rightarrow a^+} f(x) = l. The limit lim⁡x→bf(x)=l\lim_{x \rightarrow b} f(x) = l exists if and only if both the left-hand and right-hand limits are equal to ll. The formal "ϵ−δ\epsilon-\delta" definition states that for every ϵ>0\epsilon > 0, there exists a δ>0\delta > 0 such that ∣f(x)−l∣<ϵ|f(x) - l| < \epsilon whenever 0<∣x−b∣<δ0 < |x - b| < \delta. For example, to prove lim⁡x→2(2x+3)=7\lim_{x \rightarrow 2} (2x+3) = 7, we observe that ∣(2x+3)−7∣=∣2x−4∣=2∣x−2∣|(2x+3) - 7| = |2x - 4| = 2|x - 2|. Choosing δ=ϵ2\delta = \frac{\epsilon}{2} satisfies the condition.

Properties of limits include: the limit of a sum is the sum of limits; the limit of a product is the product of limits; and the limit of a constant is the constant itself. A function is continuous at point aa if lim⁡x→af(x)\lim_{x \rightarrow a} f(x) exists and equals f(a)f(a). Polynomial functions are continuous everywhere. Rational functions are continuous except at their singularities (where the denominator is zero). Indeterminate forms like 00\frac{0}{0} or ∞∞\frac{\infty}{\infty} can often be evaluated using L'Hopital's Rule, which states lim⁡x→x0f(x)g(x)=lim⁡x→x0f′(x)g′(x)\lim_{x \rightarrow x_0} \frac{f(x)}{g(x)} = \lim_{x \rightarrow x_0} \frac{f'(x)}{g'(x)}. Frequently appearing limits include lim⁡θ→0sin⁡(θ)θ=1\lim_{\theta \rightarrow 0} \frac{\sin(\theta)}{\theta} = 1 and lim⁡n→∞(1+xn)n=ex\lim_{n \rightarrow \infty} (1 + \frac{x}{n})^n = e^x.

Fundamentals of Differentiation

The derivative f′(a)f'(a) represents the slope of the tangent line to the curve y=f(x)y = f(x) at point aa. It is defined formally as the limit of the difference quotient: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \rightarrow 0} \frac{f(x+h) - f(x)}{h}. This process is called differentiation from first principles. If this limit exists, the function is differentiable. Notably, if a function is differentiable at a point, it is also continuous there, though the converse is not always true (e.g., f(x)=∣x∣f(x) = |x| is continuous but not differentiable at x=0x=0). The derivative can also be viewed as the rate of change of a function, used in physics for velocity (v(t)=dsdtv(t) = \frac{ds}{dt}) and acceleration (a(t)=dvdta(t) = \frac{dv}{dt}).

Basic rules of differentiation include:

  1. Power Rule: ddxxn=nxn−1\frac{d}{dx} x^n = nx^{n-1}.
  2. Sum/Difference Rule: [f(x)±g(x)]′=f′(x)±g′(x)[f(x) \pm g(x)]' = f'(x) \pm g'(x).
  3. Product Rule: [f(x)g(x)]′=f(x)g′(x)+g(x)f′(x)[f(x)g(x)]' = f(x)g'(x) + g(x)f'(x).
  4. Quotient Rule: [f(x)g(x)]′=g(x)f′(x)−f(x)g′(x)[g(x)]2[\frac{f(x)}{g(x)}]' = \frac{g(x)f'(x) - f(x)g'(x)}{[g(x)]^2}.
  5. Chain Rule: For composite functions y=h(g(x))y = h(g(x)), dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} where u=g(x)u = g(x).

Leibnitz Rule provides a formula for the nn-th derivative of a product: (UV)n=∑r=0n(nr)Un−rVr(UV)^n = \sum_{r=0}^{n} \binom{n}{r} U^{n-r} V^r. For example, the third derivative of x2cos⁡(x)x^2 \cos(x) can be calculated systematically using this expansion.

Advanced Differentiation and Implicit Forms

Implicit differentiation is required when a function is not expressed solely in terms of the independent variable, such as 3x2+y3+xy=3xy23x^2 + y^3 + xy = 3xy^2. To find dydx\frac{dy}{dx}, differentiate both sides with respect to xx, treating yy as a function of xx (applying the chain rule), and then solve for dydx\frac{dy}{dx}. For 8xy−16y2=x28xy - 16y^2 = x^2, the derivative results in 8[xdydx+y]−32ydydx=2x8[x \frac{dy}{dx} + y] - 32y \frac{dy}{dx} = 2x, which simplifies to dydx=14\frac{dy}{dx} = \frac{1}{4}.

Logarithmic differentiation is a technique for functions involving complicated products or powers. By taking the natural log of both sides, products become sums and powers become coefficients. For y=xsin⁡(x)y = x^{\sin(x)}, applying logarithms yields ln⁡(y)=sin⁡(x)ln⁡(x)\ln(y) = \sin(x)\ln(x), which differentiates to 1ydydx=sin⁡(x)x+ln⁡(x)cos⁡(x)\frac{1}{y} \frac{dy}{dx} = \frac{\sin(x)}{x} + \ln(x)\cos(x). The derivatives of transcendental functions are also critical: ddxex=ex\frac{d}{dx} e^x = e^x, ddxax=axln⁡(a)\frac{d}{dx} a^x = a^x \ln(a), and ddxln⁡(x)=1x\frac{d}{dx} \ln(x) = \frac{1}{x}. Hyperbolic derivatives include ddxsinh⁡(x)=cosh⁡(x)\frac{d}{dx} \sinh(x) = \cosh(x) and ddxcosh⁡(x)=sinh⁡(x)\frac{d}{dx} \cosh(x) = \sinh(x). Inverse trigonometric derivatives include ddxsin⁡−1(x)=11−x2\frac{d}{dx} \sin^{-1}(x) = \frac{1}{\sqrt{1-x^2}} and ddxtan⁡−1(x)=11+x2\frac{d}{dx} \tan^{-1}(x) = \frac{1}{1+x^2}. Inverse hyperbolic derivatives include ddxsinh⁡−1(x)=1x2+1\frac{d}{dx} \sinh^{-1}(x) = \frac{1}{\sqrt{x^2+1}} and ddxcosh⁡−1(x)=1x2−1\frac{d}{dx} \cosh^{-1}(x) = \frac{1}{\sqrt{x^2-1}} for x>1x > 1.

Optimization and Mean Value Theorems

A critical point occurs where f′(c)=0f'(c) = 0. These points are candidates for local maxima or minima. The First Derivative Test examines the sign of f′(x)f'(x) around cc: if it changes from negative to positive, cc is a local minimum; if positive to negative, it is a local maximum. The Second Derivative Test states that if f′(p)=0f'(p) = 0, then f′′(p)<0f''(p) < 0 implies a local maximum, and f′′(p)>0f''(p) > 0 implies a local minimum. If f′′(p)=0f''(p) = 0, the point may be a point of inflection.

Rolle's Theorem states that 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 there exists at least one p∈(a,b)p \in (a, b) such that f′(p)=0f'(p) = 0. The Mean Value Theorem generalizes this: there exists p∈(a,b)p \in (a, b) such that f(b)−f(a)=(b−a)f′(p)f(b) - f(a) = (b - a)f'(p), meaning the instantaneous rate of change equals the average rate of change at some point. These theorems are used for global optimization problems, such as proving that a square maximizes area for a fixed perimeter rectangle.

Integration and Anti-Derivatives

Integration is the inverse process of differentiation. The indefinite integral ∫f(x)dx=F(x)+C\int f(x)dx = F(x) + C represents the family of all anti-derivatives. Standard integrals include ∫xndx=xn+1n+1+C\int x^n dx = \frac{x^{n+1}}{n+1} + C (for n≠−1n \neq -1), ∫1xdx=ln⁡∣x∣+C\int \frac{1}{x} dx = \ln|x| + C, ∫exdx=ex+C\int e^x dx = e^x + C, and ∫cos⁡(x)dx=sin⁡(x)+C\int \cos(x) dx = \sin(x) + C.

Methods of integration include:

  1. Substitution: Converse of the chain rule. If u=g(x)u = g(x), then ∫f(g(x))g′(x)dx=∫f(u)du\int f(g(x))g'(x)dx = \int f(u)du.
  2. Integration by Parts: Derived from the product rule, ∫udvdxdx=uv−∫vdudxdx\int u \frac{dv}{dx} dx = uv - \int v \frac{du}{dx} dx. Usually, uu is chosen centered on logarithms or algebraic terms (LIATE rule).
  3. Partial Fractions: Used to integrate rational functions by decomposing them into simpler fractions based on the factors of the denominator (linear or quadratic).
  4. Reduction Formulas: Used for higher powers of integrands, such as In=∫tan⁡n(x)dx=tan⁡n−1(x)n−1−In−2I_n = \int \tan^n(x) dx = \frac{\tan^{n-1}(x)}{n-1} - I_{n-2}.

The Definite Integral and Its Geometric Applications

The definite integral ∫abf(x)dx\int_a^b f(x)dx measures the area under the curve y=f(x)y = f(x) from x=ax=a to x=bx=b. It is defined as the limit of a Riemann sum: lim⁡n→∞∑r=1nf(ξr)Δxr\lim_{n \rightarrow \infty} \sum_{r=1}^{n} f(\xi_r)\Delta x_r. The Fundamental Theorem of Calculus links this to anti-derivatives: ∫abf(x)dx=F(b)−F(a)\int_a^b f(x)dx = F(b) - F(a). If a curve lies below the xx-axis, the integral result is negative; for area calculation, the absolute value is used.

Applications include:

  1. Area Between Two Curves: If f(x)≥g(x)f(x) \ge g(x), the area is ∫ab[f(x)−g(x)]dx\int_a^b [f(x) - g(x)] dx.
  2. Arc Length: The length of a curve from aa to bb is L=∫ab1+[f′(x)]2dxL = \int_a^b \sqrt{1 + [f'(x)]^2} dx.
  3. Volumes of Solids of Revolution: Rotating a curve around the xx-axis generates a volume V=π∫aby2dxV = \pi \int_a^b y^2 dx. Rotating around the yy-axis generates V=π∫cdx2dyV = \pi \int_c^d x^2 dy.
  4. Mean Value of a Function: The average value of f(x)f(x) on [a,b][a, b] is yˉ=1b−a∫abf(x)dx\bar{y} = \frac{1}{b-a} \int_a^b f(x)dx.

Applications in Dynamics: Moment of Inertia

The moment of inertia II represents the second moment of mass, defined as I=∑miri2I = \sum m_i r_i^2 for particles or I=∫r2dmI = \int r^2 dm for continuous bodies. The radius of gyration kk is defined by Mk2=IMk^2 = I. Key theorems include the Parallel Axis Theorem: I=Mk2+Ma2I = Mk^2 + Ma^2, where aa is the distance from the center of mass axis to a parallel axis. Another theorem states that for a lamina in the xyxy-plane, the moment of inertia about the zz-axis is Iz=Ix+IyI_z = I_x + I_y.

Calculated moments for uniform-density bodies include:

  • Thin Rod of length 2l2l about its center: I=13Ml2I = \frac{1}{3}Ml^2.
  • Circular Disc of radius aa about its center: I=12Ma2I = \frac{1}{2}Ma^2.
  • Sphere of radius rr: I=25Mr2I = \frac{2}{5}Mr^2.
  • Solid Circular Cone: I=310Mr2I = \frac{3}{10}Mr^2.

Calculus in Science, Engineering, and Economics

In physics, integration calculates work done by a variable force W=∫abF(s)dsW = \int_a^b F(s)ds. For a spring with constant kk, F=kxF = kx, so work W=∫044xdx=32 JW = \int_0^4 4x dx = 32\,J. It also determines distance from velocity: S=∫t0t∣v(t)∣dtS = \int_{t_0}^t |v(t)|dt. Differential equations model growth and decay processes. The population growth model is dPdt=kP\frac{dP}{dt} = kP, leading to P(t)=P0ektP(t) = P_0e^{kt}. Radioactive decay follows dQdt=−kQ\frac{dQ}{dt} = -kQ, leading to Q(t)=Q0e−ktQ(t) = Q_0e^{-kt}, which is used to calculate the half-life of substances like radium.

In Economics, calculus determines total cost from marginal cost C(x)=∫C′(x)dxC(x) = \int C'(x)dx and total revenue from marginal revenue R(x)=∫M(x)dxR(x) = \int M(x)dx. For instance, if fixed costs are 10001000 and variable cost is 22 per unit, the total cost for 25002500 units is C(2500)=2(2500)+1000=6000C(2500) = 2(2500) + 1000 = 6000. Marginal revenue M(x)=500−30xM(x) = 500 - 30x allows the calculation of total revenue realized from selling 2020 units by integrating from 00 to 2020, resulting in 40004000 units of currency.