A Brief Introduction to Calculus: Part 1.2 - Gradient Functions

  • Math
  • Calculus
  • Further Math
Published on Mon Aug 01 2022. Views
An introduction to basic concepts in Calculus; mostly based on the IGCSE Further Math textbook.

Introduction

This is the second part of first series — Derivatives, focused on the concept of gradient functions.

Note: the content introduced in this series is mostly based on the IGCSE Further Math textbook.

Quick Access

Gradient Functions

Now that you have some basic knowledge of the different rules and formulae used to differentiate functions. Let's talk a bit more about the graphical interpretations.

The first derivative of a function is always the gradient function of the curve/line.

For example, for a linear function y=mx+by = mx + b, its derivative is given by dydx=m\frac{dy}{dx} = m, which means that for any linear function, its derivative is always its gradient.

Now, when it comes to a non-linear function, for any arbitrary point PP on the curve, it is said to have its own gradient, and its gradient is that of the tangent to the curve at P.

The green line is the tangent to the blue curve at P. Try to drag the point PP, and you'll see that the gradient of the tangent varies as PP moves along the curve.

Thus the gradient of a curve changes, unlike a linear equation where the gradient is constant no matter what xx is.

Take point P(x,f(x))P(x, f(x)), how do we find the gradient at PP then?

As discussed above, we can formulate a gradient function for any line/curve by taking the derivative of the original function.

In this example, the curve shown is a quadratic function, so let f(x)=ax2+bx+cf(x) = ax^2 + bx + c. Taking its derivative would give f(x)=2ax+bf'(x) = 2ax + b, and the tangent's gradient at P(x,f(x))P(x, f(x)) is simply equal to f(x)f'(x).

Calculating the Equation of The Tangent

Now that we have the gradient of the tangent, you might wonder, can we form an equation for the straight line?

We can use the formula for the equation of a straight line yy1=m(xx1)y - y_1 = m(x - x_1), and in this case, x1x_1 and y1y_1 would be the coordinates of the point PP.

The equation of the tangent to a curve at P(a,f(a))P(a, f(a)) is:

y=f(a)(xa)+f(a)y = f'(a)(x - a) + f(a)

The Normal

The normal is a straight line that crosses the tangent at 90 degrees (perpendicular) through the point where the tangent meets the curve.

Therefore, the normal's gradient is the negative reciprocal to that of the tangent.

Hence we can conclude that the equation of the normal can be calculated as follows:

