100% FREE
Updated: Apr 2026 Calculus Differential and Integral Calculus
Differentiation and its Applications
Comprehensive study notes on Differentiation and its Applications for CMI Data Science preparation.
This chapter covers key concepts, formulas, and examples needed for your exam.
Welcome to the chapter on Differentiation and its Applications, a cornerstone of calculus essential for any aspiring data scientist. This module is meticulously designed to equip you with the fundamental analytical tools necessary to understand and interpret rates of change, sensitivity, and optimization problems that are ubiquitous in data science. For your CMI examinations, a solid grasp of differentiation is not merely about solving equations; it's about applying these concepts to model behavior, evaluate algorithm performance, and make informed decisions from data.
In the realm of data science, differentiation underpins a vast array of critical techniques. From understanding the gradients in machine learning loss functions to optimizing model parameters, and from analyzing the sensitivity of financial models to interpreting the elasticity of demand in economic data, the principles covered here are directly applicable. Mastering these concepts will empower you to tackle complex problems efficiently, making them a high-yield area for both your academic success and professional competence.
This chapter will guide you through the core mechanics of differentiation before moving into its powerful applications in finding maxima and minima. The ability to identify optimal points is crucial for tasks like minimizing error in predictive models, maximizing profit functions, or finding the most efficient resource allocations. Prepare to develop a robust understanding that will serve as a foundational pillar for advanced topics in machine learning, statistical inference, and mathematical optimization.
---
Chapter Contents
| # | Topic | What You'll Learn |
|---|-------|---|
| 1 | Fundamentals of Differentiation | Grasp rates of change and tangent lines. |
| 2 | Maxima and Minima | Identify optimal points for function behavior. |
---
Learning Objectives
❗By the End of This Chapter
After studying this chapter, you will be able to:
Apply standard differentiation rules to various functions, including polynomial, exponential, logarithmic, and composite functions.
Interpret the first and second derivatives in the context of data science problems, such as marginal cost, sensitivity analysis, and rate of change.
Locate and classify local maxima, minima, and saddle points of single-variable functions using the first and second derivative tests.
Solve practical optimization problems relevant to data science, such as minimizing error functions or maximizing utility, using calculus.
---
Now let's begin with Fundamentals of Differentiation...
Part 1: Fundamentals of Differentiation
Introduction
Differentiation is a fundamental concept in calculus that quantifies the rate at which a quantity changes with respect to another. In simpler terms, it allows us to find the instantaneous rate of change of a function. This powerful tool is crucial for understanding how functions behave, whether they are increasing or decreasing, where they reach their maximum or minimum values, and how their curvature changes.
For students pursuing a Masters in Data Science, a strong grasp of differentiation is indispensable. It forms the backbone for various advanced topics such as optimization algorithms (e.g., gradient descent in machine learning), understanding model sensitivity, error propagation, and statistical inference. CMI frequently tests these foundational concepts, requiring a deep understanding of limits, continuity, differentiability, and their applications. This unit will provide a comprehensive overview, equipping you with the necessary theoretical knowledge and problem-solving skills.
📖Derivative of a Function
The derivative of a function f(x) with respect to x, denoted by f′(x) or dxdy, is defined as the limit of the average rate of change as the interval approaches zero:
f′(x)=h→0limhf(x+h)−f(x)
provided this limit exists.
---
Key Concepts
1. Limits of Functions
The concept of a limit is foundational to calculus. It describes the behavior of a function as its input approaches a certain value, without necessarily evaluating the function at that exact point.
📖Limit of a Function
A function f(x) has a limit L as x approaches c, written as limx→cf(x)=L, if for every ϵ>0, there exists a δ>0 such that if 0<∣x−c∣<δ, then ∣f(x)−L∣<ϵ.
One-Sided Limits:
Left-hand limit:limx→c−f(x) (as x approaches c from values less than c).
Right-hand limit:limx→c+f(x) (as x approaches c from values greater than c).
For a limit to exist at c, both one-sided limits must exist and be equal: limx→cf(x)=L⟺limx→c−f(x)=L=limx→c+f(x).
Properties of Limits:
If limx→cf(x)=L and limx→cg(x)=M, then:
Methods for Evaluation of Limits:
* Direct Substitution: If f(x) is a polynomial or a rational function (where the denominator is non-zero at c), the limit can be found by direct substitution: limx→cf(x)=f(c).
* Factorization/Cancellation: If direct substitution results in an indeterminate form like 00, factorize the numerator and denominator to cancel common factors.
* Rationalization: For limits involving square roots, multiply the numerator and denominator by the conjugate.
* Special Trigonometric Limits:
* limx→0xsinx=1
* limx→0x21−cosx=21
* limx→0xtanx=1
* Limits at Infinity: To evaluate limx→±∞f(x) for rational functions, divide the numerator and denominator by the highest power of x in the denominator. For polynomials, the limit is determined by the term with the highest power.
Example:limx→∞bxm+…axn+…
- If n>m, the limit is ±∞.
- If n<m, the limit is 0.
- If n=m, the limit is ba.
* L'Hôpital's Rule: This rule applies to indeterminate forms 00 or ∞∞. If limx→cg(x)f(x) is of the form 00 or ∞∞, then
x→climg(x)f(x)=x→climg′(x)f′(x)
provided the latter limit exists. This rule can be applied multiple times. (PYQ 4, 6)
* Taylor Series Expansion for Limits: For complex indeterminate forms, especially involving exponential, trigonometric, or logarithmic functions, expanding functions into their Taylor series around the point x=c (or x=0 if c=0) can simplify the limit evaluation.
* ex=1+x+2!x2+3!x3+…
* sinx=x−3!x3+5!x5−…
* cosx=1−2!x2+4!x4−…
* ln(1+x)=x−2x2+3x3−…Worked Example: L'Hôpital's RuleProblem: Evaluate limx→0xsinxe2x−2x−cosxSolution:
Step 1: Check the form of the limit by direct substitution.
As x→0,
numerator e2(0)−2(0)−cos(0)=1−0−1=0
and
denominator 0⋅sin(0)=0⋅0=0
This is an indeterminate form 00, so L'Hôpital's Rule can be applied.
Step 2: Apply L'Hôpital's Rule for the first time. Differentiate numerator and denominator separately.
Derivative of numerator:
dxd(e2x−2x−cosx)=2e2x−2+sinx
Derivative of denominator:
dxd(xsinx)=1⋅sinx+x⋅cosx=sinx+xcosx
x→0limsinx+xcosx2e2x−2+sinx
Step 3: Check the form again.
As x→0,
numerator 2e0−2+sin(0)=2−2+0=0
denominator sin(0)+0⋅cos(0)=0+0=0
Still an indeterminate form 00, so apply L'Hôpital's Rule again.
Step 4: Apply L'Hôpital's Rule for the second time.
Derivative of numerator:
The limit is now a determinate form.
Step 6: Evaluate the limit.
25
Answer:25
---
2. Continuity of Functions
Continuity is a property of a function where its graph can be drawn without lifting the pen. Informally, a function is continuous if small changes in the input result in small changes in the output.
📖Continuity at a Point
A function f(x) is said to be continuous at a point x=c if all three conditions are met:
f(c) is defined (the function exists at c).
limx→cf(x) exists (the limit exists at c).
limx→cf(x)=f(c) (the limit equals the function value).
Continuity on an Interval: A function is continuous on an open interval (a,b) if it is continuous at every point in the interval. It is continuous on a closed interval [a,b] if it is continuous on (a,b), and also limx→a+f(x)=f(a) and limx→b−f(x)=f(b).
Types of Discontinuities: (PYQ 2)
Removable Discontinuity: Occurs when limx→cf(x) exists but is not equal to f(c), or f(c) is undefined. Graphically, this is a "hole" in the graph. It's called "removable" because the discontinuity can be eliminated by redefining f(c).
Example:f(x)=x−1x2−1 at x=1. limx→1f(x)=2, but f(1) is undefined.
Jump Discontinuity: Occurs when the left-hand limit and the right-hand limit at c both exist but are not equal. Graphically, there's a "jump" in the function value.
Example:f(x)=⌊x⌋ (floor function) at integer points.
Infinite (Essential) Discontinuity: Occurs when one or both of the one-sided limits at c are ±∞. Graphically, this is a vertical asymptote.
Example:f(x)=x1 at x=0.
Properties of Continuous Functions: (PYQ 1)
If f(x) and g(x) are continuous at x=c, then:
f(x)±g(x) is continuous at x=c.
f(x)⋅g(x) is continuous at x=c.
g(x)f(x) is continuous at x=c, provided g(c)=0.
k⋅f(x) is continuous at x=c for any constant k.
f(g(x)) (composition) is continuous at x=c if g is continuous at c and f is continuous at g(c).
Important Implications for Discontinuous Functions:
* If f(x) is continuous and g(x) is discontinuous at c, then f(x)+g(x) is necessarily discontinuous at c. (PYQ 1)
* If f(x) is continuous and g(x) is discontinuous at c, then f(x)⋅g(x) can be continuous or discontinuous at c. For example, if f(x)=0 for all x, then f(x)g(x)=0 which is continuous, even if g(x) is discontinuous. (PYQ 1)
* If f(x) and g(x) are both discontinuous at c, then f(x)+g(x) can be continuous or discontinuous at c. For example, f(x)=x1 and g(x)=−x1 are both discontinuous at x=0, but f(x)+g(x)=0 (continuous). (PYQ 1)
* If f(x) and g(x) are both discontinuous at c, then f(x)⋅g(x) can be continuous or discontinuous at c. (PYQ 1)
❗Must Remember
Continuity is a prerequisite for differentiability. A function must be continuous at a point to be differentiable at that point. However, a continuous function is not necessarily differentiable.
Worked Example: Removable DiscontinuityProblem: Determine if f(x)=x3+xx3−x has a removable discontinuity at x=0.
Solution:
Step 1: Check if f(0) is defined.
f(0)=03+003−0=00, which is undefined. So, there is a discontinuity at x=0.
Step 2: Evaluate the limit as x→0.
x→0limx3+xx3−x
Factor out x from numerator and denominator:
x→0limx(x2+1)x(x2−1)
Cancel the common factor x (since x=0 for the limit):
x→0limx2+1x2−1
Substitute x=0:
02+102−1=1−1=−1
Step 3: Compare the limit with the function value.
Since limx→0f(x)=−1 exists, but f(0) is undefined, f(x) has a removable discontinuity at x=0.
Answer: Yes, f(x) has a removable discontinuity at x=0.
---
3. Differentiability of Functions
Differentiability signifies that a function has a well-defined tangent line at every point in its domain. It implies a "smooth" curve without sharp corners, cusps, or vertical tangents.
📖Differentiability at a Point
A function f(x) is differentiable at a point x=c if the limit
f′(c)=h→0limhf(c+h)−f(c)
exists. This limit is called the derivative of f(x) at x=c.
Geometric Meaning: The derivative f′(x) represents the slope of the tangent line to the graph of f(x) at the point (x,f(x)).
Physical Meaning: If f(t) represents the position of an object at time t, then f′(t) represents its instantaneous velocity.
Relationship between Differentiability and Continuity:
If a function f(x) is differentiable at a point c, then it must be continuous at c.
The converse is not true: a function can be continuous at a point but not differentiable (e.g., f(x)=∣x∣ at x=0).
The derivative of a function f(x) can itself be a function, f′(x). The continuity of f′(x) implies that the original function f(x) is "smooth" without abrupt changes in slope. (PYQ 8)
Rules of Differentiation:
Derivatives of Standard Functions:
* dxd(sinx)=cosx
* dxd(cosx)=−sinx
* dxd(tanx)=sec2x
* dxd(ex)=ex
* dxd(ax)=axlna
* dxd(lnx)=x1
* dxd(logax)=xlna1
* dxd(sin−1x)=1−x21
* dxd(tan−1x)=1+x21Implicit Differentiation: Used when y cannot be easily expressed as an explicit function of x. Differentiate both sides of the equation with respect to x, treating y as a function of x and applying the chain rule to terms involving y. (PYQ 10, 11)
Higher Order Derivatives: The derivative of f′(x) is the second derivative f′′(x), and so on. f(n)(x) denotes the n-th derivative.
Constant Derivative Implies Constant Function: If f′(x)=0 for all x in an interval (a,b), then f(x) is a constant function on that interval. This is a direct consequence of the Mean Value Theorem. If f′(x)=0 for all rational numbers q, and f(x) is twice differentiable (implying f′(x) is continuous), then f′(x) must be 0 for all real x. Therefore, f(x) is a constant function. (PYQ 9)
Worked Example: Implicit Differentiation and Chain RuleProblem: Find dxdy if x2+y2=25.
Solution:
Step 1: Differentiate both sides of the equation with respect to x.
dxd(x2+y2)=dxd(25)
Step 2: Apply differentiation rules. For y2, use the chain rule (treating y as a function of x).
dxd(x2)+dxd(y2)=dxd(25)
2x+2ydxdy=0
Step 3: Isolate dxdy.
2ydxdy=−2x
dxdy=−2y2x
dxdy=−yx
Answer:dxdy=−yx
---
4. Applications of Derivatives
a. Equation of Tangents and Normals
The derivative provides the slope of the tangent line to a curve at a given point.
📐Tangent and Normal Equations
Given a curve y=f(x) and a point (x0,y0) on the curve:
Slope of Tangent:mT=f′(x0)
Equation of Tangent:y−y0=mT(x−x0)
Slope of Normal:mN=−mT1 (if mT=0)
Equation of Normal:y−y0=mN(x−x0)
Worked Example: Tangent Line and X-interceptProblem: Let f(x)=x. Draw a tangent to the curve y=f(x) at the point whose x-coordinate is 4. Where does this tangent intersect the X-axis?
Solution:
Step 1: Find the y-coordinate of the point.
Given x0=4, y0=f(4)=4=2.
The point is (4,2).
Step 2: Find the derivative f′(x).
f(x)=x1/2
and
f′(x)=21x(1/2)−1=21x−1/2=2x1
Step 3: Calculate the slope of the tangent at x=4.
mT=f′(4)=241=2⋅21=41
Step 4: Write the equation of the tangent line.
Using y−y0=mT(x−x0):
y−2=41(x−4)
4(y−2)=x−4
4y−8=x−4
x−4y+4=0
Step 5: Find the X-intercept.
The X-axis is where y=0. Substitute y=0 into the tangent equation:
x−4(0)+4=0
x+4=0
x=−4
Answer: The tangent intersects the X-axis at x=−4.
---
b. Related Rates
Related rates problems involve finding the rate at which one quantity changes by relating it to other quantities whose rates of change are known. The key is to use implicit differentiation with respect to time (t). (PYQ 10, 11)
Strategy for Related Rates:
Identify variables: List all quantities that are changing and those that are constant.
Identify rates: List known rates of change (dtdV, dtdr, etc.) and the rate to be found.
Formulate an equation: Find an equation that relates the quantities from step 1. This often comes from geometry (area, volume, Pythagorean theorem).
Differentiate implicitly: Differentiate both sides of the equation with respect to time t, using the chain rule.
Substitute and solve: Substitute all known values into the differentiated equation and solve for the unknown rate.
Worked Example: Related Rates (Volume of a Sphere)Problem: A spherical ball of ice of radius 20m is dropped in a vat of hot water. The ice melts in such a way that (i) the shape of the ball remains spherical, and (ii) the radius of the ball decreases at a constant rate of 0.5ms−1. At what rate does the volume of the ice ball decrease, when the radius of the ball is 15m?
Solution:
Step 1: Identify variables and rates.
Let V be the volume of the sphere and r be its radius.
Given rate of change of radius: dtdr=−0.5ms−1 (negative because the radius is decreasing).
We need to find the rate of change of volume: dtdV when r=15m.
Step 2: Formulate an equation relating V and r.
The volume of a sphere is given by:
V=34πr3
Step 3: Differentiate implicitly with respect to time t.
dtdV=dtd(34πr3)
Apply the chain rule:
dtdV=34π⋅3r2dtdr
dtdV=4πr2dtdr
Step 4: Substitute known values and solve.
We need dtdV when r=15m and dtdr=−0.5ms−1.
dtdV=4π(15)2(−0.5)
dtdV=4π(225)(−0.5)
dtdV=900π(−0.5)
dtdV=−450πm3s−1
The negative sign indicates that the volume is decreasing. The rate of decrease is 450πm3s−1.
Answer: The volume of the ice ball decreases at a rate of 450πm3s−1.
---
c. Monotonicity and Extrema
Derivatives are used to determine where a function is increasing or decreasing and to find its local maximum or minimum values.
* Increasing/Decreasing Functions:
* If f′(x)>0 on an interval, f(x) is increasing on that interval.
* If f′(x)<0 on an interval, f(x) is decreasing on that interval.
* If f′(x)=0 on an interval, f(x) is constant on that interval.
* Critical Points: A point c in the domain of f is a critical point if f′(c)=0 or f′(c) is undefined. Local extrema (maxima or minima) can only occur at critical points.
* First Derivative Test:
1. Find critical points.
2. Test the sign of f′(x) in intervals around each critical point.
3. If f′(x) changes from positive to negative at c, f(c) is a local maximum.
4. If f′(x) changes from negative to positive at c, f(c) is a local minimum.
5. If f′(x) does not change sign, f(c) is neither a local maximum nor minimum.
* Second Derivative Test:
1. Find critical points where f′(c)=0.
2. Calculate f′′(x).
3. If f′′(c)>0, f(c) is a local minimum.
4. If f′′(c)<0, f(c) is a local maximum.
5. If f′′(c)=0, the test is inconclusive (use the First Derivative Test).
Worked Example: Local ExtremaProblem: Find the local extrema of f(x)=x3−6x2+9x+1.
Solution:
Step 1: Find the first derivative f′(x).
f′(x)=3x2−12x+9
Step 2: Find critical points by setting f′(x)=0.
3x2−12x+9=0
Divide by 3:
x2−4x+3=0
Factor:
(x−1)(x−3)=0
Critical points are x=1 and x=3.
Step 3: Use the Second Derivative Test. Find f′′(x).
f′′(x)=dxd(3x2−12x+9)=6x−12
Step 4: Evaluate f′′(x) at each critical point.
For x=1:
f′′(1)=6(1)−12=−6
Since f′′(1)<0, there is a local maximum at x=1.
f(1)=(1)3−6(1)2+9(1)+1=1−6+9+1=5
Local maximum value is 5 at x=1.
For x=3:
f′′(3)=6(3)−12=18−12=6
Since f′′(3)>0, there is a local minimum at x=3.
f(3)=(3)3−6(3)2+9(3)+1=27−54+27+1=1
Local minimum value is 1 at x=3.
Answer:Local maximum at (1,5) and local minimum at (3,1)
---
d. Concavity and Inflection Points
The second derivative helps determine the concavity of a function's graph and identify inflection points.
* Concavity:
* If f′′(x)>0 on an interval, the graph of f(x) is concave up (opens upwards) on that interval.
* If f′′(x)<0 on an interval, the graph of f(x) is concave down (opens downwards) on that interval.
Inflection Point: A point (c,f(c)) on the graph of f(x) is an inflection point if the concavity of the graph changes at c. This typically occurs where f′′(c)=0 or f′′(c) is undefined, and* f′′(x) changes sign around c. (PYQ 7)
Worked Example: Inflection PointsProblem: Given the function f(x)=20x5−2x4+3x+1, identify its inflection points.
Solution:
Step 1: Find the first derivative f′(x).
f′(x)=205x4−24x3+3=4x4−2x3+3
Step 2: Find the second derivative f′′(x).
f′′(x)=44x3−6x2=x3−6x2
Step 3: Set f′′(x)=0 to find potential inflection points.
x3−6x2=0
Factor out x2:
x2(x−6)=0
Potential inflection points are x=0 and x=6.
Step 4: Analyze the sign of f′′(x) around these points to check for a change in concavity.
* For x=0:
* Choose a test value slightly less than 0, e.g., x=−1:
f′′(−1)=(−1)2(−1−6)=1(−7)=−7<0
(concave down).
* Choose a test value slightly greater than 0, e.g., x=1:
f′′(1)=(1)2(1−6)=1(−5)=−5<0
(concave down).
Since f′′(x) does not change sign around x=0, x=0 is not an inflection point.
* For x=6:
* Choose a test value slightly less than 6, e.g., x=5:
f′′(5)=(5)2(5−6)=25(−1)=−25<0
(concave down).
* Choose a test value slightly greater than 6, e.g., x=7:
f′′(7)=(7)2(7−6)=49(1)=49>0
(concave up).
Since f′′(x) changes sign from negative to positive at x=6, x=6 is an inflection point.
Answer:x=6 is the only inflection point.
---
Problem-Solving Strategies
💡CMI Strategy
Limits: Always try direct substitution first. If indeterminate, consider factorization, rationalization, L'Hôpital's Rule (multiple times if needed), or Taylor series expansion for complex functions. For limits at infinity, divide by the highest power of x.
Self-correction:* L'Hôpital's Rule should be `L'Hôpital's Rule` (already correct, just checking)
* 00 and ∞∞ * `highest power of x` - x is already in math mode.
Continuity: Systematically check the three conditions: f(c) defined, limx→cf(x) exists, and they are equal. For piecewise functions, check at the boundary points. Identify types of discontinuities.
Differentiability: For graphical problems, look for smooth curves without sharp corners, cusps, or vertical tangents. Remember, differentiability implies continuity. For algebraic problems, use definition or differentiation rules.
Related Rates: Draw a diagram. Label variables. Write down the primary geometric/physical relationship. Differentiate implicitly with respect to time (t). Substitute known values carefully.
Extrema & Inflection Points: Clearly distinguish between finding critical points (f′(x)=0 or undefined) for extrema and finding potential inflection points (f′′(x)=0 or undefined). Always verify sign changes for both first and second derivative tests.
---
Common Mistakes
⚠️Avoid These Errors
❌ Confusing continuity and differentiability: A function being continuous does NOT guarantee it is differentiable. E.g., f(x)=∣x∣ is continuous at x=0 but not differentiable.
✅ Correct approach: Differentiability implies continuity. If a function is not continuous, it cannot be differentiable.
❌ Incorrect application of L'Hôpital's Rule: Applying L'Hôpital's Rule when the limit is not of 00 or ∞∞ form.
✅ Correct approach: Always verify the indeterminate form before applying L'Hôpital's Rule.
❌ Errors in Chain Rule: Forgetting to multiply by the derivative of the inner function, especially in implicit differentiation or nested functions.
✅ Correct approach: When differentiating f(g(x)), always remember it's f′(g(x))⋅g′(x). For implicit functions like dxd(yn), it is nyn−1dxdy.
❌ Not checking sign change for inflection points: Assuming f′′(c)=0 automatically means c is an inflection point.
✅ Correct approach:f′′(c)=0 is a necessary but not sufficient condition. You must check that f′′(x) changes sign around c.
❌ Units in Related Rates: Forgetting to include units or using incorrect units in the final answer.
✅ Correct approach: Always track units throughout the problem and ensure the final answer has appropriate units.
---
Practice Questions
:::question type="MCQ" question="Let f(x)={x2+1,ax+b,x≤1x>1. For f(x) to be differentiable at x=1, what must be the values of a and b?" options=["a=2,b=1","a=1,b=2","a=2,b=0","a=0,b=2"] answer="a=2,b=0" hint="For differentiability, the function must first be continuous. Then, the left-hand derivative must equal the right-hand derivative." solution="Step 1: For continuity at x=1, the left-hand limit, right-hand limit, and function value must be equal.
x→1−lim(x2+1)=12+1=2
x→1+lim(ax+b)=a(1)+b=a+b
f(1)=12+1=2
So,
a+b=2
Step 2: For differentiability at x=1, the left-hand derivative must equal the right-hand derivative.
f′(x)={2x,a,x<1x>1
x→1−lim(2x)=2(1)=2
x→1+lim(a)=a
So,
a=2
Step 3: Substitute a=2 into the continuity equation.
2+b=2⟹b=0
Therefore, a=2 and b=0.
Answer: \boxed{a=2, b=0}"
:::
:::question type="NAT" question="A ladder 13 meters long is leaning against a wall. The base of the ladder is pulled away from the wall at a rate of 0.6 m/s. How fast is the top of the ladder sliding down the wall when the base is 5 meters from the wall? (Provide the speed in m/s, positive value)." answer="0.25" hint="Use the Pythagorean theorem to relate the distance of the ladder's base from the wall, its height on the wall, and its length. Then differentiate implicitly with respect to time." solution="Step 1: Define variables and known rates.
Let L be the length of the ladder, x be the distance of the base from the wall, and y be the height of the top of the ladder on the wall.
Given: L=13 m (constant).
Rate at which the base is pulled away: dtdx=0.6 m/s.
We need to find dtdy (speed at which the top slides down) when x=5 m.
Step 2: Formulate an equation relating x, y, and L.
By the Pythagorean theorem:
x2+y2=L2
x2+y2=132
x2+y2=169
Step 3: Find y when x=5 m.
52+y2=169
25+y2=169
y2=169−25
y2=144
y=12 m(since height must be positive)
Step 4: Differentiate the equation x2+y2=169 implicitly with respect to time t.
dtd(x2)+dtd(y2)=dtd(169)
2xdtdx+2ydtdy=0
Divide by 2:
xdtdx+ydtdy=0
Step 5: Substitute the known values and solve for dtdy.
Substitute x=5, y=12, and dtdx=0.6:
(5)(0.6)+(12)dtdy=0
3+12dtdy=0
12dtdy=−3
dtdy=−123
dtdy=−0.25 m/s
The negative sign indicates that the height y is decreasing, meaning the top of the ladder is sliding down. The speed is the absolute value of this rate.
The speed is 0.25 m/s.
Answer: \boxed{0.25}"
:::
:::question type="MSQ" question="Which of the following functions have a local maximum at x=0?" options=["f(x)=−x2","g(x)=cosx","h(x)=x3","k(x)=e−x2"] answer="A,B,D" hint="Use the first or second derivative test. For a local maximum at x=0, f′(0)=0 and f′′(0)<0 (or f′(x) changes from positive to negative at x=0). " solution="Let's analyze each option:
A. f(x)=−x2
f′(x)=−2x⟹f′(0)=0
f′′(x)=−2⟹f′′(0)=−2<0
Since f′(0)=0 and f′′(0)<0, f(x) has a local maximum at x=0. Correct.
B. g(x)=cosx
g′(x)=−sinx⟹g′(0)=0
g′′(x)=−cosx⟹g′′(0)=−cos(0)=−1<0
Since g′(0)=0 and g′′(0)<0, g(x) has a local maximum at x=0. Correct.
C. h(x)=x3
h′(x)=3x2⟹h′(0)=0
h′′(x)=6x⟹h′′(0)=0
The second derivative test is inconclusive. Use the first derivative test:
For x<0, h′(x)=3x2>0.
For x>0, h′(x)=3x2>0.
Since h′(x) does not change sign (it's positive on both sides of x=0), x=0 is an inflection point, not a local extremum. Incorrect.
D. k(x)=e−x2
Since k′(0)=0 and k′′(0)<0, k(x) has a local maximum at x=0. Correct.
Answer: \boxed{A,B,D}"
:::
:::question type="SUB" question="Find the interval(s) where the function f(x)=x3−3x2−9x+5 is decreasing." answer="(−1,3)" hint="A function is decreasing where its first derivative is negative." solution="Step 1: Find the first derivative of f(x).
f(x)=x3−3x2−9x+5
f′(x)=3x2−6x−9
Step 2: Find the critical points by setting f′(x)=0.
3x2−6x−9=0
Divide by 3:
x2−2x−3=0
Factor the quadratic:
(x−3)(x+1)=0
The critical points are x=3 and x=−1.
Step 3: Create a sign table for f′(x) using the critical points to define intervals.
The intervals are (−∞,−1), (−1,3), and (3,∞).
* Interval (−∞,−1): Choose test value x=−2.
f′(−2)=3(−2)2−6(−2)−9=3(4)+12−9=12+12−9=15>0
So, f(x) is increasing on (−∞,−1).
* Interval (−1,3): Choose test value x=0.
f′(0)=3(0)2−6(0)−9=−9<0
So, f(x) is decreasing on (−1,3).
* Interval (3,∞): Choose test value x=4.
f′(4)=3(4)2−6(4)−9=3(16)−24−9=48−24−9=15>0
So, f(x) is increasing on (3,∞).
Step 4: Identify the interval(s) where f(x) is decreasing.
The function f(x) is decreasing on the interval where f′(x)<0.
Therefore, f(x) is decreasing on (−1,3).
Answer: \boxed{(-1, 3)}"
:::
---
Summary
❗Key Takeaways for CMI
Limits are Fundamental: Master evaluation techniques, including L'Hôpital's Rule and handling limits at infinity, as they underpin continuity and differentiability.
Continuity vs. Differentiability: Understand the definitions and their relationship: differentiability implies continuity, but continuity does not imply differentiability. Be aware of how operations (sum, product) affect continuity.
Derivative as Rate of Change: Comprehend the geometric (slope of tangent) and physical (instantaneous rate of change) interpretations of the derivative.
Applications are Crucial: Be proficient in using derivatives to find equations of tangents/normals, solve related rates problems, determine intervals of increase/decrease, identify local extrema (maxima/minima), and locate inflection points.
Master Differentiation Rules: Ensure flawless application of power, product, quotient, and especially the chain rule, including implicit differentiation.
---
---
What's Next?
💡Continue Learning
This topic connects to:
Integral Calculus: Differentiation and integration are inverse operations. A strong foundation here is essential for understanding definite and indefinite integrals.
Differential Equations: Many real-world phenomena are modeled by differential equations, which involve derivatives.
Optimization in Machine Learning: Gradient descent and other optimization algorithms rely heavily on the concept of derivatives to find minima of loss functions.
Multivariable Calculus: The concepts of partial derivatives and gradients extend differentiation to functions of multiple variables, critical for high-dimensional data analysis.
Master these connections for comprehensive CMI preparation!
---
💡Moving Forward
Now that you understand Fundamentals of Differentiation, let's explore Maxima and Minima which builds on these concepts.
---
Part 2: Maxima and Minima
Introduction
The concepts of maxima and minima are fundamental in calculus, allowing us to determine the largest and smallest values a function can attain. These values are crucial for understanding the behavior of functions and have extensive applications in various fields, including economics, physics, engineering, and data science, where optimizing processes or models is often required. In the CMI exam, problems involving maxima and minima frequently appear, testing your ability to identify critical points, classify them as maxima or minima, and apply these principles to solve complex real-world optimization challenges. This section will equip you with the necessary tools and techniques to master these concepts.
📖Local Maximum
A function f(x) has a local maximum at x=c if there exists an open interval (a,b) containing c such that f(x)≤f(c) for all x∈(a,b).
📖Local Minimum
A function f(x) has a local minimum at x=c if there exists an open interval (a,b) containing c such that f(x)≥f(c) for all x∈(a,b).
📖Global Maximum (Absolute Maximum)
A function f(x) has a global maximum at x=c if f(x)≤f(c) for all x in the domain of f.
📖Global Minimum (Absolute Minimum)
A function f(x) has a global minimum at x=c if f(x)≥f(c) for all x in the domain of f.
---
Key Concepts
1. Critical Points
Critical points are the candidates for local maxima or minima. They are points where the function's rate of change is zero or undefined.
📖Critical Point
A point x=c in the domain of f(x) is called a critical point if either f′(c)=0 or f′(c) is undefined.
Explanation:
At a local maximum or minimum, the tangent line to the curve is horizontal, meaning its slope (the first derivative) is zero. Alternatively, if the function has a sharp turn or a vertical tangent, the derivative might be undefined.
---
---
2. Tests for Local Extrema
To classify a critical point as a local maximum, local minimum, or neither, we use derivative tests.
2.1 First Derivative Test
This test examines the sign of the first derivative around a critical point.
📐First Derivative Test
Let c be a critical point of f(x).
If f′(x) changes from positive to negative at x=c, then f(c) is a local maximum.
If f′(x) changes from negative to positive at x=c, then f(c) is a local minimum.
If f′(x) does not change sign at x=c (i.e., it's positive on both sides or negative on both sides), then f(c) is neither a local maximum nor a local minimum.
Worked Example:Problem: Find the local extrema of f(x)=x3−3x.
Solution:
Step 1: Find the first derivative and critical points.
f′(x)=3x2−3
Set f′(x)=0:
3x2−3=0
3(x2−1)=0
x2=1
x=±1
The critical points are x=1 and x=−1.
Step 2: Apply the First Derivative Test.
Consider x=−1:
For x<−1 (e.g., x=−2),
f′(−2)=3(−2)2−3=12−3=9>0
(f is increasing)
For −1<x<1 (e.g., x=0),
f′(0)=3(0)2−3=−3<0
(f is decreasing)
Since f′(x) changes from positive to negative at x=−1, there is a local maximum at x=−1.
f(−1)=(−1)3−3(−1)=−1+3=2
Consider x=1:
For −1<x<1 (e.g., x=0),
f′(0)=−3<0
(f is decreasing)
For x>1 (e.g., x=2),
f′(2)=3(2)2−3=12−3=9>0
(f is increasing)
Since f′(x) changes from negative to positive at x=1, there is a local minimum at x=1.
f(1)=(1)3−3(1)=1−3=−2
Answer: Local maximum at (−1,2) and local minimum at (1,−2).
---
2.2 Second Derivative Test
This test uses the sign of the second derivative at a critical point to classify it.
📐Second Derivative Test
Let c be a critical point of f(x) where f′(c)=0.
If f′′(c)<0, then f(c) is a local maximum.
If f′′(c)>0, then f(c) is a local minimum.
If f′′(c)=0, the test is inconclusive. Use the First Derivative Test or higher-order derivatives.
Explanation:
The second derivative tells us about the concavity of the function. If f′′(c)<0, the function is concave down at c, suggesting a peak (maximum). If f′′(c)>0, the function is concave up, suggesting a valley (minimum).
Worked Example:Problem: Use the Second Derivative Test to find the local extrema of f(x)=x3−3x.
Solution:
Step 1: Find the first derivative and critical points (from previous example).
f′(x)=3x2−3
Critical points are x=1 and x=−1.
Step 2: Find the second derivative.
f′′(x)=dxd(3x2−3)=6x
Step 3: Evaluate f′′(x) at each critical point.
For x=−1:
f′′(−1)=6(−1)=−6
Since f′′(−1)<0, there is a local maximum at x=−1.
f(−1)=2
For x=1:
f′′(1)=6(1)=6
Since f′′(1)>0, there is a local minimum at x=1.
f(1)=−2
Answer: Local maximum at (−1,2) and local minimum at (1,−2).
---
3. Extrema on Closed Intervals
For a continuous function f(x) on a closed interval [a,b], the Extreme Value Theorem guarantees that both a global maximum and a global minimum exist.
📐Extreme Value Theorem
If f(x) is continuous on a closed interval [a,b], then f(x) attains both a global maximum and a global minimum on [a,b].
Procedure to find global extrema on [a,b]:
Find all critical points of f(x) in the open interval (a,b).
Evaluate f(x) at each critical point found in step 1.
Evaluate f(x) at the endpoints of the interval, a and b.
The largest of these values is the global maximum, and the smallest is the global minimum.
Worked Example:Problem: Find the global maximum and minimum of f(x)=x3−3x on the interval [0,2].
Solution:
Step 1: Find critical points in (0,2).
From previous examples, critical points are x=−1 and x=1. Only x=1 lies in (0,2).
Step 2: Evaluate f(x) at the critical point x=1.
f(1)=(1)3−3(1)=−2
Step 3: Evaluate f(x) at the endpoints x=0 and x=2.
f(0)=(0)3−3(0)=0
f(2)=(2)3−3(2)=8−6=2
Step 4: Compare values.
Values are f(1)=−2, f(0)=0, f(2)=2.
The largest value is 2, and the smallest value is −2.
Answer: Global maximum is 2 at x=2. Global minimum is −2 at x=1.
---
4. Concavity and Inflection Points
Concavity describes the direction in which the curve bends. Inflection points are where the concavity changes.
📖Concave Up
A function f(x) is concave up on an interval if its graph lies above all of its tangent lines on that interval. This occurs when f′′(x)>0.
📖Concave Down
A function f(x) is concave down on an interval if its graph lies below all of its tangent lines on that interval. This occurs when f′′(x)<0.
📖Inflection Point (Flex Point)
A point (c,f(c)) is an inflection point (or flex point as per PYQ 2) if the concavity of the function changes at x=c. This typically occurs where f′′(c)=0 or f′′(c) is undefined, and f′′(x) changes sign around c.
Explanation:
If f′′(x)>0, the slope f′(x) is increasing, meaning the curve is bending upwards.
If f′′(x)<0, the slope f′(x) is decreasing, meaning the curve is bending downwards.
An inflection point is where this behavior switches. Note that f′′(c)=0 is a necessary condition, but not sufficient; f′′(x)must change sign. For example, for f(x)=x4, f′′(0)=0, but f′′(x)=12x2≥0 for all x, so concavity doesn't change, and x=0 is not an inflection point.
Worked Example:Problem: Find the intervals of concavity and inflection points for f(x)=x4−4x3.
Solution:
Step 1: Find the first and second derivatives.
f′(x)=4x3−12x2
f′′(x)=12x2−24x
Step 2: Find points where f′′(x)=0 or is undefined.
12x2−24x=0
12x(x−2)=0
So, x=0 and x=2 are potential inflection points.
Step 3: Test intervals for the sign of f′′(x).
For x<0 (e.g., x=−1), f′′(−1)=12(−1)(−1−2)=12(−1)(−3)=36>0. (Concave Up)
For 0<x<2 (e.g., x=1), f′′(1)=12(1)(1−2)=12(−1)=−12<0. (Concave Down)
For x>2 (e.g., x=3), f′′(3)=12(3)(3−2)=36(1)=36>0. (Concave Up)
Step 4: Identify inflection points.
Concavity changes at x=0 and x=2.
f(0)=04−4(0)3=0
f(2)=24−4(2)3=16−32=−16
Answer:
Concave up on (−∞,0) and (2,∞).
Concave down on (0,2).
Inflection points at (0,0) and (2,−16).
---
5. Optimization in Real-World Problems
Many practical problems involve finding the maximum or minimum value of a quantity (e.g., profit, volume, cost, distance).
General Strategy:
Understand the Problem: Read carefully, identify what needs to be maximized or minimized.
Draw a Diagram (if applicable): Visual representation helps.
Define Variables: Assign symbols to quantities.
Formulate the Objective Function: Write an equation for the quantity to be optimized in terms of the variables.
Identify Constraints: Write equations or inequalities relating the variables.
Reduce to a Single Variable: Use constraint equations to express the objective function in terms of a single independent variable.
Determine the Domain: Find the possible values for the independent variable.
Apply Calculus: Find critical points using the first derivative and classify them using the First or Second Derivative Test. Consider endpoints if the domain is a closed interval.
Interpret the Result: State the answer in the context of the problem.
Worked Example:Problem: A farmer wants to fence a rectangular plot of land adjacent to a river. No fence is needed along the river. If the farmer has 200 meters of fencing, what is the maximum area of the land he can enclose?
Solution:
Step 1: Understand the Problem - Maximize area, with a fixed perimeter (fencing length).
Step 2: Draw a Diagram.
Step 3: Define Variables.
Let l be the length of the side parallel to the river.
Let w be the width of the sides perpendicular to the river.
Step 4: Formulate the Objective Function.
A=l⋅w
Step 5: Identify Constraints.
2w+l=200
Step 6: Reduce to a Single Variable.
From the constraint,
l=200−2w
Substitute this into the area formula:
A(w)=(200−2w)w=200w−2w2
Step 7: Determine the Domain.
Since w and l must be positive:
w>0
l=200−2w>0⟹200>2w⟹w<100
So, the domain for w is (0,100).
Step 8: Apply Calculus.
Find the first derivative of A(w):
A′(w)=200−4w
Set A′(w)=0 to find critical points:
200−4w=0
4w=200
w=50
This critical point w=50 is within the domain (0,100).
Use the Second Derivative Test:
A′′(w)=−4
Since A′′(50)=−4<0, this confirms that w=50 corresponds to a local maximum. Since it's the only critical point in an open interval and the function is a downward-opening parabola, it's also the global maximum.
Step 9: Interpret the Result.
When w=50 meters,
l=200−2(50)=200−100=100 meters
The maximum area is
A(50)=100⋅50=5000 square meters
Answer: The maximum area is 5000 m2, achieved when the width is 50 m and the length is 100 m.
---
6. Proving Inequalities using Calculus
Calculus can be a powerful tool to prove inequalities by analyzing the monotonicity or extrema of a related function.
General Strategy:
To prove f(x)≥g(x) for a given interval, consider the function h(x)=f(x)−g(x). If you can show that the global minimum of h(x) on that interval is non-negative (i.e., minh(x)≥0), then the inequality holds.
Worked Example:Problem: Prove that ex≥1+x for all real x.
Solution:
Step 1: Define a new function.
h(x)=ex−(1+x)=ex−x−1
We need to show that h(x)≥0 for all real x.
Step 2: Find the derivative of h(x).
h′(x)=ex−1
Step 3: Find critical points.
Set h′(x)=0:
ex−1=0
ex=1
x=0
Step 4: Use the Second Derivative Test to classify the critical point.
h′′(x)=ex
h′′(0)=e0=1
Since h′′(0)=1>0, there is a local minimum at x=0.
Step 5: Evaluate h(x) at the minimum.
h(0)=e0−0−1=1−0−1=0
Since x=0 is the only critical point and it corresponds to a local minimum, and h′′(x)=ex>0 for all x, the function h(x) is concave up everywhere, meaning this local minimum is also the global minimum.
Step 6: Conclude the inequality.
The global minimum value of h(x) is 0, which occurs at x=0. Therefore, h(x)≥0 for all real x.
This means ex−x−1≥0, which implies ex≥1+x.
Answer: The inequality is proven.
7. Optimization of Functions with Specific Forms (e.g., xlnx)
Functions like f(x)=xlnx frequently appear in CMI for proving inequalities. Analyzing its behavior is key.
Worked Example:Problem: Analyze the function f(x)=xlnx for x>0. Find its maximum value and use it to compare ab and ba for a,b>0.
Solution:
Part 1: Analyze f(x)=xlnx.
Step 1: Find the first derivative.
f′(x)=x2x1⋅x−lnx⋅1=x21−lnx
Step 2: Find critical points.
Set f′(x)=0:
x21−lnx1−lnxlnxx=0=0=1=e
The critical point is x=e.
Step 3: Use the First Derivative Test (or Second Derivative Test).
For x<e (e.g., x=1), f′(1)=121−ln1=11−0=1>0. (f is increasing)
For x>e (e.g., x=e2), f′(e2)=(e2)21−lne2=e41−2=−e41<0. (f is decreasing)
Since f′(x) changes from positive to negative at x=e, there is a local maximum at x=e.
Step 4: Evaluate the maximum value.
f(e)=elne=e1
Since it's the only critical point for x>0 and f(x)→−∞ as x→0+ and f(x)→0 as x→∞, this local maximum is also the global maximum.
Part 2: Use this to compare ab and ba.
Consider the inequality ab<ba.
This is equivalent to ln(ab)<ln(ba).
' in math mode at position 72: … both sides by̲ab(assuming…" style="color:#cc0000">\begin{aligned}b \ln a & < a \ln b \\
\intertext{Divide both sides by ab (assuming a,b & gt; 0):}
\frac{\ln a}{a} & < \frac{\ln b}{b}\end{aligned}
This means f(a)<f(b).
We know that f(x)=xlnx has a global maximum at x=e.
For x>e, f(x) is a decreasing function.
For 0<x<e, f(x) is an increasing function.
If a>b≥3:
Since e≈2.718, both a and b are greater than e.
In the interval (e,∞), f(x) is a decreasing function.
If a>b, then f(a)<f(b) because f is decreasing.
So, alna<blnb.
This implies blna<alnb, which further implies ln(ab)<ln(ba), and thus ab<ba.
Answer: The function f(x)=xlnx has a global maximum of e1 at x=e. For a>b≥3, since a,b>e and f(x) is decreasing for x>e, we have f(a)<f(b), which proves ab<ba.
---
8. Optimization of Composite Functions
When a function is a composition, f(g(x)), we can often find its extrema by finding the extrema of the inner function g(x) or by substitution.
Worked Example:Problem: Find the range of the function h(x)=sin2x−sinx+2.
Solution:
Step 1: Use substitution.
Let u=sinx.
Since −1≤sinx≤1, the variable u is restricted to the interval [−1,1].
The function becomes a quadratic in u: g(u)=u2−u+2.
Step 2: Find the extrema of g(u) on the interval [−1,1].
Find the derivative of g(u):
g′(u)=2u−1
Set g′(u)=0:
2u−1u=0=21
This critical point u=21 lies within the interval [−1,1].
Step 3: Evaluate g(u) at the critical point and the endpoints.
At u=21:
g(21)=(21)2−21+2=41−21+2=41−2+8=47
At endpoint u=−1:
g(−1)=(−1)2−(−1)+2=1+1+2=4
At endpoint u=1:
g(1)=(1)2−1+2=1−1+2=2
Step 4: Determine the maximum and minimum values.
The values are 47, 4, and 2.
The global minimum is 47.
The global maximum is 4.
Answer: The range of the function h(x) is [47,4].
---
Problem-Solving Strategies
💡CMI Strategy: Domain is Crucial
Always determine the valid domain for your variables in optimization problems. This is especially important for real-world scenarios where quantities like length, time, or concentration must be positive, or for functions defined on specific intervals. The global extrema might occur at endpoints of the domain, not just critical points.
💡CMI Strategy: Logarithmic Transformation for Powers
When dealing with expressions like ab or xy, taking the natural logarithm can simplify the problem by converting exponents into products (e.g., ln(ab)=blna). This is particularly useful for comparing such expressions or finding extrema of functions involving them.
💡CMI Strategy: Look for Monotonicity
If a function is strictly increasing or decreasing over an interval, its extrema on that interval will occur at the endpoints (if they exist). For functions like f(x)=1+exex, if f′(x) is always positive or always negative, then the function is monotonic, and you only need to check endpoints for global extrema on a closed interval.
💡CMI Strategy: Polynomial Roots and Derivatives
For polynomials, if P(x) has a local minimum that is positive, then P(x) has no real roots. Conversely, if P(x) has a local maximum that is negative, it also has no real roots. This is useful for proving the non-existence of roots (as seen in PYQ 8).
💡CMI Strategy: Geometric Interpretation of Optimization
For problems involving distance or geometric shapes (like spheres and planes in PYQ 9), visualize the scenario. The minimum distance between a sphere and a plane is the distance from the center of the sphere to the plane, minus the radius of the sphere. This transforms a calculus problem into a geometric one.
---
Common Mistakes
⚠️Avoid These Errors
❌ Assuming f′(c)=0 always means a local extremum.
✅ f′(c)=0 only indicates a critical point. You must use the First or Second Derivative Test to classify it. For example, f(x)=x3 has f′(0)=0 but no extremum at x=0.
❌ Forgetting to check endpoints for global extrema on a closed interval.
✅ The global maximum/minimum on a closed interval [a,b] can occur at a critical point or at an endpoint. Always evaluate f(a) and f(b).
❌ Confusing local extrema with global extrema.
✅ A function can have multiple local maxima/minima but only one global maximum/minimum (or none if the domain is open/unbounded and the function tends to ±∞).
❌ Incorrectly applying the Second Derivative Test when f′′(c)=0.
✅ If f′′(c)=0, the test is inconclusive. You must revert to the First Derivative Test or examine higher-order derivatives. For example, f(x)=x4 has f′′(0)=0 but x=0 is a local minimum. f(x)=x3 has f′′(0)=0 and x=0 is an inflection point.
❌ Not checking if the critical point is within the relevant domain.
✅ In applied problems, your variable might have a restricted domain (e.g., length cannot be negative). Critical points outside this domain are not valid.
❌ Mistaking an inflection point for a maximum or minimum.
✅ An inflection point is where concavity changes, not necessarily where the function reaches an extremum. At an inflection point, f′′(x) changes sign. A turning point (local extremum) is where f′(x) changes sign.
---
Practice Questions
:::question type="MCQ" question="Let f(x)=x4−8x2. Which of the following statements about its local extrema is true?" options=["f(x) has a local maximum at x=0 and local minima at x=±2.","f(x) has a local minimum at x=0 and local maxima at x=±2.","f(x) has local minima at x=0 and x=±2.","f(x) has a local maximum at x=±2 and a local minimum at x=0."] answer="f(x) has a local maximum at x=0 and local minima at x=±2." hint="Find f′(x) and f′′(x) to classify critical points." solution="Step 1: Find the first derivative.
f′(x)=4x3−16x
Step 2: Find critical points by setting f′(x)=0.
4x3−16x=0
4x(x2−4)=0
4x(x−2)(x+2)=0
Critical points are x=0,x=2,x=−2.
Step 3: Find the second derivative.
f′′(x)=12x2−16
Step 4: Apply the Second Derivative Test.
For x=0: f′′(0)=12(0)2−16=−16<0. So, f(x) has a local maximum at x=0.
For x=2: f′′(2)=12(2)2−16=12(4)−16=48−16=32>0. So, f(x) has a local minimum at x=2.
For x=−2: f′′(−2)=12(−2)2−16=12(4)−16=48−16=32>0. So, f(x) has a local minimum at x=−2.
The correct statement is that f(x) has a local maximum at x=0 and local minima at x=±2.
Answer: \boxed{f(x) \text{ has a local maximum at } x=0 \text{ and local minima at } x=\pm 2}"
:::
:::question type="NAT" question="A company's daily profit P (in thousands of rupees) from selling x units of a product is given by P(x)=−0.002x2+10x−500. What is the maximum daily profit (in thousands of rupees) the company can achieve?" answer="12000" hint="Find the critical point and verify it's a maximum." solution="Step 1: Find the first derivative of the profit function.
P′(x)=−0.004x+10
Step 2: Set P′(x)=0 to find the critical point.
−0.004x+10=0
0.004x=10
x=0.00410=410000=2500
Step 3: Verify it's a maximum using the Second Derivative Test.
P′′(x)=−0.004
Since P′′(x) is always negative, the critical point x=2500 corresponds to a global maximum.
Step 4: Calculate the maximum profit.
P(2500)=−0.002(2500)2+10(2500)−500
P(2500)=−0.002(6250000)+25000−500
P(2500)=−12500+25000−500
P(2500)=12500−500=12000
The maximum daily profit is 12000 thousand rupees.
Answer: \boxed{12000}"
:::
:::question type="MSQ" question="Let f(x)=xlnx for x>0. Which of the following statements is/are true?" options=["f(x) has a local minimum at x=e−1.","f(x) has a local maximum at x=e−1.","f(x) is concave up for all x>0.","f(x) has an inflection point at x=e−1."] answer="A,C" hint="Calculate f′(x) and f′′(x)." solution="Step 1: Find the first derivative.
f′(x)=1⋅lnx+x⋅x1=lnx+1
Step 2: Find critical points by setting f′(x)=0.
lnx+1=0
lnx=−1
x=e−1
Step 3: Find the second derivative.
f′′(x)=x1
Step 4: Apply the Second Derivative Test at x=e−1.
f′′(e−1)=e−11=e
Since f′′(e−1)=e>0, f(x) has a local minimum at x=e−1. So, option A is true, and option B is false.
Step 5: Analyze concavity.
Since f′′(x)=x1 and x>0, we have f′′(x)>0 for all x>0. This means f(x) is concave up for all x>0. So, option C is true.
Since f′′(x) never changes sign, there are no inflection points. So, option D is false.
Answer: \boxed{A,C}"
:::
:::question type="SUB" question="A cylindrical can is to be made to hold 1000 cm3 of liquid. Find the dimensions (radius and height) of the can that will minimize the amount of metal used (i.e., minimize the surface area)." answer="Radius r=3π500 cm, Height h=23π500 cm" hint="Formulate surface area and volume equations, then minimize surface area in terms of one variable." solution="Step 1: Define variables and formulas.
Let r be the radius of the base and h be the height of the cylindrical can.
Volume V=πr2h.
Surface Area A=2πr2+2πrh (includes top and bottom).
Step 2: Use the constraint to reduce the objective function to a single variable.
Given V=1000 cm3.
1000=πr2h
Express h in terms of r:
h=πr21000
Substitute h into the surface area formula:
A(r)=2πr2+2πr(πr21000)
A(r)=2πr2+r2000
The domain for r is (0,∞).
Step 3: Find the first derivative of A(r).
A′(r)=drd(2πr2+2000r−1)
A′(r)=4πr−2000r−2
Step 4: Set A′(r)=0 to find critical points.
4πr−r22000=0
4πr=r22000
4πr3=2000
r3=4π2000=π500
r=3π500
Step 5: Use the Second Derivative Test to verify it's a minimum.
A′′(r)=drd(4πr−2000r−2)
A′′(r)=4π+4000r−3=4π+r34000
For r=3π500, r3=π500.
A′′(3π500)=4π+500/π4000=4π+8π=12π
Since A′′(r)>0, this critical point corresponds to a local minimum. As it's the only critical point and A(r)→∞ as r→0+ and r→∞, it's the global minimum.
Step 6: Calculate the corresponding height h.
h=πr21000=π(3π500)21000=π(π500)2/31000
Alternatively, from 4πr3=2000, we have 2πr3=1000.
Since h=πr21000, we can write h=πr22πr3=2r.
So, h=23π500.
The dimensions that minimize the surface area are r=3π500 cm and h=23π500 cm.
Answer: \boxed{\text{Radius } r = \sqrt[3]{\frac{500}{\pi}} \text{ cm}, \text{ Height } h = 2\sqrt[3]{\frac{500}{\pi}} \text{ cm}}"
:::
:::question type="SUB" question="Prove that for x>0, x−2x2<ln(1+x). (Hint: Consider the function f(x)=ln(1+x)−x+2x2)" answer="Proof that f(x)>0" hint="Analyze the monotonicity of f(x) by checking its derivatives." solution="Step 1: Define the function to analyze.
Let f(x)=ln(1+x)−x+2x2. We want to show f(x)>0 for x>0.
Step 2: Evaluate f(x) at the boundary x=0.
f(0)=ln(1+0)−0+202=ln(1)−0+0=0
Step 3: Find the first derivative of f(x).
f′(x)=1+x1−1+x
Step 4: Analyze the sign of f′(x) for x>0.
To do this, let's find the derivative of f′(x), i.e., f′′(x).
f′′(x)=−(1+x)21+1
Set f′′(x)=0:
1=(1+x)21
(1+x)2=1
1+x=±1
x=0 or x=−2
Since we are interested in x>0, consider x=0.
Now, let's check the sign of f′′(x) for x>0:
For x>0, (1+x)2>1.
So, (1+x)21<1.
Therefore, f′′(x)=1−(1+x)21>0 for all x>0.
Step 5: Conclude about f′(x).
Since f′′(x)>0 for x>0, f′(x) is strictly increasing for x>0.
Now, evaluate f′(x) at x=0:
f′(0)=1+01−1+0=1−1=0
Since f′(x) is strictly increasing for x>0 and f′(0)=0, it means f′(x)>0 for all x>0.
Step 6: Conclude about f(x).
Since f′(x)>0 for x>0, f(x) is strictly increasing for x>0.
We know f(0)=0. Since f(x) is strictly increasing for x>0, it must be that f(x)>f(0) for x>0.
Thus, f(x)>0 for x>0.
Substituting back the definition of f(x):
ln(1+x)−x+2x2>0
ln(1+x)>x−2x2
This proves the inequality.
Answer: \boxed{\text{Proof that } f(x) > 0}"
:::
---
Summary
❗Key Takeaways for CMI
Critical Points: These are candidates for local extrema, found where f′(x)=0 or f′(x) is undefined.
Derivative Tests: Use the First Derivative Test (sign change of f′) or Second Derivative Test (f′′(c) sign) to classify critical points as local maxima or minima. Remember the Second Derivative Test is inconclusive if f′′(c)=0.
Global Extrema on Closed Intervals: For continuous functions on [a,b], check critical points in (a,b) AND the endpoints a,b. The largest/smallest value is the global extremum.
Concavity and Inflection Points:f′′(x)>0 implies concave up; f′′(x)<0 implies concave down. Inflection points occur where f′′(x)=0 (or is undefined) and f′′(x) changes sign.
Optimization Applications: Systematically set up objective functions and constraints from word problems, define the domain, and apply derivative tests. Logarithmic transformation is useful for expressions with variables in exponents.
Proving Inequalities: Use calculus by constructing a difference function h(x)=f(x)−g(x) and showing its minimum value on the required interval satisfies the inequality (e.g., minh(x)≥0).
---
What's Next?
💡Continue Learning
This topic connects to:
Integral Calculus: Understanding maxima and minima helps in analyzing the behavior of functions before integration, especially in areas like finding average values or applications in physics.
Multivariable Calculus (Optimization): The principles of finding critical points and using derivative tests extend to functions of multiple variables (e.g., using partial derivatives, Hessian matrix). This is critical for more complex data science models.
Convex Optimization: A specialized field in optimization, crucial in machine learning, which heavily relies on the concepts of concavity and convexity of functions to guarantee global optima.
Numerical Methods: When analytical solutions for extrema are difficult, numerical methods like gradient descent are used, which are fundamentally based on the concept of finding minima by following the negative gradient of a function.
Master these connections for comprehensive CMI preparation!
---
Chapter Summary
📖Differentiation and its Applications - Key Takeaways for CMI
Definition and Interpretation of the Derivative: Understand the derivative f′(x) as the instantaneous rate of change of f(x), the slope of the tangent line to the graph of f(x) at point x, and its formal definition using limits: f′(x)=limh→0hf(x+h)−f(x).
Mastery of Differentiation Rules: Be proficient in applying the Power Rule, Product Rule, Quotient Rule, Chain Rule, and their combinations to differentiate various types of functions (polynomials, exponentials, logarithms, trigonometric functions, etc.).
Higher-Order Derivatives and Concavity: Recognize the significance of the second derivative f′′(x). It determines the concavity of f(x) (concave up if f′′(x)>0, concave down if f′′(x)<0) and helps identify inflection points where concavity changes (f′′(x)=0 or undefined, and sign changes).
Critical Points: Understand that critical points are where f′(x)=0 or f′(x) is undefined. These are the only candidates for local maxima, local minima, or points of horizontal tangency.
First Derivative Test: Use the sign changes of f′(x) around critical points to classify local extrema:
* f′(x) changes from positive to negative ⟹ local maximum.
* f′(x) changes from negative to positive ⟹ local minimum.
* f′(x) does not change sign ⟹ no local extremum.
Second Derivative Test: Use f′′(x) at a critical point c (where f′(c)=0) to classify local extrema:
* If f′′(c)>0⟹ local minimum.
* If f′′(c)<0⟹ local maximum.
* If f′′(c)=0, the test is inconclusive, and the First Derivative Test must be used.
Optimization Problems: Apply differentiation techniques to solve real-world optimization problems. This involves setting up a function to be maximized or minimized, identifying its domain (especially for closed intervals), finding critical points, and using the First or Second Derivative Test (or comparing values at critical points and endpoints for closed intervals) to find the absolute maximum or minimum.
---
Chapter Review Questions
:::question type="MCQ" question="Let f(x)=xe−x2/2. Which of the following statements is true about the local extrema of f(x)?" options=["f(x) has a local minimum at x=−1 and a local maximum at x=1.","f(x) has a local maximum at x=−1 and a local minimum at x=1.","f(x) has a local minimum at x=0 only.","f(x) has no local extrema."] answer="A" hint="Use the product rule and chain rule to find f′(x). Then, set f′(x)=0 to find critical points and apply the First Derivative Test." solution="To find the local extrema, we first need to find the first derivative f′(x).
Given f(x)=xe−x2/2.
Using the product rule (uv)′=u′v+uv′ where u=x and v=e−x2/2:
u′=1
v′=e−x2/2⋅dxd(−2x2)=e−x2/2⋅(−x)=−xe−x2/2
So,
f′(x)=(1)e−x2/2+x(−xe−x2/2)
f′(x)=e−x2/2−x2e−x2/2
f′(x)=e−x2/2(1−x2)
Next, we set f′(x)=0 to find the critical points:
e−x2/2(1−x2)=0
Since e−x2/2 is always positive, we must have 1−x2=0.
x2=1⟹x=±1
The critical points are x=−1 and x=1.
Now, we use the First Derivative Test to classify these critical points by examining the sign of f′(x) around them:
* For x<−1 (e.g., x=−2): f′(−2)=e−(−2)2/2(1−(−2)2)=e−2(1−4)=−3e−2<0. So f(x) is decreasing.
* For −1<x<1 (e.g., x=0): f′(0)=e−(0)2/2(1−(0)2)=e0(1−0)=1>0. So f(x) is increasing.
* For x>1 (e.g., x=2): f′(2)=e−(2)2/2(1−(2)2)=e−2(1−4)=−3e−2<0. So f(x) is decreasing.
Based on the sign changes:
* At x=−1, f′(x) changes from negative to positive. Thus, f(x) has a local minimum at x=−1.
* At x=1, f′(x) changes from positive to negative. Thus, f(x) has a local maximum at x=1.
Therefore, option A is true.
The final answer is A"
:::
Differentiation and its Applications
1. Fundamentals of Differentiation
Differentiation is the mathematical study of change. It allows us to calculate the instantaneous rate at which a function's output changes relative to its input.
1.1 Limits and Continuity
A function f(x) is continuous at a point c if the limit as x approaches c equals the function's value at c:
x→climf(x)=f(c)
L'Hôpital's Rule:
For indeterminate forms of type 00 or ∞∞, the limit of the quotient of two functions is the limit of the quotient of their derivatives:
x→climg(x)f(x)=x→climg′(x)f′(x)
1.2 Differentiability
A function is differentiable at x=c if the derivative f′(c) exists.
The Visual Test: A graph must be "smooth." Sharp corners (like in f(x)=∣x∣ at x=0) or vertical tangents indicate points where the function is not differentiable.
Differentiability ⟹ Continuity: If a function is differentiable at a point, it is guaranteed to be continuous there.
:::
:::question type="MSQ" question="Let f(x)=x3−6x2+9x+1. Select all correct statements regarding its behavior." options=["x=1 is a point of local maximum","x=3 is a point of local minimum","x=2 is an inflection point","f(x) is increasing on the interval (1,3)"] answer="A,B,C" hint="Find critical points where f′(x)=0 and use the second derivative test." solution="
f′(x)=3x2−12x+9=3(x−1)(x−3). Critical points are 1 and 3.
f′′(x)=6x−12.
At x=1:f′′(1)=−6<0⟹ Local Max.
At x=3:f′′(3)=6>0⟹ Local Min.
At x=2:f′′(2)=0 and the sign of f′′(x) changes, so it is an inflection point.
Interval (1, 3):f′(x) is negative here, so the function is decreasing, not increasing."
:::
:::question type="SUB" question="A spherical balloon is being inflated such that its volume increases at a constant rate of 100 cm3/s. At what rate is the radius increasing when the radius is 5 cm?" answer="\dfrac{1}{\pi}" hint="Volume of a sphere V=34πr3. Use implicit differentiation with respect to time t." solution="
V=34πr3.
Differentiate with respect to t: dtdV=4πr2dtdr.
Substitute dtdV=100 and r=5:
100=4π(25)dtdr⟹100=100πdtdr.
dtdr=π1 cm/s."
:::
Differentiation and its Applications
1. Overview and Learning Objectives
Differentiation is a cornerstone of calculus, essential for understanding rates of change, sensitivity, and optimization in Data Science. Whether calculating gradients for machine learning loss functions or analyzing the elasticity of a model's parameters, the principles of derivatives provide the necessary analytical framework.
❗Learning Objectives
By the end of this chapter, you will be able to:
Apply standard differentiation rules (Power, Product, Quotient, Chain) to polynomial, exponential, and logarithmic functions.
Interpret the first and second derivatives (f′(x) and f′′(x)) to analyze function behavior, rates of change, and concavity.
Use L'Hôpital's Rule to resolve indeterminate limits of the form 00 or ∞∞.
Identify and classify local maxima, minima, and inflection points using derivative tests.
Solve practical optimization and related rates problems relevant to data analysis and quantitative decision-making.
---
2. Fundamentals of Differentiation
Differentiation quantifies the instantaneous rate at which a quantity changes. Geometrically, it represents the slope of the tangent line to a curve at a specific point.
2.1 Limits, Continuity, and Differentiability
Limit:limx→cf(x)=L if f(x) approaches L as x approaches c from both sides.
Continuity: A function is continuous at c if limx→cf(x)=f(c).
Differentiability: A function is differentiable at c if f′(c)=limh→0hf(c+h)−f(c) exists.
The Core Link: Differentiability ⟹ Continuity. However, the converse is false (e.g., f(x)=∣x∣ is continuous at x=0 but not differentiable due to the sharp corner).
:::question type="SUB" question="Evaluate the limit: limx→0xsinxe2x−2x−cosx." answer="\dfrac{5}{2}" hint="This is a 00 form. Apply L'Hôpital's Rule twice." solution="
First Application: Differentiating numerator and denominator:
limx→0sinx+xcosx2e2x−2+sinx. This is still 00.
Second Application:
limx→02cosx−xsinx4e2x+cosx.
Substitution:2(1)−04(1)+1=25."
:::
:::question type="MSQ" question="Let f(x)=x3−6x2+9x+1. Select all correct statements regarding its behavior." options=["x=1 is a point of local maximum","x=3 is a point of local minimum","x=2 is an inflection point","f(x) is increasing on the interval (1,3)"] answer="A,B,C" hint="Find critical points where f′(x)=0 and use the second derivative test." solution="
f′(x)=3x2−12x+9=3(x−1)(x−3). Critical points are 1 and 3.
f′′(x)=6x−12.
At x=1:f′′(1)=−6<0⟹ Local Max.
At x=3:f′′(3)=6>0⟹ Local Min.
At x=2:f′′(2)=0 and the sign of f′′(x) changes, so it is an inflection point.
Interval (1, 3):f′(x) is negative here, so the function is decreasing."
:::
:::question type="SUB" question="A spherical balloon is inflated at a rate of 100 cm3/s. At what rate is the radius increasing when the radius is 5 cm?" answer="\dfrac{1}{\pi}" hint="Volume V=34πr3. Use dtdV=drdV⋅dtdr." solution="
V=34πr3⟹dtdV=4πr2dtdr.
100=4π(52)dtdr⟹100=100πdtdr.
dtdr=π1 cm/s."
:::
Differentiation and its Applications
1. Overview and Learning Objectives
Differentiation is a cornerstone of calculus, essential for understanding rates of change, sensitivity, and optimization in Data Science. Whether calculating gradients for machine learning loss functions or analyzing the elasticity of a model's parameters, the principles of derivatives provide the necessary analytical framework.
❗Learning Objectives
By the end of this chapter, you will be able to:
Apply standard differentiation rules (Power, Product, Quotient, Chain) to polynomial, exponential, and logarithmic functions.
Interpret the first and second derivatives (f′(x) and f′′(x)) to analyze function behavior, rates of change, and concavity.
Use L'Hôpital's Rule to resolve indeterminate limits of the form 00 or ∞∞.
Identify and classify local maxima, minima, and inflection points using derivative tests.
Solve practical optimization and related rates problems relevant to data analysis and quantitative decision-making.
---
2. Fundamentals of Differentiation
Differentiation quantifies the instantaneous rate at which a quantity changes. Geometrically, it represents the slope of the tangent line to a curve at a specific point.
2.1 Limits, Continuity, and Differentiability
Limit:limx→cf(x)=L if f(x) approaches L as x approaches c from both sides.
Continuity: A function is continuous at c if limx→cf(x)=f(c).
Differentiability: A function is differentiable at c if f′(c)=limh→0hf(c+h)−f(c) exists.
The Core Link: Differentiability ⟹ Continuity. However, the converse is false (e.g., f(x)=∣x∣ is continuous at x=0 but not differentiable due to the sharp corner).
2.2 Advanced Derivative Tests
To find the optimal points of a function f(x):
Find Critical Points: Solve f′(x)=0 or find where f′(x) is undefined.
First Derivative Test: Observe the sign change of f′(x) across the critical point.
- (+)→(−) is a Local Maximum.
- (−)→(+) is a Local Minimum.
Second Derivative Test: Evaluate f′′(x) at the critical point c:
- If f′′(c)>0: Local Minimum (Concave Up).
- If f′′(c)<0: Local Maximum (Concave Down).
- If f′′(c)=0: The test is inconclusive; use the First Derivative Test.
---
3. Practice and Conceptual Analysis
:::question type="SUB" question="Evaluate the limit: limx→0xsinxe2x−2x−cosx." answer="\dfrac{5}{2}" hint="This is a 00 form. Apply L'Hôpital's Rule twice." solution="
First Application: Differentiating numerator and denominator:
limx→0sinx+xcosx2e2x−2+sinx. This is still 00.
Second Application:
limx→02cosx−xsinx4e2x+cosx.
Substitution:2(1)−04(1)+1=25."
:::
:::question type="MSQ" question="Let f(x)=x3−6x2+9x+1. Select all correct statements regarding its behavior." options=["x=1 is a point of local maximum","x=3 is a point of local minimum","x=2 is an inflection point","f(x) is increasing on the interval (1,3)"] answer="A,B,C" hint="Find critical points where f′(x)=0 and use the second derivative test." solution="
f′(x)=3x2−12x+9=3(x−1)(x−3). Critical points are 1 and 3.
f′′(x)=6x−12.
At x=1:f′′(1)=−6<0⟹ Local Max.
At x=3:f′′(3)=6>0⟹ Local Min.
At x=2:f′′(2)=0 and the sign of f′′(x) changes, so it is an inflection point.
Interval (1, 3):f′(x) is negative here, so the function is decreasing."
:::
:::question type="SUB" question="You want to design a cylindrical can that holds 1 liter (1000 cm3) of liquid. Find the radius r that minimizes the surface area." answer="\sqrt[3]{\dfrac{500}{\pi}}" hint="Surface Area S=2πr2+2πrh. Substitute h using the volume formula V=πr2h." solution="
Volume V=πr2h=1000⟹h=πr21000.
Surface Area S=2πr2+2πr(πr21000)=2πr2+r2000.
Differentiate S with respect to r: drdS=4πr−r22000.
Set drdS=0: 4πr=r22000⟹r3=π500.
r=3π500."
:::
:::question type="MSQ" question="Which of the following are true regarding differentiability and continuity?" options=["If f is differentiable at c, it must be continuous at c","If f is continuous at c, it must be differentiable at c","If f′ is continuous at c, then f is differentiable at c","If f has a vertical tangent at c, it is not differentiable at c"] answer="A,C,D" hint="Think about absolute value functions and vertical slopes." solution="
A: This is a fundamental theorem of calculus.
B: False. Counterexample: f(x)=∣x∣ at x=0 is continuous but not differentiable.
C: True. If the derivative exists and is continuous in a neighborhood, the function is differentiable.
Differentiation is a cornerstone of calculus, essential for understanding rates of change, sensitivity, and optimization in Data Science. Whether calculating gradients for machine learning loss functions or analyzing the elasticity of a model's parameters, the principles of derivatives provide the necessary analytical framework.
❗Learning Objectives
By the end of this chapter, you will be able to:
Apply standard differentiation rules (Power, Product, Quotient, Chain) to polynomial, exponential, and logarithmic functions.
Interpret the first and second derivatives (f′(x) and f′′(x)) to analyze function behavior, rates of change, and concavity.
Use L'Hôpital's Rule to resolve indeterminate limits of the form 00 or ∞∞.
Identify and classify local maxima, minima, and inflection points using derivative tests.
Solve practical optimization and related rates problems relevant to data analysis and quantitative decision-making.
---
2. Fundamentals of Differentiation
Differentiation quantifies the instantaneous rate at which a quantity changes. Geometrically, it represents the slope of the tangent line to a curve at a specific point.
2.1 Limits, Continuity, and Differentiability
Limit:limx→cf(x)=L if f(x) approaches L as x approaches c from both sides.
Continuity: A function is continuous at c if limx→cf(x)=f(c).
Differentiability: A function is differentiable at c if f′(c)=limh→0hf(c+h)−f(c) exists.
The Core Link: Differentiability ⟹ Continuity. However, the converse is false (e.g., f(x)=∣x∣ is continuous at x=0 but not differentiable due to the sharp corner).
2.2 Advanced Derivative Tests
To find the optimal points of a function f(x):
Find Critical Points: Solve f′(x)=0 or find where f′(x) is undefined.
First Derivative Test: Observe the sign change of f′(x) across the critical point.
- (+)→(−) is a Local Maximum.
- (−)→(+) is a Local Minimum.
Second Derivative Test: Evaluate f′′(x) at the critical point c:
- If f′′(c)>0: Local Minimum (Concave Up).
- If f′′(c)<0: Local Maximum (Concave Down).
- If f′′(c)=0: The test is inconclusive; use the First Derivative Test.
---
3. Practice and Conceptual Analysis
:::question type="SUB" question="Evaluate the limit: limx→0xsinxe2x−2x−cosx." answer="\dfrac{5}{2}" hint="This is a 00 form. Apply L'Hôpital's Rule twice." solution="
First Application: Differentiating numerator and denominator:
limx→0sinx+xcosx2e2x−2+sinx. This is still 00.
Second Application:
limx→02cosx−xsinx4e2x+cosx.
Substitution:2(1)−04(1)+1=25."
:::
:::question type="MSQ" question="Let f(x)=x3−6x2+9x+1. Select all correct statements regarding its behavior." options=["x=1 is a point of local maximum","x=3 is a point of local minimum","x=2 is an inflection point","f(x) is increasing on the interval (1,3)"] answer="A,B,C" hint="Find critical points where f′(x)=0 and use the second derivative test." solution="
f′(x)=3x2−12x+9=3(x−1)(x−3). Critical points are 1 and 3.
f′′(x)=6x−12.
At x=1:f′′(1)=−6<0⟹ Local Max.
At x=3:f′′(3)=6>0⟹ Local Min.
At x=2:f′′(2)=0 and the sign of f′′(x) changes, so it is an inflection point.
Interval (1, 3):f′(x) is negative here, so the function is decreasing."
:::
:::question type="SUB" question="You want to design a cylindrical can that holds 1 liter (1000 cm3) of liquid. Find the radius r that minimizes the surface area." answer="\sqrt[3]{\dfrac{500}{\pi}}" hint="Surface Area S=2πr2+2πrh. Substitute h using the volume formula V=πr2h." solution="
Volume V=πr2h=1000⟹h=πr21000.
Surface Area S=2πr2+2πr(πr21000)=2πr2+r2000.
Differentiate S with respect to r: drdS=4πr−r22000.
Set drdS=0: 4πr=r22000⟹r3=π500.
r=3π500."
:::
:::question type="MSQ" question="Which of the following are true regarding differentiability and continuity?" options=["If f is differentiable at c, it must be continuous at c","If f is continuous at c, it must be differentiable at c","If f′ is continuous at c, then f is differentiable at c","If f has a vertical tangent at c, it is not differentiable at c"] answer="A,C,D" hint="Think about absolute value functions and vertical slopes." solution="
A: This is a fundamental theorem of calculus.
B: False. Counterexample: f(x)=∣x∣ at x=0 is continuous but not differentiable.
C: True. If the derivative exists and is continuous in a neighborhood, the function is differentiable.
4. Final Synthesis: Gradients and Optimization in Data Science
Mastering differentiation is not just about tracing functions; it is about finding directions.
4.1 The Role of the Gradient
In machine learning, we often deal with "Loss Functions" that measure the error of a model. The goal is to minimize this error.
The Derivative (or gradient in higher dimensions) tells us the slope of the error surface.
Gradient Descent: By moving in the opposite direction of the derivative, we "slide down" the curve to find the local minimum (the optimal parameters).
4.2 Sensitivity Analysis
Derivatives allow us to perform sensitivity analysis. If we have a model y=f(x), the derivative dxdy tells us how much y will change for a small change in x. This is vital for understanding model stability and risk.
Through the lenses of optimization and rate of change, differentiation becomes the primary engine for decision-making in quantitative fields.
Differentiation and its Applications
1. Overview and Learning Objectives
Differentiation is a cornerstone of calculus, essential for understanding rates of change, sensitivity, and optimization in Data Science. Whether calculating gradients for machine learning loss functions or analyzing the elasticity of a model's parameters, the principles of derivatives provide the necessary analytical framework.
❗Learning Objectives
By the end of this chapter, you will be able to:
Apply standard differentiation rules (Power, Product, Quotient, Chain) to polynomial, exponential, and logarithmic functions.
Interpret the first and second derivatives (f′(x) and f′′(x)) to analyze function behavior, rates of change, and concavity.
Use L'Hôpital's Rule to resolve indeterminate limits of the form 00 or ∞∞.
Identify and classify local maxima, minima, and inflection points using derivative tests.
Solve practical optimization and related rates problems relevant to data analysis and quantitative decision-making.
---
2. Fundamentals of Differentiation
Differentiation quantifies the instantaneous rate at which a quantity changes. Geometrically, it represents the slope of the tangent line to a curve at a specific point.
2.1 Limits, Continuity, and Differentiability
Limit:limx→cf(x)=L if f(x) approaches L as x approaches c from both sides.
Continuity: A function is continuous at c if limx→cf(x)=f(c).
Differentiability: A function is differentiable at c if f′(c)=limh→0hf(c+h)−f(c) exists.
The Core Link: Differentiability ⟹ Continuity. However, the converse is false (e.g., f(x)=∣x∣ is continuous at x=0 but not differentiable due to the sharp corner).
2.2 Advanced Derivative Tests
To find the optimal points of a function f(x):
Find Critical Points: Solve f′(x)=0 or find where f′(x) is undefined.
First Derivative Test: Observe the sign change of f′(x) across the critical point.
- (+)→(−) is a Local Maximum.
- (−)→(+) is a Local Minimum.
Second Derivative Test: Evaluate f′′(x) at the critical point c:
- If f′′(c)>0: Local Minimum (Concave Up).
- If f′′(c)<0: Local Maximum (Concave Down).
- If f′′(c)=0: The test is inconclusive; use the First Derivative Test.
---
3. Practice and Conceptual Analysis
:::question type="SUB" question="Evaluate the limit: limx→0xsinxe2x−2x−cosx." answer="\dfrac{5}{2}" hint="This is a 00 form. Apply L'Hôpital's Rule twice." solution="
First Application: Differentiating numerator and denominator:
limx→0sinx+xcosx2e2x−2+sinx. This is still 00.
Second Application:
limx→02cosx−xsinx4e2x+cosx.
Substitution:2(1)−04(1)+1=25."
:::
:::question type="MSQ" question="Let f(x)=x3−6x2+9x+1. Select all correct statements regarding its behavior." options=["x=1 is a point of local maximum","x=3 is a point of local minimum","x=2 is an inflection point","f(x) is increasing on the interval (1,3)"] answer="A,B,C" hint="Find critical points where f′(x)=0 and use the second derivative test." solution="
f′(x)=3x2−12x+9=3(x−1)(x−3). Critical points are 1 and 3.
f′′(x)=6x−12.
At x=1:f′′(1)=−6<0⟹ Local Max.
At x=3:f′′(3)=6>0⟹ Local Min.
At x=2:f′′(2)=0 and the sign of f′′(x) changes, so it is an inflection point.
Interval (1, 3):f′(x) is negative here, so the function is decreasing."
:::
:::question type="SUB" question="You want to design a cylindrical can that holds 1 liter (1000 cm3) of liquid. Find the radius r that minimizes the surface area." answer="\sqrt[3]{\dfrac{500}{\pi}}" hint="Surface Area S=2πr2+2πrh. Substitute h using the volume formula V=πr2h." solution="
Volume V=πr2h=1000⟹h=πr21000.
Surface Area S=2πr2+2πr(πr21000)=2πr2+r2000.
Differentiate S with respect to r: drdS=4πr−r22000.
Set drdS=0: 4πr=r22000⟹r3=π500.
r=3π500."
:::
:::question type="MSQ" question="Which of the following are true regarding differentiability and continuity?" options=["If f is differentiable at c, it must be continuous at c","If f is continuous at c, it must be differentiable at c","If f′ is continuous at c, then f is differentiable at c","If f has a vertical tangent at c, it is not differentiable at c"] answer="A,C,D" hint="Think about absolute value functions and vertical slopes." solution="
A: This is a fundamental theorem of calculus.
B: False. Counterexample: f(x)=∣x∣ at x=0 is continuous but not differentiable.
C: True. If the derivative exists and is continuous in a neighborhood, the function is differentiable.
4. Final Synthesis: Gradients and Optimization in Data Science
Mastering differentiation is not just about tracing functions; it is about finding directions.
4.1 The Role of the Gradient
In machine learning, we often deal with "Loss Functions" that measure the error of a model. The goal is to minimize this error.
The Derivative (or gradient in higher dimensions) tells us the slope of the error surface.
Gradient Descent: By moving in the opposite direction of the derivative, we "slide down" the curve to find the local minimum (the optimal parameters).
4.2 Sensitivity Analysis
Derivatives allow us to perform sensitivity analysis. If we have a model y=f(x), the derivative dxdy tells us how much y will change for a small change in x. This is vital for understanding model stability and risk.
Through the lenses of optimization and rate of change, differentiation becomes the primary engine for decision-making in quantitative fields.
🎯 Key Points to Remember
✓Master the core concepts in Differentiation and its Applications before moving to advanced topics
✓Practice with previous year questions to understand exam patterns
✓Review short notes regularly for quick revision before exams