Original BCA Nepal study material. Units and topic order strictly follow the approved 2025 Tribhuvan University (TU) BCA curriculum outline for BCA154 (Mathematics II). All mathematical derivations, step-by-step worked solutions, definitions, diagrams, and revision questions are original pedagogical material prepared for TU BCA semester students.
Course Overview
Course Code: BCA154
Course Title: Mathematics II
Semester: 2
Credit Hours: 3
Lecture Hours: 3 Hrs/week (Total 48 Lecture Hours)
Course Type: Theory / Numerical Problem Solving
Evaluation Scheme: Internal Assessment (40%) + Final Board Examination (60%)
Mathematics II serves as the computational and analytical backbone for computer applications, algorithm analysis, artificial intelligence, graphics rendering, optimization, and economic modelling. Building directly upon the foundational algebra and single-variable functions covered in Mathematics I (BCA104), this course covers differential calculus, integral calculus, differential equations, multivariable calculus basics, and essential numerical and optimization algorithms including linear programming, Simplex methods, system solvers (Gauss-Seidel), and root-finding algorithms (Newton-Raphson).
Learning Outcomes Derived from Approved TOC
Upon successful completion of this course, students will be able to:
- Formulate and verify limits using both algebraic techniques and formal $(\epsilon, \delta)$ definitions, and determine continuity and points of discontinuity for various function classes.
- Differentiate algebraic, trigonometric, inverse circular, exponential, logarithmic, hyperbolic, and implicit functions using first principles and standard operational calculus rules.
- Compute higher-order and partial derivatives and explain the relationship between differentiability and continuity.
- Apply differential calculus to analyze curve geometry (tangents, normals, concavity, points of inflection), find extreme values (maxima and minima), evaluate indeterminate limits via L'Hospital's rule, and expand functions via Taylor and Maclaurin theorems.
- Solve rate measurement problems and applied economic optimization problems (marginal cost, marginal revenue, profit maximization).
- Evaluate indefinite and definite integrals using trigonometric substitution, integration by parts, partial fractions, and numerical quadrature (Trapezoidal and Simpson's rules).
- Apply definite integration to compute planar areas, arc lengths (rectification), surface areas, and volumes of revolution.
- Classify and solve first-order, first-degree ordinary differential equations (separable, homogeneous, exact, linear, and reducible to linear).
- Formulate and solve Linear Programming Problems (LPP) using graphical methods, the algebraic Simplex method (up to 3 variables), and construct dual programs.
- Solve systems of linear algebraic equations using Matrix Inversion, Gaussian Elimination, and Gauss-Seidel iterative methods, and find non-linear equation roots via Bisection and Newton-Raphson methods.
Unit 1: Limit and Continuity
Teaching Hours: 7
1.1 Definition of limit including epsilon-delta condition, right and left hand limit, and its interpretation
Intuitive and Geometric Meaning
The limit of a real-valued function $f(x)$ as $x$ approaches a real constant $c$ is the value $L$ that $f(x)$ gets arbitrarily close to as $x$ becomes arbitrarily close to $c$ (from either side), while $x \neq c$. We write: $$\lim_{x \to c} f(x) = L$$ Geometrically, this means that as the independent variable on the x-axis enters a punctured neighborhood of $c$, the corresponding function values on the y-axis are confined within an arbitrarily narrow horizontal band around $L$.
Formal $(\epsilon, \delta)$ Definition (Cauchy's Definition)
Let $f$ be a function defined on an open interval containing $c$, except possibly at $c$ itself. We say that $\lim_{x \to c} f(x) = L$ if for every arbitrarily small positive real number $\epsilon > 0$, there exists a corresponding positive real number $\delta > 0$ such that: $$0 < |x - c| < \delta \implies |f(x) - L| < \epsilon$$ Here:
- $\epsilon$ (epsilon) specifies the maximum acceptable error tolerance around the limit $L$ on the vertical y-axis.
- $\delta$ (delta) represents the required proximity radius around $c$ on the horizontal x-axis.
flowchart LR
subgraph Epsilon_Delta_Interpretation
A["Choose any tolerance: ε > 0"] --> B["Find radius: δ > 0"]
B --> C["When 0 < |x - c| < δ"]
C --> D["Guaranteed: |f(x) - L| < ε"]
end
Figure 1.1: Logical flow of Cauchy's Epsilon-Delta Limit Guarantee.
Step-by-Step Worked Example: $(\epsilon, \delta)$ Proof
Problem: Prove using the $(\epsilon, \delta)$ definition that $\lim_{x \to 3} (4x - 5) = 7$.
Solution:
- Identify given values: Here $f(x) = 4x - 5$, $c = 3$, and $L = 7$.
- Set up the target inequality: We require that for any $\epsilon > 0$, $|f(x) - L| < \epsilon$.
$$|(4x - 5) - 7| < \epsilon \iff |4x - 12| < \epsilon \iff 4|x - 3| < \epsilon \iff |x - 3| < \frac{\epsilon}{4}$$ - Select $\delta$: Choose $\delta = \frac{\epsilon}{4}$.
- Verify the implication: Assume $0 < |x - 3| < \delta$. Then: $$|f(x) - 7| = |4x - 12| = 4|x - 3| < 4\delta = 4\left(\frac{\epsilon}{4}\right) = \epsilon$$ Hence, whenever $0 < |x - 3| < \delta$, it follows that $|(4x - 5) - 7| < \epsilon$. By definition, $\lim_{x \to 3} (4x - 5) = 7$. $\blacksquare$
Right-Hand and Left-Hand Limits
- Left-Hand Limit (LHL): The value $f(x)$ approaches as $x$ approaches $c$ strictly from values smaller than $c$ ($x < c$): $$LHL = \lim_{x \to c^-} f(x) = \lim_{h \to 0} f(c - h), \quad h > 0$$
- Right-Hand Limit (RHL): The value $f(x)$ approaches as $x$ approaches $c$ strictly from values larger than $c$ ($x > c$): $$RHL = \lim_{x \to c^+} f(x) = \lim_{h \to 0} f(c + h), \quad h > 0$$
- Existence Theorem: The two-sided limit $\lim_{x \to c} f(x)$ exists and equals $L$ if and only if both one-sided limits exist and are equal: $$\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = L$$
1.2 Algebraic properties of limit
Let $\lim_{x \to c} f(x) = L$ and $\lim_{x \to c} g(x) = M$, where $L, M \in \mathbb{R}$, and $k$ is any real scalar:
- Constant Multiple Rule: $\lim_{x \to c} [k \cdot f(x)] = k \cdot L$
- Sum and Difference Rule: $\lim_{x \to c} [f(x) \pm g(x)] = L \pm M$
- Product Rule: $\lim_{x \to c} [f(x) \cdot g(x)] = L \cdot M$
- Quotient Rule: $\lim_{x \to c} \left[\frac{f(x)}{g(x)}\right] = \frac{L}{M}$, provided $M \neq 0$.
- Power and Root Rule: $\lim_{x \to c} [f(x)]^n = L^n$, and $\lim_{x \to c} \sqrt[n]{f(x)} = \sqrt[n]{L}$ (with $L > 0$ if $n$ is even).
- Squeeze (Sandwich) Theorem: If $g(x) \le f(x) \le h(x)$ in an open neighborhood around $c$ (except possibly at $c$) and $\lim_{x \to c} g(x) = \lim_{x \to c} h(x) = L$, then $\lim_{x \to c} f(x) = L$.
1.3 Definition and conditions of continuity and discontinuity
Formal Definition of Continuity
A function $f(x)$ is continuous at a point $x = c$ in its domain if the following three mandatory conditions are simultaneously satisfied:
- $f(c)$ is defined (i.e., $c$ belongs to the domain of $f$).
- $\lim_{x \to c} f(x)$ exists (i.e., $\lim_{x \to c^-} f(x) = \lim_{x \to c^+} f(x) = L$).
- $\lim_{x \to c} f(x) = f(c)$.
If any of these three criteria fails, $f(x)$ is said to be discontinuous at $x = c$.
Types of Discontinuities
- Removable Discontinuity: $\lim_{x \to c} f(x)$ exists, but $\lim_{x \to c} f(x) \neq f(c)$ or $f(c)$ is undefined. The discontinuity can be eliminated by defining/redefining $f(c) = L$. Example: $f(x) = \frac{x^2 - 4}{x - 2}$ at $x = 2$.
- Jump (Non-removable) Discontinuity: Both one-sided limits exist but are unequal: $\lim_{x \to c^-} f(x) \neq \lim_{x \to c^+} f(x)$. Example: Heaviside step function or signum function at $x = 0$.
- Essential (Infinite) Discontinuity: At least one of the one-sided limits approaches $\pm\infty$ or oscillates wildly. Example: $f(x) = \frac{1}{x}$ or $f(x) = \sin(1/x)$ at $x = 0$.
1.4 Continuity of algebraic, trigonometric, and exponential functions, examples, and counterexamples
- Polynomial Functions: $P(x) = a_n x^n + \dots + a_1 x + a_0$ is continuous everywhere on $(-\infty, \infty)$.
- Rational Functions: $R(x) = \frac{P(x)}{Q(x)}$ is continuous at every real point except where $Q(x) = 0$.
- Trigonometric Functions: $\sin(x)$ and $\cos(x)$ are continuous everywhere on $\mathbb{R}$. $\tan(x)$ is continuous everywhere on its domain ${x \in \mathbb{R} : x \neq \frac{\pi}{2} + k\pi, k \in \mathbb{Z}}$.
- Exponential and Logarithmic Functions: $e^x$ is continuous on $(-\infty, \infty)$; $\ln(x)$ is continuous on its open domain $(0, \infty)$.
Worked Example: Testing Piecewise Continuity
Problem: Determine if $f(x)$ is continuous at $x = 2$: $$f(x) = \begin{cases} 3x - 1 & \text{for } x < 2 \ 5 & \text{for } x = 2 \ x^2 + 1 & \text{for } x > 2 \end{cases}$$ Solution:
- $f(2) = 5$ (defined).
- $LHL = \lim_{x \to 2^-} (3x - 1) = 3(2) - 1 = 5$.
- $RHL = \lim_{x \to 2^+} (x^2 + 1) = (2)^2 + 1 = 5$.
- Since $LHL = RHL = 5$, $\lim_{x \to 2} f(x) = 5 = f(2)$. Therefore, $f(x)$ is continuous at $x = 2$.
Unit 2: Derivatives
Teaching Hours: 7
2.1 Definition and geometrical meaning of derivatives
Analytic Definition
The derivative of a function $y = f(x)$ with respect to $x$ at a point $x$ is defined as the limit of the average rate of change as the increment $\Delta x \to 0$: $$f'(x) = \frac{dy}{dx} = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x} = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$$ provided this limit exists.
Geometrical Interpretation
Geometrically, the ratio $\frac{f(x + h) - f(x)}{h}$ represents the slope of the secant line passing through the points $P(x, f(x))$ and $Q(x + h, f(x + h))$ on the curve. As $h \to 0$, point $Q$ moves along the curve towards $P$, and the secant line $PQ$ rotates into the tangent line to the curve at point $P$. Thus: $$\text{Slope of Tangent at } (x, f(x)) = m = f'(x) = \tan\theta$$
2.2 First principle (or by definition) method to differentiate functions
1. Algebraic Function: $f(x) = x^n$
By definition: $$f'(x) = \lim_{h \to 0} \frac{(x + h)^n - x^n}{h}$$ Using Binomial Theorem: $(x + h)^n = x^n + n x^{n-1} h + \frac{n(n-1)}{2} x^{n-2} h^2 + \dots + h^n$. $$f'(x) = \lim_{h \to 0} \frac{n x^{n-1} h + \frac{n(n-1)}{2} x^{n-2} h^2 + \dots + h^n}{h} = \lim_{h \to 0} \left[ n x^{n-1} + \frac{n(n-1)}{2} x^{n-2} h + \dots \right] = n x^{n-1}$$
2. Trigonometric Function: $f(x) = \sin(x)$
$$f'(x) = \lim_{h \to 0} \frac{\sin(x + h) - \sin(x)}{h}$$ Using the trigonometric identity $\sin A - \sin B = 2 \cos\left(\frac{A + B}{2}\right) \sin\left(\frac{A - B}{2}\right)$: $$f'(x) = \lim_{h \to 0} \frac{2 \cos\left(x + \frac{h}{2}\right) \sin\left(\frac{h}{2}\right)}{h} = \lim_{h \to 0} \cos\left(x + \frac{h}{2}\right) \cdot \lim_{h \to 0} \frac{\sin(h/2)}{h/2} = \cos(x) \cdot 1 = \cos(x)$$
3. Exponential Function: $f(x) = e^x$
$$f'(x) = \lim_{h \to 0} \frac{e^{x + h} - e^x}{h} = e^x \lim_{h \to 0} \frac{e^h - 1}{h} = e^x \cdot 1 = e^x$$
4. Logarithmic Function: $f(x) = \ln(x)$
$$f'(x) = \lim_{h \to 0} \frac{\ln(x + h) - \ln(x)}{h} = \lim_{h \to 0} \frac{1}{h} \ln\left(1 + \frac{h}{x}\right) = \lim_{h \to 0} \frac{1}{x} \cdot \frac{\ln(1 + h/x)}{h/x} = \frac{1}{x} \cdot 1 = \frac{1}{x}$$
2.3 Rules of derivatives
- Sum/Difference Rule: $\frac{d}{dx} [u(x) \pm v(x)] = \frac{du}{dx} \pm \frac{dv}{dx}$
- Product Rule: $\frac{d}{dx} [u \cdot v] = u \frac{dv}{dx} + v \frac{du}{dx}$
- Quotient Rule: $\frac{d}{dx} \left[\frac{u}{v}\right] = \frac{v \frac{du}{dx} - u \frac{dv}{dx}}{v^2}$ (where $v \neq 0$)
- Power Rule: $\frac{d}{dx} [x^n] = n x^{n-1}$
- Chain Rule (Function of a Function): If $y = f(u)$ and $u = g(x)$, then: $$\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$$
2.4 Derivatives of inverse circular, hyperbolic functions and implicit functions
1. Inverse Circular Functions
- $\frac{d}{dx} [\sin^{-1} x] = \frac{1}{\sqrt{1 - x^2}}$, for $|x| < 1$
- $\frac{d}{dx} [\cos^{-1} x] = -\frac{1}{\sqrt{1 - x^2}}$, for $|x| < 1$
- $\frac{d}{dx} [\tan^{-1} x] = \frac{1}{1 + x^2}$, for all $x \in \mathbb{R}$
Derivation of $\frac{d}{dx}(\tan^{-1} x)$: Let $y = \tan^{-1} x \implies x = \tan y$. Differentiating implicitly with respect to $x$: $1 = \sec^2 y \frac{dy}{dx} \implies \frac{dy}{dx} = \frac{1}{\sec^2 y} = \frac{1}{1 + \tan^2 y} = \frac{1}{1 + x^2}$.
2. Hyperbolic Functions
- $\sinh x = \frac{e^x - e^{-x}}{2} \implies \frac{d}{dx}[\sinh x] = \cosh x$
- $\cosh x = \frac{e^x + e^{-x}}{2} \implies \frac{d}{dx}[\cosh x] = \sinh x$ (Note: positive sign!)
- $\frac{d}{dx}[\tanh x] = \text{sech}^2 x$
3. Implicit Differentiation
When an equation relates $x$ and $y$ implicitly without solving explicitly for $y$ ($F(x, y) = 0$), differentiate both sides with respect to $x$, treating $y$ as an unknown differentiable function of $x$ (applying chain rule $\frac{d}{dx}[y^n] = n y^{n-1} \frac{dy}{dx}$), then isolate $\frac{dy}{dx}$.
Worked Example: Find $\frac{dy}{dx}$ for $x^3 + y^3 = 3axy$.
Differentiating with respect to $x$:
$$3x^2 + 3y^2 \frac{dy}{dx} = 3a \left( y + x \frac{dy}{dx} \right) \implies x^2 + y^2 \frac{dy}{dx} = ay + ax \frac{dy}{dx}$$
$$(y^2 - ax) \frac{dy}{dx} = ay - x^2 \implies \frac{dy}{dx} = \frac{ay - x^2}{y^2 - ax}$$
2.5 Higher order derivatives
The derivative of a derivative is called a higher-order derivative:
- Second derivative: $\frac{d^2 y}{dx^2} = f''(x) = \frac{d}{dx}\left(\frac{dy}{dx}\right)$
- $n$-th derivative: $\frac{d^n y}{dx^n} = f^{(n)}(x)$
Worked Example: Successive Differentiation
Find the $n$-th derivative of $y = e^{ax}$. $$y_1 = a e^{ax}, \quad y_2 = a^2 e^{ax}, \quad \dots \quad y_n = a^n e^{ax}$$
2.6 Relation between derivative and continuity
Theorem: If a function $f(x)$ is differentiable at a point $x = c$, then it is necessarily continuous at $x = c$.
Proof: To prove continuity, we must show $\lim_{x \to c} f(x) = f(c)$, which is equivalent to $\lim_{x \to c} [f(x) - f(c)] = 0$. For $x \neq c$:
$$f(x) - f(c) = \frac{f(x) - f(c)}{x - c} \cdot (x - c)$$
Taking the limit as $x \to c$:
$$\lim_{x \to c} [f(x) - f(c)] = \lim_{x \to c} \left[ \frac{f(x) - f(c)}{x - c} \right] \cdot \lim_{x \to c} (x - c) = f'(c) \cdot 0 = 0$$
Thus $\lim_{x \to c} f(x) = f(c)$, proving continuity. $\blacksquare$
Crucial Counterexample (Converse is NOT True):
Continuity does not imply differentiability. The function $f(x) = |x|$ is continuous everywhere, including at $x = 0$. However, its left derivative at $0$ is $-1$, and its right derivative is $+1$. Because $LHD \neq RHD$, $f(x) = |x|$ is not differentiable at $x = 0$ (sharp corner/cusp).
2.7 Definition and examples of partial derivatives
For a function of several variables $z = f(x, y)$:
- The partial derivative with respect to $x$ is obtained by differentiating with respect to $x$ while treating $y$ as a fixed constant: $$\frac{\partial z}{\partial x} = f_x = \lim_{h \to 0} \frac{f(x + h, y) - f(x, y)}{h}$$
- The partial derivative with respect to $y$ is obtained by differentiating with respect to $y$ while treating $x$ as a fixed constant: $$\frac{\partial z}{\partial y} = f_y = \lim_{k \to 0} \frac{f(x, y + k) - f(x, y)}{k}$$
Worked Example: For $z = x^3 y^2 + 4xy + \sin(x)$: $$\frac{\partial z}{\partial x} = 3x^2 y^2 + 4y + \cos(x), \qquad \frac{\partial z}{\partial y} = 2x^3 y + 4x$$
Unit 3: Applications of Derivatives
Teaching Hours: 8
3.1 Increasing and decreasing functions
Let $f(x)$ be differentiable on an open interval $(a, b)$:
- $f(x)$ is strictly increasing on $(a, b)$ if $f'(x) > 0$ for all $x \in (a, b)$.
- $f(x)$ is strictly decreasing on $(a, b)$ if $f'(x) < 0$ for all $x \in (a, b)$.
- $f(x)$ is constant if $f'(x) = 0$ everywhere on the interval.
3.2 Equation of tangents and normals using first derivatives
For a smooth curve $y = f(x)$ at point $P(x_1, y_1)$:
- Slope of tangent line: $m = \left.\frac{dy}{dx}\right|_{(x_1, y_1)}$
- Equation of Tangent: $y - y_1 = m(x - x_1)$
- Slope of normal line (perpendicular to tangent): $m_N = -\frac{1}{m}$ (provided $m \neq 0$)
- Equation of Normal: $y - y_1 = -\frac{1}{m}(x - x_1)$
Worked Problem: Find tangent and normal to $y = x^2 - 4x + 3$ at $(4, 3)$.
$\frac{dy}{dx} = 2x - 4 \implies m = 2(4) - 4 = 4$.
- Tangent: $y - 3 = 4(x - 4) \implies 4x - y - 13 = 0$.
- Normal: $y - 3 = -\frac{1}{4}(x - 4) \implies x + 4y - 16 = 0$.
3.3 L'Hospital's rule
Statement and Conditions
Let $f(x)$ and $g(x)$ be differentiable functions on an open interval around $c$. If $\lim_{x \to c} f(x) = 0$ and $\lim_{x \to c} g(x) = 0$ (indeterminate form $\frac{0}{0}$), or if both approach $\pm\infty$ (indeterminate form $\frac{\infty}{\infty}$), then: $$\lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}$$ provided the limit of the derivatives exists or is $\pm\infty$.
Worked Example: Evaluation of $\frac{0}{0}$
Evaluate $\lim_{x \to 0} \frac{e^x - x - 1}{x^2}$.
Direct substitution yields $\frac{1 - 0 - 1}{0} = \frac{0}{0}$.
Applying L'Hospital's rule:
$$\lim_{x \to 0} \frac{e^x - 1}{2x} \quad \left[\text{Still } \frac{0}{0}\right]$$
Applying L'Hospital's rule a second time:
$$\lim_{x \to 0} \frac{e^x}{2} = \frac{e^0}{2} = \frac{1}{2}$$
3.4 Angle between two lines
If two lines have slopes $m_1$ and $m_2$, the acute angle $\theta$ between them is given by: $$\tan\theta = \left| \frac{m_2 - m_1}{1 + m_1 m_2} \right|$$
- Parallel condition: $m_1 = m_2$ (or $1 + m_1 m_2 \neq 0, \theta = 0$).
- Perpendicular condition: $m_1 \cdot m_2 = -1$ (or $\theta = 90^\circ$).
3.5 Maxima and minima, concavity, stationary points and points of inflection
- Stationary / Critical Points: Points where $f'(x) = 0$ or $f'(x)$ does not exist.
- First Derivative Test:
- Local Maximum if $f'(x)$ changes sign from positive to negative through $c$.
- Local Minimum if $f'(x)$ changes sign from negative to positive through $c$.
- Second Derivative Test:
- If $f'(c) = 0$ and $f''(c) < 0 \implies$ Local Maximum at $c$.
- If $f'(c) = 0$ and $f''(c) > 0 \implies$ Local Minimum at $c$.
- If $f''(c) = 0$, test is inconclusive (use first derivative test).
- Concavity:
- Concave Upwards on interval if $f''(x) > 0$ (graph curves like a cup $\cup$).
- Concave Downwards on interval if $f''(x) < 0$ (graph curves like a cap $\cap$).
- Point of Inflection: A point where the curve crosses its tangent and the concavity changes (i.e., $f''(x) = 0$ and $f''(x)$ changes sign).
3.6 Statement and geometrical interpretation of mean-value theorems
1. Rolle's Theorem
Let $f(x)$ be:
- Continuous on the closed interval $[a, b]$.
- Differentiable on the open interval $(a, b)$.
- $f(a) = f(b)$.
Then there exists at least one number $c \in (a, b)$ such that $f'(c) = 0$.
Geometrical Meaning: There is at least one point on the curve where the tangent line is completely horizontal (parallel to the x-axis).
2. Lagrange's (Generalized) Mean-Value Theorem
Let $f(x)$ be continuous on $[a, b]$ and differentiable on $(a, b)$. Then there exists at least one $c \in (a, b)$ such that: $$f'(c) = \frac{f(b) - f(a)}{b - a}$$ Geometrical Meaning: The instantaneous rate of change (tangent slope) at $c$ equals the average rate of change (secant slope connecting endpoints $(a, f(a))$ and $(b, f(b))$).
3. Cauchy's Mean-Value Theorem
Let $f(x)$ and $g(x)$ be continuous on $[a, b]$ and differentiable on $(a, b)$, with $g'(x) \neq 0$ for all $x \in (a, b)$. Then there exists at least one $c \in (a, b)$ such that: $$\frac{f'(c)}{g'(c)} = \frac{f(b) - f(a)}{g(b) - g(a)}$$
3.7 Taylor's theorem and Maclaurin theorem
1. Taylor's Theorem
If $f(x)$ has continuous derivatives up to order $n$ on an interval around $a$: $$f(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \dots + \frac{f^{(n)}(a)}{n!}(x - a)^n + R_n(x)$$
2. Maclaurin's Theorem (Taylor series centered at $a = 0$)
$$f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!} x^2 + \frac{f'''(0)}{3!} x^3 + \dots + \frac{f^{(n)}(0)}{n!} x^n + \dots$$
Standard Expansions
- $e^x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \dots$
- $\sin(x) = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \dots$
- $\cos(x) = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots$
3.8 Applications of derivatives in economics
In economics and business management:
- Total Cost Function $C(x)$: Total expenditure to produce $x$ units.
- Marginal Cost ($MC$): Instantaneous rate of cost increase per unit increase in production: $MC = \frac{dC}{dx}$.
- Average Cost ($AC$): $AC = \frac{C(x)}{x}$. Minimized when $\frac{d(AC)}{dx} = 0$, which occurs when $MC = AC$.
- Revenue Function $R(x) = p \cdot x$: Total income from selling $x$ units at unit price $p$.
- Marginal Revenue ($MR$): $MR = \frac{dR}{dx}$.
- Profit Function $\Pi(x) = R(x) - C(x)$: Profit is maximized when: $$\frac{d\Pi}{dx} = 0 \implies MR = MC, \quad \text{and} \quad \frac{d^2 \Pi}{dx^2} < 0$$
3.9 Rate measures
Derivative $\frac{dy}{dt}$ measures the instantaneous rate of change of variable $y$ with respect to time $t$.
Worked Problem: A spherical weather balloon is being inflated with gas such that its radius increases at a rate of $2\text{ cm/s}$. At what rate is the volume increasing when the radius $r = 10\text{ cm}$?
Solution: Volume of sphere $V = \frac{4}{3}\pi r^3$. Differentiating with respect to time $t$:
$$\frac{dV}{dt} = \frac{d}{dt}\left[\frac{4}{3}\pi r^3\right] = 4\pi r^2 \frac{dr}{dt}$$
Substituting $r = 10$ and $\frac{dr}{dt} = 2$:
$$\frac{dV}{dt} = 4\pi (10)^2 (2) = 800\pi\text{ cm}^3\text{/s} \approx 2513.27\text{ cm}^3\text{/s}$$
Unit 4: Anti-derivative and its Applications
Teaching Hours: 8
4.1 Definition and geometrical meaning of integration
The anti-derivative (indefinite integral) of a function $f(x)$ is a function $F(x)$ such that $F'(x) = f(x)$. We write:
$$\int f(x), dx = F(x) + C$$
where $C$ is the arbitrary constant of integration.
Geometrical Meaning: An indefinite integral represents a family of parallel curves differing only by vertical shifts along the y-axis. The definite integral $\int_a^b f(x), dx$ represents the signed algebraic area bounded by the curve $y = f(x)$, the x-axis, and the vertical lines $x = a$ and $x = b$.
4.2 Basic integration formulas
- $\int x^n, dx = \frac{x^{n+1}}{n+1} + C \quad (n \neq -1)$
- $\int \frac{1}{x}, dx = \ln|x| + C$
- $\int e^{ax}, dx = \frac{1}{a} e^{ax} + C$
- $\int \sin(ax), dx = -\frac{1}{a} \cos(ax) + C$
- $\int \cos(ax), dx = \frac{1}{a} \sin(ax) + C$
- $\int \sec^2(x), dx = \tan(x) + C$
- $\int \frac{1}{1 + x^2}, dx = \tan^{-1}(x) + C$
- $\int \frac{1}{\sqrt{1 - x^2}}, dx = \sin^{-1}(x) + C$
4.3 Trigonometric substitution and integration by parts
Trigonometric Substitution
For integrals involving square roots of quadratic expressions, substitute a trigonometric function for $x$ so the radical simplifies through a Pythagorean identity:
- Form $\sqrt{a^2 - x^2}$: let $x = a \sin\theta$, so $dx = a \cos\theta, d\theta$ and $\sqrt{a^2 - x^2} = a \cos\theta$.
- Form $\sqrt{a^2 + x^2}$: let $x = a \tan\theta$, so $dx = a \sec^2\theta, d\theta$ and $\sqrt{a^2 + x^2} = a \sec\theta$.
- Form $\sqrt{x^2 - a^2}$: let $x = a \sec\theta$, so $dx = a \sec\theta\tan\theta, d\theta$ and $\sqrt{x^2 - a^2} = a \tan\theta$.
Worked Problem: Evaluate $\int \frac{dx}{\sqrt{a^2 - x^2}}$.
Let $x = a \sin\theta$, so $dx = a \cos\theta, d\theta$ and $\sqrt{a^2 - x^2} = a \cos\theta$:
$$\int \frac{dx}{\sqrt{a^2 - x^2}} = \int \frac{a \cos\theta, d\theta}{a \cos\theta} = \int d\theta = \theta + C = \sin^{-1}\left(\frac{x}{a}\right) + C$$
Integration by Parts
Derived from the product rule of differentiation: $$\int u \cdot v, dx = u \int v, dx - \int \left[ \frac{du}{dx} \int v, dx \right] dx$$ ILATE Rule guides the selection of the first function $u$:
- I: Inverse trigonometric ($\sin^{-1} x, \tan^{-1} x$)
- L: Logarithmic ($\ln x$)
- A: Algebraic ($x^2, 3x$)
- T: Trigonometric ($\sin x, \cos x$)
- E: Exponential ($e^x, 2^x$)
Worked Problem: Evaluate $\int x e^x, dx$.
Let $u = x$ (Algebraic) and $v = e^x$ (Exponential).
$$\int x e^x, dx = x \int e^x, dx - \int \left( \frac{d}{dx}[x] \int e^x, dx \right) dx = x e^x - \int 1 \cdot e^x, dx = x e^x - e^x + C = e^x(x - 1) + C$$
4.4 Partial fractions
Used to integrate rational functions $\frac{P(x)}{Q(x)}$ where degree of numerator is strictly less than degree of denominator:
- Linear distinct factors: $\frac{1}{(x - a)(x - b)} = \frac{A}{x - a} + \frac{B}{x - b}$
- Repeated linear factors: $\frac{1}{(x - a)^2} = \frac{A}{x - a} + \frac{B}{(x - a)^2}$
- Irreducible quadratic: $\frac{1}{(x - a)(x^2 + bx + c)} = \frac{A}{x - a} + \frac{Bx + C}{x^2 + bx + c}$
4.5 Improper integral
An integral is improper if:
- One or both limits of integration are infinite ($\int_a^\infty f(x), dx = \lim_{t \to \infty} \int_a^t f(x), dx$).
- The integrand becomes infinite (discontinuous) at one or more points in $[a, b]$.
- An improper integral converges if the limiting value exists and is finite; otherwise it diverges.
4.6 Riemann sum and fundamental theorem of calculus
Riemann Sum
The definite integral is the limit of a Riemann sum as partition norm $\Delta x_i \to 0$: $$\int_a^b f(x), dx = \lim_{n \to \infty} \sum_{i=1}^n f(x_i^*) \Delta x$$
Fundamental Theorem of Calculus (FTC)
- Part 1: If $f$ is continuous on $[a, b]$ and $g(x) = \int_a^x f(t), dt$, then $g'(x) = f(x)$.
- Part 2 (Evaluation Theorem): If $F$ is any anti-derivative of $f$ on $[a, b]$ ($F' = f$), then: $$\int_a^b f(x), dx = F(b) - F(a)$$
4.7 Applications of definite integral
- Area Under Curve: $A = \int_a^b y, dx = \int_a^b f(x), dx$
- Area Between Two Curves $y_1 = f(x)$ and $y_2 = g(x)$: $$A = \int_a^b |f(x) - g(x)|, dx$$
- Arc Length (Rectification): $$L = \int_a^b \sqrt{1 + \left(\frac{dy}{dx}\right)^2}, dx$$
4.8 Surface and volume integrals
- Volume of Solid of Revolution (Disk Method): Revolving $y = f(x)$ about the x-axis from $x = a$ to $x = b$: $$V = \pi \int_a^b [f(x)]^2, dx$$
- Surface Area of Revolution: $$S = 2\pi \int_a^b y \sqrt{1 + \left(\frac{dy}{dx}\right)^2}, dx$$
4.9 Trapezoidal and Simpson's rule for numerical integration
When an anti-derivative cannot be expressed in elementary functions, numerical quadrature is used. Divide $[a, b]$ into $n$ equal sub-intervals of width $h = \frac{b - a}{n}$:
1. Trapezoidal Rule
Approximates the region using trapezoids: $$\int_a^b f(x), dx \approx \frac{h}{2} \left[ y_0 + 2(y_1 + y_2 + \dots + y_{n-1}) + y_n \right]$$
2. Simpson's $1/3$ Rule
Approximates curves using parabolic arcs (requires $n$ to be an even integer): $$\int_a^b f(x), dx \approx \frac{h}{3} \left[ y_0 + 4(y_1 + y_3 + \dots + y_{n-1}) + 2(y_2 + y_4 + \dots + y_{n-2}) + y_n \right]$$ Formula mnemonic: "h over 3 times: First + Last + 4 times Odds + 2 times Evens."
Unit 5: Differential Equations
Teaching Hours: 8
5.1 Definition, order, and degree of differential equations
- Differential Equation (DE): An equation involving an unknown function (dependent variable) and one or more of its derivatives with respect to independent variables.
- Order: The order of the highest derivative present in the equation.
- Degree: The power (exponent) of the highest-order derivative, after the equation has been cleared of fractions and radicals involving derivatives.
Example: $\left(\frac{d^2 y}{dx^2}\right)^3 + \left(\frac{dy}{dx}\right)^4 + y = 0$ has Order = 2 and Degree = 3.
5.2 Differential equations of first order and first degree
General standard form: $$\frac{dy}{dx} = f(x, y) \quad \text{or} \quad M(x, y) dx + N(x, y) dy = 0$$
5.3 Variables separable, homogeneous, exact, and linear differential equations
1. Variable Separable
Can be arranged as $f(x), dx = g(y), dy$. Solution: $\int f(x), dx = \int g(y), dy + C$.
2. Homogeneous Differential Equations
A function $f(x, y)$ is homogeneous of degree $n$ if $f(\lambda x, \lambda y) = \lambda^n f(x, y)$.
If $\frac{dy}{dx} = \frac{M(x, y)}{N(x, y)}$ where $M$ and $N$ are homogeneous of the same degree, substitute:
$$y = vx \implies \frac{dy}{dx} = v + x \frac{dv}{dx}$$
This transforms the equation into variable separable form in $v$ and $x$.
3. Exact Differential Equations
An equation $M(x, y) dx + N(x, y) dy = 0$ is exact if and only if: $$\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}$$ General solution: $$\int_{y = \text{constant}} M, dx + \int (\text{terms in } N \text{ free from } x), dy = C$$
4. First-Order Linear Differential Equations
Standard form: $$\frac{dy}{dx} + P(x) y = Q(x)$$ Integrating Factor ($I.F.$): $$I.F. = e^{\int P(x), dx}$$ General solution: $$y \cdot (I.F.) = \int [Q(x) \cdot (I.F.)], dx + C$$
Worked Problem: Solve $\frac{dy}{dx} + \frac{2}{x} y = x^3$.
Here $P(x) = \frac{2}{x}$, $Q(x) = x^3$.
$$I.F. = e^{\int \frac{2}{x}, dx} = e^{2\ln x} = e^{\ln(x^2)} = x^2$$
Multiplying by $I.F.$:
$$y \cdot x^2 = \int x^3 \cdot x^2, dx = \int x^5, dx = \frac{x^6}{6} + C \implies y = \frac{x^4}{6} + \frac{C}{x^2}$$
5.4 Reducible to linear form (Bernoulli's Equation)
Non-linear equation of the form:
$$\frac{dy}{dx} + P(x) y = Q(x) y^n \quad (n \neq 0, 1)$$
Dividing by $y^n$: $y^{-n} \frac{dy}{dx} + P(x) y^{1-n} = Q(x)$.
Substitute $z = y^{1-n} \implies \frac{dz}{dx} = (1 - n) y^{-n} \frac{dy}{dx}$, reducing it directly to standard linear form in $z$.
5.5 Partial differential equations with basic examples
A Partial Differential Equation (PDE) involves partial derivatives of a function with multiple independent variables.
- Standard wave equation: $\frac{\partial^2 u}{\partial t^2} = c^2 \frac{\partial^2 u}{\partial x^2}$
- Standard heat conduction equation: $\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}$
- Laplace's equation: $\frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} = 0$
Unit 6: Computational Methods
Teaching Hours: 10
6.1 Linear programming problems (LPP)
Linear Programming is a mathematical optimization technique to maximize or minimize a linear objective function subject to linear equality or inequality constraints.
Standard form:
$$\text{Maximize/Minimize } Z = c_1 x_1 + c_2 x_2 + \dots + c_n x_n$$
Subject to constraints:
$$a_{i1} x_1 + a_{i2} x_2 + \dots + a_{in} x_n \le (\text{or } \ge, =) b_i \quad (i = 1, \dots, m)$$
$$x_j \ge 0 \quad (\text{Non-negativity restrictions})$$
6.2 Linear inequalities in two variables and graphical solutions
When an LPP has only two decision variables $(x, y)$, it can be solved geometrically on Cartesian axes:
- Replace inequality signs with equalities to draw boundary constraint lines.
- Identify the half-plane corresponding to each inequality using test point $(0,0)$.
- Shade the intersection of all half-planes: this bounded or unbounded polygon is the Feasible Region.
- Identify all corner vertices (extreme points) of the feasible region.
- Corner-Point Theorem: The optimal solution must occur at one of the vertices. Evaluate $Z$ at each corner point to identify the maximum or minimum.
6.3 Simplex method (up to 3 variables) and duality problems
1. Algebraic Simplex Method Algorithm
For problems with 3 or more decision variables where graphical graphing is impossible:
- Convert all $(\le)$ inequalities into equalities by adding non-negative slack variables $s_1, s_2, \dots \ge 0$.
- Form the Initial Simplex Tableau.
- Identify the Entering Variable (Pivot Column): most negative indicator in the bottom indicator row (for maximization).
- Identify the Departing Variable (Pivot Row): calculate minimum positive ratio: $\min \left( \frac{\text{Solution } b_i}{\text{Pivot Column entry } a_{ij}} \right)$ for $a_{ij} > 0$.
- The intersection of the pivot column and pivot row is the Pivot Element.
- Perform Gauss-Jordan row operations to make the pivot element $1$ and all other entries in its column $0$.
- Repeat until no negative coefficients remain in the objective row.
2. Duality in LPP
Every LPP (called the Primal) has an associated twin LPP called the Dual.
- A primal maximization problem with $m$ constraints and $n$ variables transforms into a dual minimization problem with $n$ constraints and $m$ variables.
- Dual variables represent shadow prices of the scarce resources.
6.4 Matrix inversion method
To solve system $A X = B$:
If $\det(A) \neq 0$, $A^{-1}$ exists and $X = A^{-1} B$.
Formula: $A^{-1} = \frac{1}{\det(A)} \text{adj}(A)$, where $\text{adj}(A) = [C_{ij}]^T$ is the transpose of the cofactor matrix.
6.5 Gauss elimination and Gauss-Seidel method
1. Gaussian Elimination Method
Converts the augmented matrix $[A | B]$ into an upper triangular row-echelon form via elementary row operations, followed by back-substitution to solve for unknown variables sequentially.
2. Gauss-Seidel Iterative Method
An iterative solver for diagonally dominant linear systems: $$|a_{ii}| > \sum_{j \neq i} |a_{ij}|$$ In each iteration, the newest computed values of variables are immediately substituted into subsequent formulas within the same iteration cycle, accelerating convergence.
6.6 Bisection method and Newton-Raphson method for non-linear equations
1. Bisection Method
Based on Intermediate Value Theorem: If a continuous function $f(x)$ satisfies $f(a) \cdot f(b) < 0$, a real root lies in $(a, b)$.
- Iteration midpoint: $c = \frac{a + b}{2}$.
- If $f(a) \cdot f(c) < 0$, root lies in $[a, c]$ (set $b = c$); else set $a = c$.
- Linearly convergent, guaranteed to converge, but slow.
2. Newton-Raphson Method
Uses the tangent line at the current estimate to find a better approximation: $$x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$$
- Quadratic convergence ($p = 2$): number of correct decimal places roughly doubles each iteration.
- Fails if $f'(x_n) = 0$ (division by zero) or if initial guess is too far from root.
Worked Example: Find root of $f(x) = x^3 - x - 1 = 0$ near $x_0 = 1.5$.
$f'(x) = 3x^2 - 1$.
Iteration 1:
$f(1.5) = (1.5)^3 - 1.5 - 1 = 3.375 - 2.5 = 0.875$.
$f'(1.5) = 3(1.5)^2 - 1 = 3(2.25) - 1 = 5.75$.
$$x_1 = 1.5 - \frac{0.875}{5.75} \approx 1.5 - 0.15217 = 1.3478$$
Iteration 2:
$f(1.3478) \approx 0.10068$, $f'(1.3478) \approx 4.4496$.
$$x_2 = 1.3478 - \frac{0.10068}{4.4496} \approx 1.3478 - 0.0226 = 1.3252$$
(Root to 3 decimal places is $1.325$).
Comprehensive Practice Problems with Detailed Solutions
Problem 1: First Principles Differentiation
Find the derivative of $f(x) = \cos(2x)$ by definition (first principles).
Solution:
$$f'(x) = \lim_{h \to 0} \frac{\cos(2(x + h)) - \cos(2x)}{h} = \lim_{h \to 0} \frac{\cos(2x + 2h) - \cos(2x)}{h}$$
Using $\cos A - \cos B = -2\sin\left(\frac{A + B}{2}\right)\sin\left(\frac{A - B}{2}\right)$:
$$f'(x) = \lim_{h \to 0} \frac{-2\sin(2x + h)\sin(h)}{h} = -2 \lim_{h \to 0} \sin(2x + h) \cdot \lim_{h \to 0} \frac{\sin h}{h} = -2\sin(2x) \cdot 1 = -2\sin(2x)$$
Problem 2: First-Order Linear Differential Equation
Solve the initial value problem: $\frac{dy}{dx} + 3y = 6, \quad y(0) = 5$.
Solution:
Here $P(x) = 3$ and $Q(x) = 6$.
Integrating Factor $I.F. = e^{\int 3, dx} = e^{3x}$.
Multiplying both sides by $I.F.$:
$$y e^{3x} = \int 6 e^{3x}, dx = 6 \cdot \frac{e^{3x}}{3} + C = 2e^{3x} + C \implies y = 2 + C e^{-3x}$$
Applying initial condition $y(0) = 5$:
$$5 = 2 + C e^0 \implies C = 3$$
Thus, particular solution is $y = 2 + 3e^{-3x}$.
References
- Bajracharya, B. C. (2025). Basic Mathematics. Sukunda Pustak Bhawan.
- Budnick, F. S. (2017). Applied Mathematics for Business Economics and Social Sciences. McGraw-Hill.
- Chand, K. B., & Sapkota, B. P. (2022). Principles of Mathematical Analysis. Pinnacle Publication.
- Lay, D. C. (2003). Linear algebra and its applications. Pearson Education India.
- Stewart, J., Clegg, D., & Watson, S. (2020). Calculus. Cengage.
- Thomas, G. B., & Finney, R. L. (1995). Calculus and Analytical Geometry. Narosa Publishing House.
- TU Document: https://portal.tu.edu.np/downloads/2025_11_27_15_22_42.pdf (PDF p. 56-60, SHA-256:
sha256:02eee32d756f2decf7604fad66b99d508744e055f14d4e480fc2a92327b8062a).