Differentiation and its Applications
Overview
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
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.
The derivative of a function with respect to , denoted by or , is defined as the limit of the average rate of change as the interval approaches zero:
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.
A function has a limit as approaches , written as , if for every , there exists a such that if , then .
One-Sided Limits:
- Left-hand limit: (as approaches from values less than ).
- Right-hand limit: (as approaches from values greater than ).
Properties of Limits:
If and , then:
Methods for Evaluation of Limits:
* Direct Substitution: If is a polynomial or a rational function (where the denominator is non-zero at ), the limit can be found by direct substitution: .
* Factorization/Cancellation: If direct substitution results in an indeterminate form like , 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:
*
*
*
* Limits at Infinity: To evaluate for rational functions, divide the numerator and denominator by the highest power of in the denominator. For polynomials, the limit is determined by the term with the highest power.
Example:
- If , the limit is .
- If , the limit is .
- If , the limit is .
* L'Hôpital's Rule: This rule applies to indeterminate forms or . If is of the form or , then
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 (or if ) can simplify the limit evaluation.
*
*
*
*
Worked Example: L'Hôpital's Rule
Problem: Evaluate
Solution:
Step 1: Check the form of the limit by direct substitution.
As ,
This is an indeterminate form , 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:
Derivative of denominator:
Step 3: Check the form again.
As ,
Still an indeterminate form , so apply L'Hôpital's Rule again.
Step 4: Apply L'Hôpital's Rule for the second time.
Derivative of numerator:
Derivative of denominator:
Step 5: Check the form again.
As ,
The limit is now a determinate form.
Step 6: Evaluate the limit.
Answer:
---
---
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.
A function is said to be continuous at a point if all three conditions are met:
- is defined (the function exists at ).
- exists (the limit exists at ).
- (the limit equals the function value).
Continuity on an Interval: A function is continuous on an open interval if it is continuous at every point in the interval. It is continuous on a closed interval if it is continuous on , and also and .
Types of Discontinuities: (PYQ 2)
Example: at . , but is undefined.
Example: (floor function) at integer points.
Example: at .
Properties of Continuous Functions: (PYQ 1)
If and are continuous at , then:
Important Implications for Discontinuous Functions:
* If is continuous and is discontinuous at , then is necessarily discontinuous at . (PYQ 1)
* If is continuous and is discontinuous at , then can be continuous or discontinuous at . For example, if for all , then which is continuous, even if is discontinuous. (PYQ 1)
* If and are both discontinuous at , then can be continuous or discontinuous at . For example, and are both discontinuous at , but (continuous). (PYQ 1)
* If and are both discontinuous at , then can be continuous or discontinuous at . (PYQ 1)
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 Discontinuity
Problem: Determine if has a removable discontinuity at .
Solution:
Step 1: Check if is defined.
, which is undefined. So, there is a discontinuity at .
Step 2: Evaluate the limit as .
Factor out from numerator and denominator:
Cancel the common factor (since for the limit):
Substitute :
Step 3: Compare the limit with the function value.
Since exists, but is undefined, has a removable discontinuity at .
Answer: Yes, has a removable discontinuity at .
---
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.
A function is differentiable at a point if the limit
exists. This limit is called the derivative of at .
Geometric Meaning: The derivative represents the slope of the tangent line to the graph of at the point .
Physical Meaning: If represents the position of an object at time , then represents its instantaneous velocity.
Relationship between Differentiability and Continuity:
If a function is differentiable at a point , then it must be continuous at .
The converse is not true: a function can be continuous at a point but not differentiable (e.g., at ).
The derivative of a function can itself be a function, . The continuity of implies that the original function is "smooth" without abrupt changes in slope. (PYQ 8)
Rules of Differentiation:
- Constant Rule:
- Power Rule:
- Constant Multiple Rule:
- Sum/Difference Rule:
- Product Rule:
- Quotient Rule:
- Chain Rule:
Derivatives of Standard Functions:
*
*
*
*
*
*
*
*
*
Implicit Differentiation: Used when cannot be easily expressed as an explicit function of . Differentiate both sides of the equation with respect to , treating as a function of and applying the chain rule to terms involving . (PYQ 10, 11)
Higher Order Derivatives: The derivative of is the second derivative , and so on. denotes the -th derivative.
Constant Derivative Implies Constant Function: If for all in an interval , then is a constant function on that interval. This is a direct consequence of the Mean Value Theorem. If for all rational numbers , and is twice differentiable (implying is continuous), then must be 0 for all real . Therefore, is a constant function. (PYQ 9)
Worked Example: Implicit Differentiation and Chain Rule
Problem: Find if .
Solution:
Step 1: Differentiate both sides of the equation with respect to .
Step 2: Apply differentiation rules. For , use the chain rule (treating as a function of ).
Step 3: Isolate .
Answer:
---
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.
Given a curve and a point on the curve:
- Slope of Tangent:
- Equation of Tangent:
- Slope of Normal: (if )
- Equation of Normal:
Worked Example: Tangent Line and X-intercept
Problem: Let . Draw a tangent to the curve at the point whose -coordinate is . Where does this tangent intersect the -axis?
Solution:
Step 1: Find the -coordinate of the point.
Given , .
The point is .
Step 2: Find the derivative .
Step 3: Calculate the slope of the tangent at .
Step 4: Write the equation of the tangent line.
Using :
Step 5: Find the -intercept.
The -axis is where . Substitute into the tangent equation:
Answer: The tangent intersects the -axis at .
---
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 (). (PYQ 10, 11)
Strategy for Related Rates:
Worked Example: Related Rates (Volume of a Sphere)
Problem: A spherical ball of ice of radius 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 . At what rate does the volume of the ice ball decrease, when the radius of the ball is ?
Solution:
Step 1: Identify variables and rates.
- Let be the volume of the sphere and be its radius.
- Given rate of change of radius: (negative because the radius is decreasing).
- We need to find the rate of change of volume: when .
Step 2: Formulate an equation relating and .
The volume of a sphere is given by:
Step 3: Differentiate implicitly with respect to time .
Apply the chain rule:
Step 4: Substitute known values and solve.
We need when and .
The negative sign indicates that the volume is decreasing. The rate of decrease is .
Answer: The volume of the ice ball decreases at a rate of .
---
---
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 on an interval, is increasing on that interval.
* If on an interval, is decreasing on that interval.
* If on an interval, is constant on that interval.
* Critical Points: A point in the domain of is a critical point if or 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 in intervals around each critical point.
3. If changes from positive to negative at , is a local maximum.
4. If changes from negative to positive at , is a local minimum.
5. If does not change sign, is neither a local maximum nor minimum.
* Second Derivative Test:
1. Find critical points where .
2. Calculate .
3. If , is a local minimum.
4. If , is a local maximum.
5. If , the test is inconclusive (use the First Derivative Test).
Worked Example: Local Extrema
Problem: Find the local extrema of .
Solution:
Step 1: Find the first derivative .
Step 2: Find critical points by setting .
Divide by 3:
Factor:
Critical points are and .
Step 3: Use the Second Derivative Test. Find .
Step 4: Evaluate at each critical point.
For :
Since , there is a local maximum at .
Local maximum value is at .
For :
Since , there is a local minimum at .
Local minimum value is at .
Answer:
---
d. Concavity and Inflection Points
The second derivative helps determine the concavity of a function's graph and identify inflection points.
* Concavity:
* If on an interval, the graph of is concave up (opens upwards) on that interval.
* If on an interval, the graph of is concave down (opens downwards) on that interval.
Inflection Point: A point on the graph of is an inflection point if the concavity of the graph changes at . This typically occurs where or is undefined, and* changes sign around . (PYQ 7)
Worked Example: Inflection Points
Problem: Given the function , identify its inflection points.
Solution:
Step 1: Find the first derivative .
Step 2: Find the second derivative .
Step 3: Set to find potential inflection points.
Factor out :
Potential inflection points are and .
Step 4: Analyze the sign of around these points to check for a change in concavity.
* For :
* Choose a test value slightly less than , e.g., :
(concave down).
* Choose a test value slightly greater than , e.g., :
(concave down).
Since does not change sign around , is not an inflection point.
* For :
* Choose a test value slightly less than , e.g., :
(concave down).
* Choose a test value slightly greater than , e.g., :
(concave up).
Since changes sign from negative to positive at , is an inflection point.
Answer:
---
Problem-Solving Strategies
- 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 .
Self-correction: L'Hôpital's Rule should be `L'Hôpital's Rule` (already correct, just checking)
`` and ``
* `highest power of ` - is already in math mode.
- Continuity: Systematically check the three conditions: defined, 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 (). Substitute known values carefully.
- Extrema & Inflection Points: Clearly distinguish between finding critical points ( or undefined) for extrema and finding potential inflection points ( or undefined). Always verify sign changes for both first and second derivative tests.
---
Common Mistakes
- ❌ Confusing continuity and differentiability: A function being continuous does NOT guarantee it is differentiable. E.g., is continuous at but not differentiable.
- ❌ Incorrect application of L'Hôpital's Rule: Applying L'Hôpital's Rule when the limit is not of or form.
- ❌ Errors in Chain Rule: Forgetting to multiply by the derivative of the inner function, especially in implicit differentiation or nested functions.
- ❌ Not checking sign change for inflection points: Assuming automatically means is an inflection point.
- ❌ Units in Related Rates: Forgetting to include units or using incorrect units in the final answer.
---
Practice Questions
:::question type="MCQ" question="Let . For to be differentiable at , what must be the values of and ?" options=["","","",""] answer="" 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 , the left-hand limit, right-hand limit, and function value must be equal.
So,
Step 2: For differentiability at , the left-hand derivative must equal the right-hand derivative.
So,
Step 3: Substitute into the continuity equation.
Therefore, and .
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 . 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 be the length of the ladder, be the distance of the base from the wall, and be the height of the top of the ladder on the wall.
Given: (constant).
Rate at which the base is pulled away: .
We need to find (speed at which the top slides down) when .
Step 2: Formulate an equation relating , , and .
By the Pythagorean theorem:
Step 3: Find when .
Step 4: Differentiate the equation implicitly with respect to time .
Divide by 2:
Step 5: Substitute the known values and solve for .
Substitute , , and :
The negative sign indicates that the height is decreasing, meaning the top of the ladder is sliding down. The speed is the absolute value of this rate.
The speed is .
Answer: \boxed{0.25}"
:::
:::question type="MSQ" question="Which of the following functions have a local maximum at ?" options=["","","",""] answer="A,B,D" hint="Use the first or second derivative test. For a local maximum at , and (or changes from positive to negative at ). " solution="Let's analyze each option:
A.
Since and , has a local maximum at . Correct.
B.
Since and , has a local maximum at . Correct.
C.
The second derivative test is inconclusive. Use the first derivative test:
For , .
For , .
Since does not change sign (it's positive on both sides of ), is an inflection point, not a local extremum. Incorrect.
D.
Since and , has a local maximum at . Correct.
Answer: \boxed{A,B,D}"
:::
:::question type="SUB" question="Find the interval(s) where the function is decreasing." answer="" hint="A function is decreasing where its first derivative is negative." solution="Step 1: Find the first derivative of .
Step 2: Find the critical points by setting .
Divide by 3:
Factor the quadratic:
The critical points are and .
Step 3: Create a sign table for using the critical points to define intervals.
The intervals are , , and .
* Interval : Choose test value .
So, is increasing on .
* Interval : Choose test value .
So, is decreasing on .
* Interval : Choose test value .
So, is increasing on .
Step 4: Identify the interval(s) where is decreasing.
The function is decreasing on the interval where .
Therefore, is decreasing on .
Answer: \boxed{(-1, 3)}"
:::
---
Summary
- 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?
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!
---
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.A function has a local maximum at if there exists an open interval containing such that for all .
A function has a local minimum at if there exists an open interval containing such that for all .
A function has a global maximum at if for all in the domain of .
A function has a global minimum at if for all in the domain of .
---
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.
A point in the domain of is called a critical point if either or 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.
Let be a critical point of .
- If changes from positive to negative at , then is a local maximum.
- If changes from negative to positive at , then is a local minimum.
- If does not change sign at (i.e., it's positive on both sides or negative on both sides), then is neither a local maximum nor a local minimum.
Worked Example:
Problem: Find the local extrema of .
Solution:
Step 1: Find the first derivative and critical points.
Set :
The critical points are and .
Step 2: Apply the First Derivative Test.
Consider :
- For (e.g., ),
( is increasing)
- For (e.g., ),
( is decreasing)
Since changes from positive to negative at , there is a local maximum at .
Consider :
- For (e.g., ),
( is decreasing)
- For (e.g., ),
( is increasing)
Since changes from negative to positive at , there is a local minimum at .
Answer: Local maximum at and local minimum at .
---
2.2 Second Derivative Test
This test uses the sign of the second derivative at a critical point to classify it.
Let be a critical point of where .
- If , then is a local maximum.
- If , then is a local minimum.
- If , 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 , the function is concave down at , suggesting a peak (maximum). If , the function is concave up, suggesting a valley (minimum).
Worked Example:
Problem: Use the Second Derivative Test to find the local extrema of .
Solution:
Step 1: Find the first derivative and critical points (from previous example).
Critical points are and .
Step 2: Find the second derivative.
Step 3: Evaluate at each critical point.
For :
Since , there is a local maximum at .
For :
Since , there is a local minimum at .
Answer: Local maximum at and local minimum at .
---
---
```markdown
#
## 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.
If is continuous on a closed interval , then attains both a global maximum and a global minimum on .
Procedure to find global extrema on $[a,b]$:
Worked Example:
Problem: Find the global maximum and minimum of $f(x) = x^3 - 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.
A function is concave up on an interval if its graph lies above all of its tangent lines on that interval. This occurs when .
A function is concave down on an interval if its graph lies below all of its tangent lines on that interval. This occurs when .
A point is an inflection point (or flex point as per PYQ 2) if the concavity of the function changes at . This typically occurs where or is undefined, and changes sign around .
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)=x^4$, $f''(0)=0$, but $f''(x)=12x^2 \ge 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) = x^4 - 4x^3$.
Solution:
Step 1: Find the first and second derivatives.
$f'(x) = 4x^3 - 12x^2$
$f''(x) = 12x^2 - 24x$
Step 2: Find points where $f''(x) = 0$ or is undefined.
$12x^2 - 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) = 0^4 - 4(0)^3 = 0$
$f(2) = 2^4 - 4(2)^3 = 16 - 32 = -16$
Answer:
- Concave up on $(-\infty, 0)$ and $(2, \infty)$.
- 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:
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 \cdot 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 - 2w^2$
Step 7: Determine the Domain.
Since $w$ and $l$ must be positive:
$w > 0$
$l = 200 - 2w > 0 \implies 200 > 2w \implies 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 \text{ meters}$
The maximum area is
$A(50) = 100 \cdot 50 = 5000 \text{ square meters}$
Answer: The maximum area is $5000 \text{ m}^2$, achieved when the width is $50 \text{ m}$ and the length is $100 \text{ 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) \ge 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., $\min h(x) \ge 0$), then the inequality holds.
Worked Example:
Problem: Prove that $e^x \ge 1+x$ for all real $x$.
Solution:
Step 1: Define a new function.
$h(x) = e^x - (1+x) = e^x - x - 1$
We need to show that $h(x) \ge 0$ for all real $x$.
Step 2: Find the derivative of $h(x)$.
$h'(x) = e^x - 1$
Step 3: Find critical points.
Set $h'(x) = 0$:
$e^x - 1 = 0$
$e^x = 1$
$x = 0$
Step 4: Use the Second Derivative Test to classify the critical point.
$h''(x) = e^x$
$h''(0) = e^0 = 1$
Since $h''(0) = 1 > 0$, there is a local minimum at $x=0$.
Step 5: Evaluate $h(x)$ at the minimum.
$h(0) = e^0 - 0 - 1 = 1 - 0 - 1 = 0$
Since $x=0$ is the only critical point and it corresponds to a local minimum, and $h''(x) = e^x > 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) \ge 0$ for all real $x$.
This means $e^x - x - 1 \ge 0$, which implies $e^x \ge 1+x$.
Answer: The inequality is proven.
---
```
---
#
## 7. Optimization of Functions with Specific Forms (e.g., )
Functions like frequently appear in CMI for proving inequalities. Analyzing its behavior is key.
Worked Example:
Problem: Analyze the function for . Find its maximum value and use it to compare and for .
Solution:
Part 1: Analyze .
Step 1: Find the first derivative.
Step 2: Find critical points.
Set :
The critical point is .
Step 3: Use the First Derivative Test (or Second Derivative Test).
For (e.g., ), . ( is increasing)
For (e.g., ), . ( is decreasing)
Since changes from positive to negative at , there is a local maximum at .
Step 4: Evaluate the maximum value.
Part 2: Use this to compare and .
Consider the inequality .
This is equivalent to .
\intertext{Divide both sides by (assuming a,b & gt; 0):}
\frac{\ln a}{a} & < \frac{\ln b}{b}\end{aligned}
This means .
We know that has a global maximum at .
- For , is a decreasing function.
- For , is an increasing function.
If :
Since , both and are greater than .
In the interval , is a decreasing function.
If , then because is decreasing.
So, .
This implies , which further implies , and thus .
Answer: The function has a global maximum of at . For , since and is decreasing for , we have , which proves .
---
#
## 8. Optimization of Composite Functions
When a function is a composition, , we can often find its extrema by finding the extrema of the inner function or by substitution.
Worked Example:
Problem: Find the range of the function .
Solution:
Step 1: Use substitution.
Let .
Since , the variable is restricted to the interval .
The function becomes a quadratic in : .
Step 2: Find the extrema of on the interval .
Find the derivative of :
Set :
This critical point lies within the interval .
Step 3: Evaluate at the critical point and the endpoints.
- At :
- At endpoint :
- At endpoint :
Step 4: Determine the maximum and minimum values.
The values are , , and .
The global minimum is .
The global maximum is .
Answer: The range of the function is .
---
Problem-Solving Strategies
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.
When dealing with expressions like or , taking the natural logarithm can simplify the problem by converting exponents into products (e.g., ). This is particularly useful for comparing such expressions or finding extrema of functions involving them.
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 , if 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.
For polynomials, if has a local minimum that is positive, then has no real roots. Conversely, if 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).
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
- ❌ Assuming always means a local extremum.
- ❌ Forgetting to check endpoints for global extrema on a closed interval.
- ❌ Confusing local extrema with global extrema.
- ❌ Incorrectly applying the Second Derivative Test when .
- ❌ Not checking if the critical point is within the relevant domain.
- ❌ Mistaking an inflection point for a maximum or minimum.
---
Practice Questions
:::question type="MCQ" question="Let . Which of the following statements about its local extrema is true?" options=[" has a local maximum at and local minima at ."," has a local minimum at and local maxima at ."," has local minima at and ."," has a local maximum at and a local minimum at ."] answer=" has a local maximum at and local minima at ." hint="Find and to classify critical points." solution="Step 1: Find the first derivative.
Step 2: Find critical points by setting .
Critical points are .
Step 3: Find the second derivative.
Step 4: Apply the Second Derivative Test.
- For : . So, has a local maximum at .
- For : . So, has a local minimum at .
- For : . So, has a local minimum at .
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 (in thousands of rupees) from selling units of a product is given by . 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.
Step 2: Set to find the critical point.
Step 3: Verify it's a maximum using the Second Derivative Test.
Since is always negative, the critical point corresponds to a global maximum.
Step 4: Calculate the maximum profit.
The maximum daily profit is 12000 thousand rupees.
Answer: \boxed{12000}"
:::
:::question type="MSQ" question="Let for . Which of the following statements is/are true?" options=[" has a local minimum at ."," has a local maximum at ."," is concave up for all ."," has an inflection point at ."] answer="A,C" hint="Calculate and ." solution="Step 1: Find the first derivative.
Step 2: Find critical points by setting .
Step 3: Find the second derivative.
Step 4: Apply the Second Derivative Test at .
Since , has a local minimum at . So, option A is true, and option B is false.
Step 5: Analyze concavity.
Since and , we have for all . This means is concave up for all . So, option C is true.
Since 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 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 , Height " hint="Formulate surface area and volume equations, then minimize surface area in terms of one variable." solution="Step 1: Define variables and formulas.
Let be the radius of the base and be the height of the cylindrical can.
Volume .
Surface Area (includes top and bottom).
Step 2: Use the constraint to reduce the objective function to a single variable.
Given .
Express in terms of :
Substitute into the surface area formula:
The domain for is .
Step 3: Find the first derivative of .
Step 4: Set to find critical points.
Step 5: Use the Second Derivative Test to verify it's a minimum.
For , .
Since , this critical point corresponds to a local minimum. As it's the only critical point and as and , it's the global minimum.
Step 6: Calculate the corresponding height .
Alternatively, from , we have .
Since , we can write .
So, .
The dimensions that minimize the surface area are and .
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 , . (Hint: Consider the function )" answer="Proof that " hint="Analyze the monotonicity of by checking its derivatives." solution="Step 1: Define the function to analyze.
Let . We want to show for .
Step 2: Evaluate at the boundary .
Step 3: Find the first derivative of .
Step 4: Analyze the sign of for .
To do this, let's find the derivative of , i.e., .
Set :
Since we are interested in , consider .
Now, let's check the sign of for :
For , .
So, .
Therefore, for all .
Step 5: Conclude about .
Since for , is strictly increasing for .
Now, evaluate at :
Since is strictly increasing for and , it means for all .
Step 6: Conclude about .
Since for , is strictly increasing for .
We know . Since is strictly increasing for , it must be that for .
Thus, for .
Substituting back the definition of :
This proves the inequality.
Answer: \boxed{\text{Proof that } f(x) > 0}"
:::
---
Summary
- Critical Points: These are candidates for local extrema, found where or is undefined.
- Derivative Tests: Use the First Derivative Test (sign change of ) or Second Derivative Test ( sign) to classify critical points as local maxima or minima. Remember the Second Derivative Test is inconclusive if .
- Global Extrema on Closed Intervals: For continuous functions on , check critical points in AND the endpoints . The largest/smallest value is the global extremum.
- Concavity and Inflection Points: implies concave up; implies concave down. Inflection points occur where (or is undefined) and 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 and showing its minimum value on the required interval satisfies the inequality (e.g., ).
---
What's Next?
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
- Definition and Interpretation of the Derivative: Understand the derivative as the instantaneous rate of change of , the slope of the tangent line to the graph of at point , and its formal definition using limits: .
- 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 . It determines the concavity of (concave up if , concave down if ) and helps identify inflection points where concavity changes ( or undefined, and sign changes).
- Critical Points: Understand that critical points are where or 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 around critical points to classify local extrema:
- Second Derivative Test: Use at a critical point (where ) to classify local extrema:
- 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.
changes from positive to negative local maximum.
changes from negative to positive local minimum.
does not change sign no local extremum.
If local minimum.
If local maximum.
If , the test is inconclusive, and the First Derivative Test must be used.
---
Chapter Review Questions
:::question type="MCQ" question="Let . Which of the following statements is true about the local extrema of ?" options=[" has a local minimum at and a local maximum at ."," has a local maximum at and a local minimum at ."," has a local minimum at only."," has no local extrema."] answer="A" hint="Use the product rule and chain rule to find . Then, set to find critical points and apply the First Derivative Test." solution="To find the local extrema, we first need to find the first derivative .
Given .
Using the product rule where and :
So,
Next, we set to find the critical points:
Since is always positive, we must have .
The critical points are and .
Now, we use the First Derivative Test to classify these critical points by examining the sign of around them:
* For (e.g., ): . So is decreasing.
* For (e.g., ): . So is increasing.
* For (e.g., ): . So is decreasing.
Based on the sign changes:
* At , changes from negative to positive. Thus, has a local minimum at .
* At , changes from positive to negative. Thus, has a local maximum at .
Therefore, option A is true.
The final answer is "
:::
:::question type="NAT" question="A cylindrical can without a top is to be made to hold cm³ of liquid. Find the radius of the can (in cm) that minimizes the surface area. (Enter your answer as a plain number)." answer="10" hint="Define the volume and surface area equations. Use the volume constraint to express the surface area as a function of a single variable (radius or height), then differentiate and find the minimum." solution="Let be the radius of the cylindrical can and be its height.
The volume of the can is given by .
We are given cm³.
So,
This implies , from which we can express in terms of :
The surface area of the can without a top consists of the area of the base and the lateral surface area.
Area of the base .
Lateral surface area .
Total surface area .
Substitute the expression for into the surface area equation:
To minimize , we need to find its derivative with respect to and set it to zero.
Set :
Divide both sides by :
To confirm this is a minimum, we can use the Second Derivative Test:
Now, evaluate :
Since , the surface area is indeed minimized at cm.
The final answer is "
:::
:::question type="MCQ" question="Let be a differentiable function whose derivative is given by . Which of the following statements about is true?" options=[" has a local minimum at ."," has a local maximum at ."," has a local maximum at ."," is increasing on the interval ."] answer="B" hint="Identify the critical points where . Then, analyze the sign changes of around these points to determine the nature of the extrema and intervals of increase/decrease." solution="The critical points of are the values of for which or is undefined.
Given .
Setting :
This gives us critical points at and .
Now, we analyze the sign of in intervals around these critical points to apply the First Derivative Test:
Since , is increasing on .
Since , is decreasing on .
Since , is decreasing on .
Based on this analysis:
* At : changes from positive to negative. This indicates that has a local maximum at . (Option B is true).
* At : does not change sign (it is negative before and remains negative after ). Therefore, has neither a local maximum nor a local minimum at . It is a point where the function's decrease flattens out temporarily.
* Option A is false because is a local maximum, not a local minimum.
* Option C is false because is not a local maximum (or minimum).
* Option D is false because is decreasing on the interval .
The final answer is "
:::
---
What's Next?
You've mastered Differentiation and its Applications! This chapter is a cornerstone of calculus, providing essential tools for analyzing function behavior and solving optimization problems. Your understanding here is crucial for many advanced topics.
Key connections:
Building on Previous Learning: Differentiation directly builds upon your understanding of Functions, Limits, and Continuity. The concept of the derivative as a limit is fundamental, and continuity is a prerequisite for differentiability.
Foundation for Future Chapters: The principles and techniques learned here are foundational for:
Integration: The inverse process of differentiation, crucial for calculating areas, volumes, and accumulating quantities.
Differential Equations: Equations involving derivatives, used to model dynamic systems in physics, engineering, biology, and economics.
Multivariable Calculus: Extending differentiation to functions of multiple variables, essential for higher dimensions.
Series and Sequences: Understanding rates of change helps in analyzing convergence and divergence.
A strong grasp of differentiation is indispensable for success in the CMI entrance examination, as these concepts frequently appear both directly and indirectly in more complex problems.