Chapter 04: Differentiation
Course: Calculus Course Code: 510205 Semester: First Year – First Semester
Learning approach: We will build the idea from the slope of a straight line, connect it to limits, and then learn derivative rules with step-by-step examples. Read the notation guide alongside this chapter if symbols are still unfamiliar.
1. Learning Objectives
After studying this chapter, you should be able to:
- Explain the meaning of differentiation and a derivative.
- Find the slope of a straight line and the tangent to a curve.
- Calculate average and instantaneous rates of change.
- Use the first-principles definition of a derivative.
- Find left-hand and right-hand derivatives.
- Apply basic differentiation rules.
- Find second and higher-order derivatives.
- Understand Leibniz's theorem for the derivative of a product.
- Set up simple related-rate problems.
- Use linear approximation and differentials.
2. What Is Differentiation?
Standard English Definition
Differentiation is the process of finding the derivative of a function. The derivative represents the instantaneous rate of change of the dependent variable with respect to the independent variable.
If (y=f(x)), its derivative is written as:
Read (rac{dy}{dx}) as “dee-y by dee-x” or “the derivative of y with respect to x.”
3. Slope of a Straight Line
The slope measures how steep a straight line is.
For two points:
the slope is:
In words:
This is often called rise over run.
Example 1
Find the slope of the line joining (P(1,2)) and (Q(3,6)).
Step 1: Identify the coordinates.
Step 2: Apply the slope formula.
The slope is 2.
4. Average Rate of Change
Suppose a function is (y=f(x)). When (x) changes from (a) to (a+h), the output changes from (f(a)) to (f(a+h)).
The average rate of change is:
This is also the slope of the secant line joining the two points on the curve.
Example 2
Find the average rate of change of (f(x)=x^2) from (x=1) to (x=3).
5. Tangent Line and Instantaneous Rate of Change
Secant line versus tangent line
- Secant line: A straight line passing through two points of a curve.
- Tangent line: A line that gives the direction or slope of the curve at a particular point (where the derivative exists).
Imagine moving the second point of a secant line closer and closer to the first point. If the slopes approach a limit, that limiting slope is the tangent slope.
This is the derivative at (x=a).
Equation of a Tangent Line
If the curve is (y=f(x)), the tangent at (x=a) passes through ((a,f(a))) and has slope (f'(a)).
Example 3
Find the equation of the tangent to (y=x^2) at (x=2).
First, the derivative is (f'(x)=2x), so:
The point on the curve is:
Use the tangent-line formula:
6. Definition of Derivative from First Principles
Standard English Definition
The derivative of a function (f(x)) at (x=a) is the limit of the difference quotient, provided the limit exists:
The derivative function is:
Other equivalent notations include:
How to Solve by First Principles
- Write (f(x+h)).
- Calculate (f(x+h)-f(x)).
- Divide by (h).
- Simplify and cancel the common factor (h), if possible.
- Take the limit as (h\to0).
Example 4: Differentiate (f(x)=x^2) from First Principles
Step 1: Find (f(x+h)).
Step 2: Subtract (f(x)).
Step 3: Divide by (h).
Step 4: Take the limit.
Therefore, the derivative of (x^2) is (2x).
Example 5: Differentiate (f(x)=3x+5) from First Principles
7. Basic Rules of Differentiation
These rules make differentiation faster than using first principles every time.
Rule 1: Derivative of a Constant
If (f(x)=c), where (c) is a constant, then:
Example:
Why? A constant does not change when (x) changes.
Rule 2: Power Rule
If (f(x)=x^n), then:
In simple language: bring the power down in front, then reduce the power by one.
Examples:
Example 6: Apply the Power Rule
Differentiate:
Rule 3: Constant Multiple Rule
If (c) is a constant:
Example:
Rule 4: Sum Rule
Differentiate each term separately.
Rule 5: Difference Rule
Example 7: Polynomial Differentiation
Differentiate:
Differentiate each term:
Remember: The derivative of the constant (-9) is zero.
Rule 6: Product Rule
If (y=u\cdot v), then:
Read it as: first function × derivative of second + second function × derivative of first.
Example 8: Product Rule
Differentiate:
Let:
Then:
Apply the product rule:
Rule 7: Quotient Rule
If:
then:
Memory phrase: bottom × derivative of top − top × derivative of bottom, all over bottom squared.
Example 9: Quotient Rule
Differentiate:
Let (u=x^2+1) and (v=x). Then:
Rule 8: Chain Rule
The chain rule is used when one function is inside another function.
If:
then:
A useful memory phrase: Differentiate the outside function, keep the inside unchanged, then multiply by the derivative of the inside.
Example 10: Chain Rule
Differentiate:
Let the inside function be (u=3x+2). Then (y=u^4).
Therefore:
8. Derivatives of Common Functions
Algebraic Functions
| Function | Derivative |
|---|---|
| (c) | (0) |
| (x) | (1) |
| (x^n) | (nx^{n-1}) |
| (sqrt{x}=x^{1/2}) | (rac{1}{2\sqrt{x}}) |
| (rac1x=x^{-1}) | (-rac1{x^2}) |
Exponential and Logarithmic Functions
| Function | Derivative |
|---|---|
| (e^x) | (e^x) |
| (a^x) | (a^x\ln a), for (a>0) |
| (ln x) | (rac1x), for (x>0) |
| (log_a x) | (rac1{x\ln a}), for (a>0, a\ne1, x>0) |
Trigonometric Functions
Angles are measured in radians for these derivative formulas.
| Function | Derivative |
|---|---|
| (sin x) | (cos x) |
| (cos x) | (-\sin x) |
| ( an x) | (sec^2x) |
| (cot x) | (-\csc^2x) |
| (sec x) | (sec x\tan x) |
| (csc x) | (-\csc x\cot x) |
Example 11: Trigonometric Differentiation
Differentiate:
9. One-Sided Derivatives
A derivative can be approached from the left or from the right.
Left-Hand Derivative
Right-Hand Derivative
A two-sided derivative exists at (x=a) if both one-sided derivatives exist and are equal:
Example 12: A Function with No Derivative at a Point
Let:
At (x=0), the left-hand derivative is (-1), and the right-hand derivative is (1).
Since:
the derivative does not exist at (x=0).
The graph has a sharp corner at the origin.
Important: Differentiability at a point implies continuity there. But continuity does not always imply differentiability.
10. Successive Differentiation and Higher-Order Derivatives
Differentiating a function once gives the first derivative. Differentiating again gives the second derivative.
If (y=f(x)):
The process of repeatedly differentiating a function is called successive differentiation.
Example 13
Given:
find the first, second and third derivatives.
First derivative:
Second derivative:
Third derivative:
11. Leibniz's Theorem
Leibniz's theorem gives the formula for the (n)-th derivative of a product of two functions.
If:
then:
Here:
- (n) means the order of differentiation.
- (r) is an index in the sum.
- (inom nr) is the binomial coefficient.
For the second derivative:
For the third derivative:
Example 14: Second Derivative of a Product
Find the second derivative of:
Let (u=x^2) and (v=e^x).
Using Leibniz's formula:
12. Related Rates
General Method
- Identify the changing quantities.
- Write the equation connecting them.
- Differentiate both sides with respect to time (t).
- Substitute the known values and rates.
- Solve for the required rate.
Example 15: Expanding Circle
The radius (r) of a circle increases at (2) cm/s. Find the rate of increase of its area when (r=3) cm.
Area of a circle:
Differentiate both sides with respect to time (t):
Given:
Substitute:
13. Linear Approximation
A differentiable curve near a point can be approximated by its tangent line.
For (x) close to (a):
This is called the linear approximation or linearization of (f) at (x=a).
Example 16: Approximate (sqrt{4.1})
Let:
Then:
and
Use the linear approximation:
The actual value is approximately (2.02485), so the estimate is close.
14. Differentials
If (y=f(x)), the differential of (y) is defined by:
Here:
- (dx) is a chosen small change in (x).
- (dy) is the corresponding linear change predicted by the derivative.
For a small change (dx), the actual change in the function is:
For a differentiable function, (dy) is the linear approximation to (Delta y) when (dx) is small.
Example 17
Given:
find (dy).
Differentiate:
Multiply by (dx):
If (x=3) and (dx=0.1), then:
This estimates the change in (y) as approximately (0.6).
15. Important Formula Sheet
| Topic | Formula |
|---|---|
| Derivative by first principles | (f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}h) |
| Constant | (rac{d}{dx}(c)=0) |
| Power | (rac{d}{dx}(x^n)=nx^{n-1}) |
| Constant multiple | ((cf)'=cf') |
| Sum | ((f+g)'=f'+g') |
| Product | ((uv)'=uv'+vu') |
| Quotient | ((u/v)'=(vu'-uv')/v^2) |
| Chain rule | (rac{d}{dx}f(g(x))=f'(g(x))g'(x)) |
| Second derivative | (f''(x)=\frac{d}{dx}f'(x)) |
| Tangent line | (y-f(a)=f'(a)(x-a)) |
| Linear approximation | (f(x)\approx f(a)+f'(a)(x-a)) |
| Differential | (dy=f'(x)dx) |
16. Common Mistakes to Avoid
-
Forgetting to reduce the power by one. For (x^5), the derivative is (5x^4), not (5x^5).
-
Differentiating a constant incorrectly. The derivative of (9) is (0), not (9).
-
Using the product rule incorrectly. Remember ( (uv)'=uv'+vu').
-
Forgetting the square in the quotient-rule denominator. The denominator is (v^2).
-
Forgetting the derivative of the inside function in the chain rule.
-
Assuming continuity guarantees differentiability. A sharp corner, such as (f(x)=|x|) at zero, is continuous but not differentiable.
-
Mixing up (\Delta y) and (dy). (\Delta y) is the actual change; (dy) is the differential or linear estimate.
-
Ignoring units in related-rate problems. If area changes over time, the unit is square units per unit time.
17. Practice Questions
Try solving these before checking the answer key.
A. Short Questions
- Define differentiation.
- Define the derivative from first principles.
- What is the geometrical meaning of a derivative?
- State the power rule.
- State the product rule.
- State the quotient rule.
- State the chain rule.
- What is a second derivative?
- State Leibniz's theorem for the second derivative of a product.
- Define a differential.
B. Solve the Problems
Problem 1. Differentiate (y=5x^4-3x^2+7x-8).
Problem 2. Use first principles to find the derivative of (f(x)=x^2+1).
Problem 3. Differentiate (y=(x^2+1)(x^3-2)) using the product rule.
Problem 4. Differentiate:
Problem 5. Differentiate (y=(2x-1)^5) using the chain rule.
Problem 6. Find the equation of the tangent to (y=x^2+1) at (x=1).
Problem 7. Find the second derivative of (y=2x^4-3x^2+x).
Problem 8. Find the left-hand and right-hand derivatives of (f(x)=|x|) at (x=0). Does the derivative exist there?
Problem 9. The radius of a circle increases at (3) cm/s. Find the rate of increase of its area when the radius is (2) cm.
Problem 10. Use linear approximation at (x=9) to estimate (sqrt{9.2}).
18. Answer Key
Short Questions
- Differentiation is the process of finding the derivative of a function, which measures its instantaneous rate of change.
- (f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}h), provided the limit exists.
- The slope of the tangent line to the curve at a point.
- (rac{d}{dx}(x^n)=nx^{n-1}).
- ((uv)'=uv'+vu').
- ((u/v)'=(vu'-uv')/v^2), where (v\ne0).
- (rac{d}{dx}f(g(x))=f'(g(x))g'(x)).
- The derivative of the first derivative; written (f''(x)).
- ((uv)''=uv''+2u'v'+u''v).
- If (y=f(x)), then (dy=f'(x)dx).
Problem Solutions
Problem 1
Problem 2
Problem 3
Let (u=x^2+1), (v=x^3-2).
Problem 4
Let (u=x^2+3), (v=x+1).
Problem 5
Problem 6
At (x=1):
Tangent equation:
Problem 7
Problem 8
For (x<0), (f(x)=-x), so the left-hand derivative is (-1).
For (x>0), (f(x)=x), so the right-hand derivative is (1).
Since (-1\ne1), the derivative does not exist at (x=0).
Problem 9
Differentiate with respect to time:
Substitute (r=2) and (rac{dr}{dt}=3):
Problem 10
Let (f(x)=\sqrt{x}), and choose (a=9).
19. Chapter Summary
- Differentiation finds the instantaneous rate of change of a function.
- The derivative is the limiting slope of a secant line and gives the tangent slope.
- First principles defines the derivative using a limit.
- Power, sum, difference, constant multiple, product, quotient and chain rules make differentiation efficient.
- Left-hand and right-hand derivatives must agree for a two-sided derivative to exist.
- Successive differentiation gives higher-order derivatives.
- Leibniz's theorem finds higher derivatives of products.
- Related rates connect rates of changing quantities.
- Linear approximation and differentials estimate small changes.
Recommended study order: First principles → power rule → polynomial sums → product and quotient rules → chain rule → tangent lines → higher derivatives → related rates and approximation.
Prepared as a beginner-friendly learning resource for NU CSE Calculus (510205), following the listed syllabus topics based on the 2017–2018 syllabus. Check for later syllabus revisions and your teacher's current examination scope.
20. NU Previous Questions and Board Question Archive
Questions identifiable in the NU CSE Calculus question bank
Q1. State and explain Leibniz's theorem.
Years listed: 2010, 2011, 2013, 2014, 2015, 2016 and 2018.
This is a recurring higher-derivative topic in the student-compiled NU CSE question bank. The question is listed here in concise form; use the original paper for the exact wording and marks.
The 2009–2019 Calculus compilation also includes a 2019 group of differentiation problems (including explicit, implicit and parametric differentiation), but the mathematical expressions are corrupted in the accessible text extraction. They are not reproduced here to avoid changing the question accidentally.
Board-question archive
- NU CSE Board Questions (2006–2018)
- NU CSE Board Questions (2019)
- NU CSE Calculus question collection (2009–2019)
Verification note: The year list is from a student-compiled question bank. The original board-paper scans should be used to verify exact wording and marks.
Additional practice (not verified PYQs)
- State and prove Leibniz's theorem.
- Find the second and third derivatives of a given polynomial.
- Differentiate a function defined implicitly.
- Find \(dy/dx\) for a parametric curve.
- Solve a basic related-rates problem.
These are practice questions, not confirmed past-paper questions.