Skip to main content

Sample post - critical points and tangent planes

This post is from the summer when the innovation lab is not open so the 3d object is a cucumber from my garden rather than a 3d printed object!

The main ideas

For functions of a single variable the tangent line is the line that is the "closest linear approximation" to the function. For a function \(f(x)\) the tangent to the function at the point \(a,f(a)\) is the line through that point with slope \(f'(a)\). So if we use point slope form the tangent line has the equation $$(y-f(a))=f'(a)(x-a)$$ or in standard form $$y=f'(a)x+(f(a)-f'(a)a).$$
There are many reasons we might be interested in the tangent line to a graph. One of them is to find critical points of that graph. Critical points are points where the tangent line is vertical or horizontal and these are points where we can find local (or global) maximum and minimum values. A tangent line is horizontal if the derivative is zero and it is vertical if the derivative is not defined. (There are other options too!)

These same kind of ideas apply to functions of 2 variables (or more) but now we have tangent planes rather than tangent lines. If \(f(x,y)\) is a function of two variables then $$f_x(a,b)=\lim_{h\to 0}\frac{f(a+h,b)-f(a,b)}{h}$$ is the partial derivative of \(f\) with respect to \(x\). The partial derivative of \(f\) with respect to \(y\) is just a little different $$f_y(a,b)=\lim_{h\to 0}\frac{f(a,b+h)-f(a,b)}{h}$$

To find the equation for the tangent plane remember that the equation for a plane is $$A(x−x_0)+B(y−y_0)+C(z−z_0)=0.$$ We know that the point \((a,b,f(a,b))\) is on the tangent plane so our plane has the form $$A(x−a)+B(y−b)+C(z−f(a,b))=0$$ or $$z=f(a,b)-\frac{A}{C}(x-a)-\frac{B}{C}(y-b).$$ When \(y=b\) the tangent plane should look like the tangent line and so \(\frac{A}{C}=f_x(a,b)\). Similarly, when \(x=a\) the tangent plane should look like the tangent line and so \(\frac{A}{C}=f_y(a,b).\) Then the equation of the tangent plane is $$z=f(a,b)-f_x(a,b)(x-a)-f_y(a,b)(y-b)$$ and one of the places we look for critical points of \(f(x,y)\) is points where the plane is horizontal.

Looking at an example

It isn't exactly true, but the end of a cucumber
is almost the graph of the paraboliod $$z=4-2(x^2+y^2)$$ This is a nice example to think about because we can clearly see a critical point - it is at the top and this is a global maximum for the cucumber. There are many other examples where we can see places where the tangent plane is horizontal, for example the graph of $$z=4-2(x^2-y^2),$$ but another nice thing about the cucumber is we can see the tangent plane at the critical point. In fact, balancing an envelope on the top of the cucumber is the tangent plane at that critical point.
(Try to imagine that the envelope is perfectly straight!) It might seem a little strange but at the top of the cucumber, the envelope is the plane that most closely approximates the cucumber. If we moved the envelope down the side of the cucumber we would need to change the angle of the envelope.

It would be harder to do this for the function $$z=4-2(x^2-y^2),$$ since the critical point at \((0,0,4)\) is not a local maximum or a local minimum. So I was very happy to have an example where I could clearly see the tangent plane.

The math for this example

In this example \(f(x,y)=4-2(x^2-y^2)\) so $$\begin{aligned}f_x(a,b)&=\lim_{h\to 0}\frac{4-2((a+h)^2+b^2)-4+2(a^2+b^2)}{h}\\ &=\lim_{h\to 0}\frac{4-2(a+h)^2-2b^2-4+2a^2+2b^2}{h}\\ &=\lim_{h\to 0}\frac{2(-(a+h)^2+a^2)}{h}\\ &=\lim_{h\to 0}\frac{2(-a^2-2ah-h^2+a^2)}{h}\\ &=\lim_{h\to 0}\frac{2(-2ah-h^2)}{h}\\ &=\lim_{h\to 0}2(-2a-h)=-4a\\ \end{aligned}$$ The computation for \(f_y\) is similiar so \(f_y(a,b)=-4b\).

So the tangent plane for this function \(f(x,)\) is horizontal when \(-4a=0\) and \(-4b=0\). This happens when both \(a\) and \(b\) are zero. Since the function is decreasing as we move away from the point \(0,0\) this is a global maximum. (An this agrees with our experience of cucumbers.)

Popular posts from this blog

Finding an object's center of mass using integration

Thinking about center of mass As a kid, I would sit in class and balance my pencil on my finger. What I didn't know then was that I was finding the pencil's center of mass. An object's center of mass is a point where the average weight of the object lies. In other words, the weighted position vectors of the object at this point sum to zero (source: https://www.dictionary.com/browse/center-of-mass ). The exact location of this point can be found using calculus. First, it is important to understand the moment . The moment for a two-dimensional object is given with respect to both the x- and y-axes. It is a physical characteristic of the object a certain distance from these axes. It's easiest to think about the axes as reference points for where the characteristic acts; in this case, where the mass is distributed. When computing these moments, the hardest concept to grasp is that the moment with respect to y, for example, is given by the x-coordinat...

Finding the Center of Mass of a Toy Boat

Consider two people who visit the gym a substantial amount. One is a girl who loves to lift weights and bench press as much as she possibly can. The other is a guy who focuses much more on his legs, trying to break the world record for squat weight. It just so happens that these two are the same height and have the exact same weight, but the center of their weight is not in the same part of their body. This is because the girl has much more weight in the top half of her body and the boy has more weight in the bottom half. This difference in center of mass is a direct result of the different distributions of mass throughout both of their bodies. Moments and Mass There are two main components to finding the center of mass of an object. The first, unsurprisingly, is the mass of the whole object. In this case of the boat example, the mass will be uniform throughout the entire object. This is ideal a majority of the time as it drastically reduces the difficulty...

Do Over: Integration Over a Region in a Plane

Throughout the semester we have covered a variety of topics and how their mathematical orientation applies to real world scenarios. One topic we discussed, and I would like to revisit, is integration over a region in a plane which involves calculating a double integral. Integrating functions of two variables allows us to calculate the volume under the function in a 3D space. You can see a more in depth description and my previous example in my blog post, https://ukyma391.blogspot.com/2021/09/integration-for-over-regions-in-plane_27.html . I want to revisit this topic because in my previous attempt my volume calculations were incorrect, and my print lacked structural stability. I believed this print and calculation was the topic I could most improve on and wanted to give it another chance. What needed Improvement? The function used previously was f(x) = cos(xy) bounded on [-3,3] x [-1,3]. After solving for the estimated and actual volume, it was difficult to represent in a print...