
Session 05-05 - Graphical Calculus Mastery
Section 05: Differential Calculus
Entry Quiz
Quick Review from Session 05-04
Test your understanding of chain rule and implicit differentiation
Differentiate \(f(x) = (2x^3 - 5)^4\) using the chain rule.
Find \(\frac{dy}{dx}\) if \(x^2 + xy = 10\).
If \(f'(3) = 0\), what does this tell about the graph of \(f(x)\) at \(x = 3\)?
\(f'(x) = 4(2x^3 - 5)^3 \cdot 6x^2 = 24x^2(2x^3 - 5)^3\)
\(2x + \left[x\frac{dy}{dx} + y\right] = 0\), so \(\frac{dy}{dx} = \frac{-2x - y}{x}\)
The tangent line to \(f(x)\) at \(x = 3\) is horizontal. This could be a local maximum, local minimum, or neither.
Homework Discussion
Your questions from Session 05-04
What questions do you have regarding the previous session?
Learning Objectives
What You’ll Master Today
- Sketch \(f'(x)\) from the graph of \(f(x)\) by analyzing slopes
- Determine properties of \(f(x)\) from the graph of \(f'(x)\)
- Understand concavity through second derivatives \(f''(x)\)
- Identify critical points and their classification
- Find inflection points where concavity changes
- Master visual analysis - a heavily tested exam skill!
Being able to translate between graphs of \(f\), \(f'\), and \(f''\) is one of the most important visual skills in calculus and frequently tested!
Function to Derivative
Reading the Derivative Graph
The graph of \(f'(x)\) shows the slope of \(f(x)\) at each point.
What to look for in \(f(x)\):
- Where \(f\) is increasing → \(f'(x) > 0\) (derivative is positive)
- Where \(f\) is decreasing → \(f'(x) < 0\) (derivative is negative)
- Where \(f\) has a horizontal tangent → \(f'(x) = 0\) (crosses x-axis)
- Where \(f\) is steep → \(|f'(x)|\) is large
- Where \(f\) is flat → \(|f'(x)|\) is small
This shouldn’t be too complicated, right?
Sketching \(f'\) from \(f\)
A parabola and its derivative: \(f(x) = x^2\)
\(f\) has minimum at \(x = 0\) → \(f'\) crosses zero
Steps: Sketching the Derivative
Identify critical points: Where does \(f\) have horizontal tangents? Mark these as zeros of \(f'\)
Determine sign: Where is \(f\) increasing/decreasing? Make \(f'\) positive/negative accordingly
Consider steepness:
- Where is \(f\) very steep? Make \(|f'|\) large.
- Where is \(f\) nearly flat? Make \(|f'|\) small.
Check concavity: Is \(f'\) increasing or decreasing? This tells you about the concavity of \(f\)
Complex Example
A cubic function and its derivative.

\(f\) increasing, then decreasing, then increasing → \(f'\) crosses zero twice
Critical Points
A point \(x = c\) where either:
- \(f'(c) = 0\) (horizontal tangent), or
- \(f'(c)\) does not exist (corner, cusp, vertical tangent)
- Local maximum: \(f'\) changes from positive to negative
- Local minimum: \(f'\) changes from negative to positive
- Saddle point (stationary point without extremum): \(f'\) doesn’t change sign (e.g., \(f(x) = x^3\) at \(x = 0\))
Derivative to Function
Reading Information from \(f'(x)\)
Given the graph of \(f'(x)\), we can determine:
Where \(f\) is increasing/decreasing:
- \(f'(x) > 0\) → \(f\) is increasing
- \(f'(x) < 0\) → \(f\) is decreasing
Where \(f\) has local extrema: \(f'\) crosses zero
- Sign change determines type!
Where \(f\) is steepest: Where \(|f'(x)|\) is largest
Relative heights: Cannot determine absolute \(y\)-values!
- Can determine relative changes!
Example: Reading from \(f'(x)\)

- \(f' > 0\) on \((-2; 2)\) → \(f\) increasing, \(f' < 0\) for \(|x| > 2\) → \(f\) decreasing
- \(f'\) changes at \(x = -2, 2\) → \(f\) has local extrema
Quick Practice
Individual Exercise I
Sketch the derivative of this function!

Individual Exercise II
The Questions:
Where is \(f'(x) > 0\), \(f'(x) < 0\), and \(f'(x) = 0\)?
Sketch the graph of \(f'(x)\).
At what points does \(f'(x)\) not exist?
Sign analysis:
- \(f'(x) > 0\) for \(x < -1\) (slope = 1)
- \(f'(x) = 0\) for \(-1 < x < 1\) (horizontal line)
- \(f'(x) < 0\) for \(x > 1\) (slope = -1)
Graph of \(f'(x)\): This is a step function:
- \(f'(x) = 1\) for \(x < -1\)
- \(f'(x) = 0\) for \(-1 < x < 1\)
- \(f'(x) = -1\) for \(x > 1\)
\(f'(x)\) does not exist at \(x = -1\) and \(x = 1\) (corners in \(f\)).
Concavity
Understanding Concavity
Describes the curving behavior of a function.
- Concave up (⌣): Curves upward like a smile (“holds water”)
- \(f''(x) > 0\)
- The slope \(f'(x)\) is increasing
- Concave down (⌢): Curves downward like a frown (“spills water”)
- \(f''(x) < 0\)
- The slope \(f'(x)\) is decreasing
Visualizing Concavity
Concave up vs. concave down

\(f''(x)\) tells us how \(f'(x)\) is changing, which determines the shape of \(f(x)\).
Inflection Points
A point where the curvature (concavity) changes sign!
- \(f''(x) = 0\) or \(f''(x)\) does not exist
- Concavity changes (from ⌣ to ⌢ or vice versa)
Example: \(f(x) = x^3\)
- \(f'(x) = 3x^2\)
- \(f''(x) = 6x\)
- \(f''(0) = 0\) and concavity changes at \(x = 0\)
- So \((0, 0)\) is an inflection point
Relationships Between \(f\), \(f'\), and \(f''\)

- Where \(f'' < 0\): \(f\) concave down, \(f'\) decreasing, where \(f'' > 0\): \(f\) concave up, \(f'\) increasing
- Where \(f'' = 0\): Inflection point in \(f\), extremum in \(f'\)
Complete Analysis
The Complete Picture
Given a function \(f(x)\), complete analysis involves:
- Critical points: Solve \(f'(x) = 0\)
- First derivative test: Check sign changes of \(f'\) to classify extrema
- Inflection points: Solve \(f''(x) = 0\) and check for concavity change
- Intervals: Determine where \(f\) is increasing/decreasing and where concave up/down
- Key points: Evaluate \(f\) at critical points and inflection points
Example: Complete Analysis
Analyze \(f(x) = x^4 - 4x^3\)
First derivative:
\[f'(x) = 4x^3 - 12x^2 = 4x^2(x - 3)\]
Critical points: \(x = 0, 3\)
Second derivative:
\[f''(x) = 12x^2 - 24x = 12x(x - 2)\]
Inflection points: \(x = 0, 2\)
Analysis Visualization

Break
Guided Practice
Practice Set A: Derivative Sketches
For each function graphed below, sketch \(f'(x)\) and identify:
- Where \(f'(x) > 0, < 0, = 0\) and any points where \(f'\) does not exist

Problem 1: horizontal tangents at the peak and at the valley
- \(f' > 0\): \((0; \pi/2)\) and \((3\pi/2; 2\pi)\)
- \(f' < 0\): \((\pi/2; 3\pi/2)\)
- \(f' = 0\): \(x = \pi/2, 3\pi/2\)
Problem 2: \(f(x) = |x|\)
- \(f'(x) = -1\) for \(x < 0\)
- \(f'(x) = 1\) for \(x > 0\)
- \(f'(0)\) does not exist (corner)
Problem 3: \(f'(x) = 2x^3 - 4x = 2x(x^2 - 2)\)
- Zeros at \(x = -\sqrt{2}, 0, \sqrt{2}\)
- Changes sign at each zero
Problem 4:
- \(f'(x) = 0\) for \(x < -1\) and \(x > 1\)
- \(f'(x) = 2x\) for \(-1 < x < 1\)
- \(f'\) does not exist at \(x = \pm 1\)
Practice B: From Derivative I
Continue working for 10 minutes
Given the graph of \(f'(x)\), answer:
- Where is \(f(x)\) increasing/decreasing?
- Where does \(f(x)\) have local extrema? Classify them.
- Sketch a possible graph of \(f(x)\).
Practice B: From Derivative II

Increasing/Decreasing:
- \(f\) decreasing on \((-2; 2)\) where \(f' < 0\)
- \(f\) increasing on \((-\infty; -2)\) and \((2; \infty)\) where \(f' > 0\)
Local extrema:
- \(x = -2\): Local maximum (\(f'\) changes + to -)
- \(x = 2\): Local minimum (\(f'\) changes - to +)
Possible sketch of \(f(x)\):
- Start low on the left (increasing)
- Peak at \(x = -2\)
- Valley at \(x = 2\)
- Rise again on right
- One possible function: \(f(x) = \frac{x^3}{3} - 4x\) (check: \(f'(x) = x^2 - 4\))
Quick Practice: Derivative Sketch
Work individually for 5 minutes
For each function described, sketch both \(f(x)\) and \(f'(x)\):
\(f(x) = x^3 - 3x\) (cubic with local max and min)
\(f(x) = |x - 2|\) (V-shape shifted right)
\(f(x)\) is constant for \(x < 0\), then increases linearly for \(x \geq 0\)
\(f(x)\) has \(f'(x) > 0\) everywhere but \(f'(x) \to 0\) as \(x \to \infty\)
\(f(x) = x^3 - 3x\): \(f'(x) = 3x^2 - 3 = 3(x-1)(x+1)\)
- Local max at \(x = -1\), local min at \(x = 1\)
- \(f'\) is a parabola opening up, zeros at \(x = \pm 1\)
\(f(x) = |x - 2|\):
- \(f'(x) = -1\) for \(x < 2\)
- \(f'(x) = +1\) for \(x > 2\)
- \(f'(2)\) does not exist (corner)
Piecewise linear:
- \(f'(x) = 0\) for \(x < 0\)
- \(f'(x) = m > 0\) for \(x > 0\) (constant positive slope)
- Jump discontinuity in \(f'\) at \(x = 0\)
Monotonic with decreasing slope:
- Example: \(f(x) = \sqrt{x}\) or \(f(x) = \ln(1+x)\)
- \(f' > 0\) always, but \(f' \to 0\) as \(x \to \infty\)
Business Applications
Profit Function Analysis
Business Context: A company’s monthly profit (in thousands EUR) is modeled by: \[P(t) = -t^3 + 12t^2 - 36t + 50\] where \(t\) is months since product launch.
Questions:
- When is profit increasing/decreasing?
- When does profit reach local extrema?
- When is the rate of profit change accelerating/decelerating?
Profit Analysis Solution
First derivative (profit rate of change): \[P'(t) = -3t^2 + 24t - 36 = -3(t^2 - 8t + 12) = -3(t - 2)(t - 6)\]
Critical points: \(t = 2, 6\) months
Second derivative (acceleration of profit change): \[P''(t) = -6t + 24 = -6(t - 4)\]
Inflection point: \(t = 4\) months
Profit Visualization

Question: How would you describe the behaviour?
- Months 0-2: Profit decreasing rapidly (losses getting worse)
- Month 2: Turnaround point - profit starts improving
- Months 2-6: Profit increasing (recovery period)
- Month 4: Fastest profit growth rate
- Month 6: Peak profit, then decline begins
Profit Interpretation
- \(P'(t) > 0\) → Profit is growing (good news!)
- \(P'(t) < 0\) → Profit is shrinking (warning sign)
- \(P'(t) = 0\) → Profit has reached a turning point (decision time)
The sign of the derivative tells you the direction of change!
The inflection point (\(P''(t) = 0\) at month 4) marks where:
- Before: Profit is accelerating (growth speeding up)
- After: Profit is decelerating (growth slowing down)
Business insight: Month 4 is when the company should start planning for the eventual peak. Growth is still positive but momentum is fading!
Team Problem-Solving
Challenge: Full Function Analysis
Scenario: A manufacturing company models their weekly profit (in thousands EUR) as a function of production quantity:
\[\Pi(q) = -0.02q^3 + 1.5q^2 - 20q + 50\]
where \(q\) is quantity produced (in hundreds of units), with \(q \in [0; 50]\).
Tasks
Work in groups of 3-4
Find \(\Pi'(q)\) and determine where profit is increasing vs. decreasing. Interpret economically.
Find \(\Pi''(q)\) and locate any inflection points - what do they say about profit growth?
Sketch the graphs of \(\Pi(q)\), \(\Pi'(q)\), and \(\Pi''(q)\) on \(q \in [0; 50]\).
Find all critical points and classify them as local maxima or minima using the sign change of \(\Pi'(q)\).
Business question: Current production is 1,500 units (\(q = 15\)) - raise or lower it, and by how much? Justify with calculus.
First derivative: \[\Pi'(q) = -0.06q^2 + 3q - 20\]
Setting \(\Pi'(q) = 0\): Using the quadratic formula with \(a = -0.06\), \(b = 3\), \(c = -20\): \[q = \frac{-3 \pm \sqrt{9 - 4.8}}{-0.12} = \frac{-3 \pm \sqrt{4.2}}{-0.12}\] \[q \approx 7.92 \text{ or } q \approx 42.08\]
Sign analysis:
- \(\Pi'(q) < 0\) for \(q < 7.92\) (profit decreasing)
- \(\Pi'(q) > 0\) for \(7.92 < q < 42.08\) (profit increasing)
- \(\Pi'(q) < 0\) for \(q > 42.08\) (profit decreasing)
Economic interpretation: At low production levels, costs dominate and profit falls. In the middle range, economies of scale kick in. At very high production, diminishing returns and capacity constraints reduce profit.
Second derivative: \[\Pi''(q) = -0.12q + 3\]
Setting \(\Pi''(q) = 0\): \(q = 25\)
Inflection point at \(q = 25\) (2,500 units):
- For \(q < 25\): \(\Pi''(q) > 0\) (concave up, profit growth accelerating)
- For \(q > 25\): \(\Pi''(q) < 0\) (concave down, profit growth decelerating)
Economic insight: At \(q = 25\), marginal profit growth is at its maximum. Beyond this point, while profit may still be increasing, it’s increasing at a slower rate.
Graphs:

Critical point classification (sign of \(\Pi'\) from a)):
At \(q \approx 7.92\): \(\Pi'\) changes its sign from \(-\) to \(+\), so this is a local minimum. \(\Pi(7.92) \approx -24\) thousand EUR (a loss!)
At \(q \approx 42.08\): \(\Pi'\) changes its sign from \(+\) to \(-\), so this is a local maximum. \(\Pi(42.08) \approx 374\) thousand EUR (local maximum profit)
Preview of Session 05-06: the second derivative test confirms this, \(\Pi''(7.92) \approx 2.05 > 0\) and \(\Pi''(42.08) \approx -2.05 < 0\).
Business recommendation for \(q = 15\):
Current situation at \(q = 15\):
- \(\Pi(15) = -0.02(3375) + 1.5(225) - 20(15) + 50 = -67.5 + 337.5 - 300 + 50 = 20\) thousand EUR
- \(\Pi'(15) = -0.06(225) + 3(15) - 20 = -13.5 + 45 - 20 = 11.5 > 0\)
Since \(\Pi'(15) > 0\), profit is increasing at \(q = 15\). The company should increase production.
Optimal target: Increase to approximately \(q = 42\) (4,200 units): by a), \(\Pi\) increases up to \(q \approx 42.08\) and decreases after it, so no output above 15 brings more profit.
Gain from optimization:
- Current profit: 20,000 EUR
- Optimal profit: 374,000 EUR
- Potential improvement: 354,000 EUR per week!
Caveat: This assumes the model is accurate for the entire range and that the company has capacity to produce 4,200 units.
Coffee Break
FSP Workshop
Problem 1: Guests in a Thermal Spa
A thermal spa (a public bath with warm water from a hot spring) counts every guest at its entrance and at its exit. \(G(t)\) is the number of guests in the spa \(t\) hours after 10:00, for \(t \in [0; 10]\), i.e. until 20:00. The figure shows the net flow \(G'(t)\) in guests per hour: guests coming in minus guests leaving.
- Use only the figure and read the times to the nearest half hour. Give the periods (as clock times) in which the number of guests grows and in which it falls. Determine the nature of the stationary points of \(G\) (the times with \(G'(t) = 0\)) and explain what they mean for the spa. [4 pts.]
Spa: The Net Flow

- The figure shows the zeros of \(G'\) at \(t = 1\), \(t = 5\) and \(t = 9.5\), i.e. at 11:00, 15:00 and 19:30. Between the zeros, the sign of \(G'\) gives the direction of \(G\):
| \(t\) | \([0; 1)\) | \((1; 5)\) | \((5; 9.5)\) | \((9.5; 10]\) |
|---|---|---|---|---|
| clock time | 10:00 to 11:00 | 11:00 to 15:00 | 15:00 to 19:30 | 19:30 to 20:00 |
| \(G'(t)\) | \(+\) | \(-\) | \(+\) | \(-\) |
| \(G\) | grows | falls | grows | falls |
- \(t = 1\) (11:00): \(G'\) changes its sign from \(+\) to \(-\), so \(G\) has a local maximum. The morning crowd is largest here.
- \(t = 5\) (15:00): \(G'\) changes from \(-\) to \(+\), local minimum. The spa is quieter than shortly before and shortly after.
- \(t = 9.5\) (19:30): \(G'\) changes from \(+\) to \(-\), local maximum. The evening crowd (guests after work) is largest here.
These are local statements only. The figure shows the flow, not the number of guests itself. So it does not tell how many guests are in the spa at these times or which of the two maxima is higher.
Grading: 1 Pt. zeros at 11:00, 15:00 and 19:30, 1 Pt. periods of growth and fall, 1 Pt. nature of all three points by the sign change of \(G'\), 1 Pt. meaning for the spa.
Spa: True or False?
- Argue whether the following statements are true or false. [4 pts.]
(1) At 10:00, the most guests are in the spa, because the graph of \(G'\) is highest there.
(2) Between 10:00 and 11:00, the number of guests grows more and more slowly.
(3) Between 15:00 and 19:30, the graph of \(G\) is concave up.
(4) At 15:00, exactly as many guests come into the spa per hour as leave it.
(1) False. \(G'(0) = 190 > 0\): right after 10:00, more guests come in than leave, and by a) the number of guests grows until 11:00. So at 10:30 there are more guests in the spa than at 10:00. The highest value of \(G'\) means the fastest growth, not the most guests.
(2) True. Between 10:00 and 11:00, \(G'\) is positive, so \(G\) grows. At the same time, \(G'\) falls from 190 to 0, so the growth per hour gets smaller and smaller: \(G\) is concave down there.
(3) False. \(G\) is concave up only where \(G'\) rises. The figure shows that \(G'\) rises from 15:00 to about 17:30 and falls after that until 19:30. Between about 17:30 and 19:30, \(G\) is concave down: the number of guests still grows, but more and more slowly.
(4) True. \(G'(5) = 0\): the net flow is zero, so the guests coming in per hour and the guests leaving per hour are equal. This does not mean that the spa is empty.
Grading: 1 Pt. per statement with a correct reason.
Spa: The Model
The spa models the net flow in guests per hour, with \(t\) in hours after 10:00, by
\[ G'(t) = -4(t - 1)(t^2 - 14.5t + 47.5), \qquad t \in [0; 10] \]
- Determine the zeros of \(G'\) computationally and verify your readings from a). [4 pts.]
- Zero-product rule: \(G'(t) = 0\) if \(t - 1 = 0\) or \(t^2 - 14.5t + 47.5 = 0\). The first factor gives \(t = 1\).
Quadratic formula with \(a = 1\), \(b = -14.5\), \(c = 47.5\):
\[ t = \frac{14.5 \pm \sqrt{14.5^2 - 4 \cdot 47.5}}{2} = \frac{14.5 \pm \sqrt{210.25 - 190}}{2} = \frac{14.5 \pm \sqrt{20.25}}{2} = \frac{14.5 \pm 4.5}{2} \]
So \(t = 5\) or \(t = 9.5\). Check: \(5^2 - 14.5 \cdot 5 + 47.5 = 25 - 72.5 + 47.5 = 0\) and \(9.5^2 - 14.5 \cdot 9.5 + 47.5 = 90.25 - 137.75 + 47.5 = 0\).
All three zeros lie in \([0; 10]\): \(t = 1\) is 11:00, \(t = 5\) is 15:00 and \(t = 9.5\) is 19:30. These are exactly the times read off in a), so the periods and the nature of the stationary points from a) hold.
Grading: 1 Pt. \(t = 1\) with the zero-product rule, 1 Pt. quadratic formula with the discriminant 20.25, 1 Pt. \(t = 5\) and \(t = 9.5\), 1 Pt. clock times and agreement with a).
Spa: The Busiest Times
The spa adds staff at the exit around the time when the number of guests falls fastest in the early afternoon. It opens a second ticket counter around the time when the number grows fastest in the late afternoon.
- Determine computationally the times (to the nearest minute) at which the graph of \(G\) has its inflection points. Explain what they mean for the staff plan. [4 pts.]
(for verification: \(G'(t) = -4t^3 + 62t^2 - 248t + 190\))
- Power rule on the expanded form:
\[ G''(t) = -12t^2 + 124t - 248 \]
\(G''(t) = 0\): divide by \(-4\), then use the quadratic formula:
\[ 3t^2 - 31t + 62 = 0 \iff t = \frac{31 \pm \sqrt{31^2 - 4 \cdot 3 \cdot 62}}{6} = \frac{31 \pm \sqrt{217}}{6} \]
\[ t_1 \approx 2.7115, \qquad t_2 \approx 7.6218 \]
Sign change: \(G''\) is a downward-opening parabola, negative outside its zeros and positive between them. Test values: \(G''(2) = -48 < 0\), \(G''(5) = 72 > 0\), \(G''(8) = -24 < 0\). The sign changes at both zeros, so the graph of \(G\) has two inflection points: from concave down to concave up at \(t_1\), from concave up to concave down at \(t_2\).
Clock times: \(0.7115 \cdot 60 \approx 43\) minutes, so \(t_1\) is 12:43. \(0.6218 \cdot 60 \approx 37\) minutes, so \(t_2\) is 17:37.
At an inflection point of \(G\), the slope \(G'\) has an extremum:
- 12:43: \(G'\) falls before and rises after, \(G'(2.7115) \approx -106\). In the early afternoon, the number of guests falls fastest here, by about 106 guests per hour. Extra staff at the exit should be there around 12:45.
- 17:37: \(G'\) rises before and falls after, \(G'(7.6218) \approx 130\). In the late afternoon, the number of guests grows fastest here, by about 130 guests per hour. The second ticket counter should be open around 17:30.
Grading: 1 Pt. \(G''(t)\), 1 Pt. \(t_1 \approx 2.71\) and \(t_2 \approx 7.62\) with the quadratic formula, 1 Pt. sign change of \(G''\) at both zeros, 1 Pt. 12:43 and 17:37 with the meaning for the staff plan.
Wrap-Up & Takeaways
The Derivative Overview
| If you know… | You can determine… |
|---|---|
| \(f' > 0\) | \(f\) is increasing |
| \(f' < 0\) | \(f\) is decreasing |
| \(f' = 0\) | Possible local extremum |
| \(f'' > 0\) | \(f\) concave up, \(f'\) increasing |
| \(f'' < 0\) | \(f\) concave down, \(f'\) decreasing |
| \(f'' = 0\) | Possible inflection point |
These are heavily Tested Skills in FSP!!!
Final Assessment
Quick Check I
Consider this function:

Quick Check II
Work individually, then we compare
Where is \(f'(x) > 0\)?
At \(x = 1\), is this a local max, local min, or neither?
Where is \(f(x)\) concave up?
True or False: If \(f'(c) = 0\), then \(f\) must have a local extremum at \(x = c\).
\(f'(x) > 0\) for all \(x \neq 1\) (function is always increasing; \(f'(1) = 0\))
Neither - though \(f'(1) = 0\), the function doesn’t change from increasing to decreasing. This is an inflection point, not an extremum.
\(f\) is concave up for \(x > 1\) (where the curve bends upward)
False! Counter-example: \(f(x) = x^3\) at \(x = 0\) has \(f'(0) = 0\) but it’s neither a max nor min (it’s an inflection point). You need \(f'\) to change sign for a local extremum.
Next Session Preview
Session 05-06
Optimization & Curve Sketching
- First and second derivative tests for extrema classification
- Global maxima/minima on closed intervals
- Complete curve sketching algorithm (6 steps)
- Business optimization: profit maximization, cost minimization
- Interpreting results in real-world context
Complete Tasks 05-05!
Appendix