y=1f(a)(xa)+f(a)y = -\frac{1}{f'(a)}(x - a) + f(a)

Example

The equation of a curve is given by f(x)=x33x2+2x1f(x) = x^3 - 3x^2 + 2x - 1, where y=f(x)y = f(x), find the equations of the tangent and normal at the point (3, 5).

  1. Find the gradient function by taking the function's derivative and calculating f(3)f'(3)
f(x)=3x26x+2f(3)=33263+2=2718+2=11\begin{align*} f'(x) &= 3x^2 - 6x + 2 \\ f'(3) &= 3\cdot 3^2 - 6 \cdot 3 + 2 \\ &= 27 - 18 + 2 \\ &= 11 \end{align*}
  1. Find the equation of the tangent
y=f(3)(x3)+f(3)=11(x3)+[33332+231]=11x33+5y=11x28\begin{align*} y &= f'(3)(x - 3) + f(3) \\ &= 11(x - 3) + [3^3 - 3\cdot 3^2 + 2 \cdot 3 - 1] \\ &= 11x - 33 + 5 \\ y &= 11x - 28 \end{align*}
  1. Find the equation of the normal
y=1f(3)(x3)+f(3)=111(x3)+5=x11+311+5y=x11+5311\begin{align*} y &= -\frac{1}{f'(3)}(x - 3) + f(3) \\ &= -\frac{1}{11}(x - 3) + 5 \\ &= -\frac{x}{11} + \frac{3}{11} + 5 \\ y &= -\frac{x}{11} + 5\frac{3}{11} \\ \end{align*}

Stationary Points

Stationary points are points on a curve such that their tangent has a gradient of 0 (i.e., a horizontal line). They are said to be stationary because, at these points, the function is neither decreasing nor increasing.

A function can have multiple stationary points, or just one. For example, a quadratic curve (y=ax2+bx+cy = ax^2 + bx + c) would have only one stationary point.

There are three types of stationary points:

  • Maximum
  • Minimum
  • Neither

For example, the point labeled in the image is a minimum stationary point.

A stationary point is a turning point if it is where the curve changes from increasing to decreasing, or the other way around.

In the image above, the labeled point is a minimum turning point, because from there, the function becomes increasing.

A polynomial function of degree nn would have at most n1n - 1 turning points. E.g., a quadratic function (degree 2) has at most 21=12 -1 = 1 turning points.

Finding the Stationary Points

As said above, a stationary point has a gradient of 0. So to calculate the coordinates of the stationary points of a function set f(x)=0f'(x) = 0 and find the solutions of x

These values of x would be the x-coordinates of the stationary points, and to find the corresponding y-coordinates, simply calculate f(x)f(x) for each x-coordinate.

Example

The function of the curve above is given by f(x) = x2 +3x+2f\left(x\right)\ =\ -x^{2\ }+3x+2; find the coordinates of the stationary point P.

  1. Find the derivative of f(x)f(x)
f(x)=2x+3\begin{align*} f'(x) = -2x + 3 \end{align*}
  1. Solve for xx when f(x)=0f'(x) = 0
0=32x3=2xx=32\begin{align*} 0 &= 3 - 2x \\ 3 &= 2x \\ x &= \frac{3}{2} \end{align*}
  1. Substitute the xx value back into f(x)f(x)
y=f(32)y=174=414\begin{align*} y &= f(\frac{3}{2}) \\ y &= \frac{17}{4} = 4\frac{1}{4} \end{align*}

Conclusion

Stationary point P=(112,414)P = (1\frac{1}{2}, 4\frac{1}{4}).

The Second Derivative

Now, what if the curve we are dealing with has more than one stationary point? How do we classify them into these three categories?

The second derivative of a function can be used to check if a stationary point is the maximum, minimum, or neither.

Key Point

If f(x)=0f'(x) = 0, i.e. for a stationary point:

  • If f(x)<0f''(x) < 0, the point is a maximum point.
  • Else if f(x)>0f''(x) > 0, the point is a minimum point.
  • Otherwise, the point is neither a maximum nor a minimum.

Example

The curve is given by the equation f(x) = x(x+2)(x2)f\left(x\right)\ =\ x\left(x+2\right)\left(x-2\right). Find the stationary points of the function and determine which of them are maximum/minimum.

To find the coordinates of the two stationary points:

  1. Expand
f(x)=x(x24)=x34x\begin{align*} f(x) &= x\left(x^2 - 4\right) \\ &= x^3 - 4x \end{align*}
  1. Differentiate
f(x)=3x24\begin{align*} f'(x) = 3x^2 - 4 \end{align*}
  1. Set f(x)=0f'(x) = 0 and solve for x
3x24=0x=±233\begin{align*} & 3x^2 - 4 = 0 \\ & x = \pm \frac{2\sqrt{3}}{3} \end{align*}
  1. Find the corresponding y coordinates
y1=f(233)=1639y2=f(233)=1639\begin{align*} y_1 &= f(\frac{2\sqrt{3}}{3}) \\ &= -\frac{16\sqrt{3}}{9} \\ \\ y_2 &= f(-\frac{2\sqrt{3}}{3}) \\ &= \frac{16\sqrt{3}}{9} \\ \\ \end{align*}

So our coordinates would be (±233,1639)\left(\pm\frac{2\sqrt{3}}{3}, \mp\frac{16\sqrt{3}}{9}\right)

Now, determine which is maximum or minimum:

  1. Find the second derivative of the function
f(x)=6x\begin{align*} f''(x) = 6x \end{align*}
  1. So for any positive value of xx, the point is a minimum, and hence for any negative value of xx, the point is a maximum.

Conclusion

  • x1=233>0x_1 = \frac{2\sqrt{3}}{3} > 0, so the stationary point with the x-coordinate x1x_1 is a minimum.

  • x2=233<0x_2 = -\frac{2\sqrt{3}}{3} < 0, so the stationary point with the x-coordinate x2x_2 is a maximum.

Conclusion

Subsequent sections are accessible through this section at the top of the article.

Thanks for reading.