πŸ‡¨πŸ‡© Calculus

Derivatives and curve sketching

⏱ 30 minOfficial programme: CD-H3-ANA-02

Your answers are checked, but your progress is not saved. To save it, sign in with your family code, or ask a parent to open this course from the dashboard.

🎯 In this lesson, you will learn to

  • Differentiate; use second derivative; full study of a function.
  • Solve optimisation problems.

The lesson

Introduction

In Matadi, a tinsmith cuts squares from the corners of a metal sheet to fold a box: which cut size gives the largest volume? To answer, we must know where a function increases, where it decreases and where it reaches its maximum. The derivative is the tool that gives this information; it also allows the full study of a function and an accurate sketch of its graph.

Explanation

Derivative and rules

The derivative fβ€²(a)=lim⁑hβ†’0f(a+h)βˆ’f(a)hf'(a)=\lim\limits_{h\to0}\dfrac{f(a+h)-f(a)}{h} is the slope of the tangent at the point with abscissa aa. The tangent has equation y=fβ€²(a)(xβˆ’a)+f(a)y=f'(a)(x-a)+f(a).

FunctionDerivative
xnx^nnxnβˆ’1nx^{n-1}
u+vu+v; kukuuβ€²+vβ€²u'+v'; kuβ€²ku'
uvuvuβ€²v+uvβ€²u'v+uv'
uv\dfrac uvuβ€²vβˆ’uvβ€²v2\dfrac{u'v-uv'}{v^2}
unu^nnuβ€²unβˆ’1nu'u^{n-1}
u\sqrt uuβ€²2u\dfrac{u'}{2\sqrt u}
sin⁑u\sin u; cos⁑u\cos uuβ€²cos⁑uu'\cos u; βˆ’uβ€²sin⁑u-u'\sin u

Explanation

Variation, extrema, concavity

On an interval II:

  • if fβ€²(x)>0f'(x)>0 on II (except at isolated points), ff is strictly increasing; if fβ€²(x)<0f'(x)<0, it is strictly decreasing;
  • if fβ€²f' is zero at aa and changes sign, ff has a local extremum at aa (maximum if fβ€²f' goes from ++ to βˆ’-, minimum if fβ€²f' goes from βˆ’- to ++).

The second derivative fβ€²β€²f'' gives the concavity: if fβ€²β€²>0f''>0, the graph is concave up; if fβ€²β€²<0f''<0, it is concave down. An inflection point is a point where fβ€²β€²f'' is zero and changes sign: there the graph crosses its tangent.

Explanation

Full study of a function

  1. Domain; parity and periodicity, if any.
  2. Limits at the ends of the domain and asymptotes.
  3. Derivative, sign of fβ€²f', variation table.
  4. Second derivative, concavity, inflection points.
  5. Special points (intersections with the axes), useful tangents, then the sketch.

Optimisation: express the quantity to optimise as a function of a single variable, state the interval of possible values, then find the maximum or minimum with the variation table.

Worked example

Problem: Study the variation of f(x)=x3βˆ’3x2βˆ’9x+5f(x)=x^3-3x^2-9x+5 and find its inflection point.

Step 1: fβ€²(x)=3x2βˆ’6xβˆ’9=3(x2βˆ’2xβˆ’3)=3(x+1)(xβˆ’3)f'(x)=3x^2-6x-9=3(x^2-2x-3)=3(x+1)(x-3).

Step 2: fβ€²>0f'>0 on (βˆ’βˆž,βˆ’1)(-\infty, -1) and on (3,+∞)(3, +\infty); fβ€²<0f'<0 on (βˆ’1,3)(-1, 3).

Step 3: Local maximum f(βˆ’1)=βˆ’1βˆ’3+9+5=10f(-1)=-1-3+9+5=10; local minimum f(3)=27βˆ’27βˆ’27+5=βˆ’22f(3)=27-27-27+5=-22.

Step 4: fβ€²β€²(x)=6xβˆ’6f''(x)=6x-6 is zero at x=1x=1 and changes sign; f(1)=1βˆ’3βˆ’9+5=βˆ’6f(1)=1-3-9+5=-6.

Answer: ff increases, then decreases on [βˆ’1,3][-1, 3], then increases; maximum 1010, minimum βˆ’22-22; inflection point I(1,βˆ’6)I(1, -6).

Worked example

Problem: Find the equation of the tangent to the graph of g(x)=2x+1xβˆ’1g(x)=\dfrac{2x+1}{x-1} at the point with abscissa 22.

Step 1: gβ€²(x)=2(xβˆ’1)βˆ’(2x+1)β‹…1(xβˆ’1)2=βˆ’3(xβˆ’1)2g'(x)=\dfrac{2(x-1)-(2x+1)\cdot1}{(x-1)^2}=\dfrac{-3}{(x-1)^2}.

Step 2: g(2)=51=5g(2)=\dfrac{5}{1}=5 and gβ€²(2)=βˆ’31=βˆ’3g'(2)=\dfrac{-3}{1}=-3.

Step 3: y=gβ€²(2)(xβˆ’2)+g(2)=βˆ’3(xβˆ’2)+5y=g'(2)(x-2)+g(2)=-3(x-2)+5.

Answer: y=βˆ’3x+11y=-3x+11.

Worked example

Problem: Bahati has 4040 m of wire mesh to fence a rectangular chicken run against a wall (the wall closes one side). Which dimensions give the largest area?

Step 1: Let xx be the length (in m) of each of the two sides perpendicular to the wall. The side parallel to the wall measures 40βˆ’2x40-2x, with 0<x<200<x<20.

Step 2: Area: A(x)=x(40βˆ’2x)=40xβˆ’2x2A(x)=x(40-2x)=40x-2x^2.

Step 3: Aβ€²(x)=40βˆ’4xA'(x)=40-4x is zero at x=10x=10; Aβ€²>0A'>0 before, Aβ€²<0A'<0 after: it is a maximum.

Answer: 1010 m by 2020 m, for a maximum area of 200200 mΒ².

Watch out

Watch out: fβ€²(a)=0f'(a)=0 is not enough for an extremum: for f(x)=x3f(x)=x^3, fβ€²(0)=0f'(0)=0 but fβ€²f' does not change sign, and ff is increasing on R\mathbb{R}. Always study the sign of fβ€²f' around aa. Likewise, fβ€²β€²(a)=0f''(a)=0 gives an inflection point only if fβ€²β€²f'' changes sign.

Key points

  • Tangent at aa: y=fβ€²(a)(xβˆ’a)+f(a)y=f'(a)(x-a)+f(a).
  • (uv)β€²=uβ€²v+uvβ€²(uv)'=u'v+uv'; (uv)β€²=uβ€²vβˆ’uvβ€²v2\left(\dfrac uv\right)'=\dfrac{u'v-uv'}{v^2}; (un)β€²=nuβ€²unβˆ’1(u^n)'=nu'u^{n-1}.
  • Sign of fβ€²f': variation; sign change of fβ€²f': extremum.
  • Sign of fβ€²β€²f'': concavity; sign change of fβ€²β€²f'': inflection point.
  • Optimisation: one variable, one interval, one variation table.

✍️ Exercises

Answer one exercise at a time. Your answer is checked right away, with an explanation.

Exercise 1 of 8

β˜… Easy

What is the derivative of f(x)=4x3βˆ’5x+2f(x)=4x^3-5x+2?

Your answer