Orlando Math and Physics Tutoring

November 10, 2013

The derivative as an Operator and the Chain Rule

Filed under: Calculus — Tags: , — Michael Bray @ 2:14 pm

Introduction

In math, an “operator” is a symbol that applies a well-known function or process to one or more inputs to generate one or more outputs, or conveys some relationship, meaning, or constraint to the inputs.  Some operators are ubiquitous: + means addition, – means subtraction.  Both of these operators require two inputs and they generate one output.  There are other operators that are much more specialized and/or complicated – for example, the delta operator Δ represents the change in some variable, such as Δx.

All operators in math require at least one input – operators by themselves mean nothing – they have to “operate” on something.  For example, it means nothing to write “f(x) = +” because the + operator requires two inputs, or “arguments”.  Many operators are easy to recognize, but there are some operators that are very easy to confuse with functions, and indeed the distinction is very subtle.  One example is what we often call the “sine function”.  The “sine” however really should be considered an “operator” because it requires and input, and it establishes a well-known operation – that is, no one would ever redefine sine as “sin(x) = x2”.  As before, there is no sensible meaning to “f(x) = sin” because the sine operator requires an input.  In order to make this function a complete statement, you have to write sine “of something”.  In this example, trivially, this would be “f(x) = sin x” or “f(x) = sin(x)”, where ‘x’ is the argument to the function.  The argument to the sin operator could be a more complicated function, of course, such as x2 or any other function of x, but the point is that the argument is mandatory. 

The derivative as an operator

In calculus, the derivative is also an operator – that is, it establishes a well-known process to an input.  As with other operators, it requires an input – one must take the derivative “of something” because “the derivative” means nothing by itself.  In the case of the derivative operator, the input is function of one or more variables, and the output is a new function of those same variables.  However, it is rarely presented as such, and I believe that doing so would make understanding the Chain Rule much easier for students.  Part of the reason may be that there are at least 4 different ways to write derivatives, although only two are in common use in typical calculus courses (the others are more commonly found in specific engineering or specialized math classes).  One of the two common forms is called Lagrange’s notation, and uses tick-marks to indicate derivatives, such as y’, y’’, etc.  However, this notation does not have quite the same efficacy for this discussion, even though it is perfectly valid.  Instead, I will use Leibniz’s notation for the derivative:

One subtlety about this operator is that it can actually be written in two equivalent forms.  The form above is kind of like a “shorthand” version, and is typically used when the argument is a single-character variable.  The more general form exposes the fact that the derivative is actually an operator:

I shall refer to this as the “expanded” form of the derivative operator, and this is the one that will be of particular use, especially when you think of the d/dx as an operator, just as sin is an operator as discussed above.  The shorthand version would probably be read as “the derivative of y with respect to x”, but the expanded form should probably be read as “the derivative with respect to x of y”.  The change in the ordering of the words isn’t particularly significant, as they both mean the same thing, but this second statement, putting the “with respect to” first, seems to be more in the spirit of treating the derivative as an operator, so I recommend saying it this way, if only to reinforce that the derivative is an operator function.  (To be precise, the derivative operator is simply ‘d’, but for the purposes of this article, I’ll be treating the d/dx as the operator).

Note that unlike the shorthand form, the argument to the expanded form (the contents of the parentheses) can and will often be more complicated than a single-character variable; indeed it will often be an entire function.  For example, this is how one would write “the derivative with respect to x of sin(x)”:

The Chain Rule

Some textbooks, when presenting the Chain Rule, use some strange mixture of Leibniz’s notation and Lagrange’s notation, with the result of the derivative using the latter, I suppose because it’s typographically easier.  For example, they might present the derivative of the sine function like this:

This form, however, has borderline personality disorder.  The first derivative is specifying exactly what variable the derivative is with respect to, while the resulting u’ requires that the student take the derivative with respect to an assumed variable.  Even though the meaning here is obvious, it’s not explicit, and this sometimes tends to confuse students when they first learn the Chain Rule.  In addition, they occasionally have trouble keeping track of what they have assigned to ‘u’, and even when they do keep track, sometimes the meaning of u’ seems lost.  I have found that using Leibniz’s notation, and having the student write out the full rule for the derivative at hand helps them to understand exactly what the Chain Rule is telling them to do.  So instead of the above derivative, a more precise form is valuable:

Taking this even one step further, as we did in the introduction, I recommend that this be written using the expanded form:

By doing this, the student can now make direct substitutions and then simply expand the derivative operators as they have been taught.  For example, to take the derivative of the following function:

The derivative rule that applies is:

So by using the expanded form of Leibniz’s notation, the student could do a direct substitution for u=2x, and then continually apply the known derivative rules as needed:

This technique really shines when repeated use of the Chain Rule and/or other derivative rules is required.  This leads to a cascading “assign / evaluate / substitute” procedure.  In the ‘assign’ step, ‘u’ assignments are made such that the resulting rule will be one of the known derivative rules.  Next, the ‘evaluate’ step the appropriate derivate rule is expanded (keeping the Leibniz notation).  Finally, in the ‘substitute’ step, the chosen ‘u’ is re-substituted back into the equation (again, keeping the Leibniz notation in place).  For example:

The assign / evaluate / substitute process can be repeated as many times as needed until there are no derivatives left to be evaluated.  In particular, at each step, the equations are precise as to what derivatives still need to be evaluated in order to obtain the final derivative.  The process can easily be combined with other known derivative rules (such as product or quotient rule) to yield the final result.  As you can see, this technique is useful not only for those just learning the Chain Rule, but even for more experienced students, even if just to keep track of what their current ‘u’ is, and what rule they are evaluating. 

November 19, 2012

A Geometric explanation for the limiting speed of light

Filed under: Uncategorized — Michael Bray @ 11:13 pm

 

http://www.wimp.com/famousequation/

This is why we learn Math

Filed under: Uncategorized — Michael Bray @ 7:36 pm

Ok well not really.

The music of PI

Filed under: Uncategorized — Michael Bray @ 7:32 pm

No, not the LIFE OF PI…  the MUSIC!

If only Everyone was this helpful!

Filed under: Uncategorized — Michael Bray @ 7:21 pm

 

A 911 operator takes a call from a boy that needs some help

November 13, 2012

Dimensional Analysis

Filed under: AlgebraII, Uncategorized — Michael Bray @ 11:01 am

Units (also called “dimensions”) are funny things, aren’t they?  They actually change the MEANING of the numbers that they are attached to.  For example, 3 cups isn’t the same as 3 gallons, even though both are “3 of something”.  It’s something most people just take for granted.  But both units are measures of the same physical concept – in this case, both are measures of volume.  So there must be a way to convert from one (“cups”) to the other (“gallons”) and vice-versa.

When converting units, there is one overriding principle that you must adhere to – you are trying to change the UNITS, not the PHYSICAL QUANTITY of whatever is being measured.  Most math students know that you use “conversion factors” to switch units, but what’s not obvious about these conversion factors is that they are all “equivalent to 1”.  For example, I assert that 12 inches = 1 foot.  Ok, “big deal” you say – everyone knows that.  But it’s an interesting statement – I’m saying that “12 of something” is equivalent to “1 of something else”.  Well, if we put those into a fraction form, then it looks weird but still holds true:

Therefore, I should be able to multiply ANY number out there by this ratio (12 in / 1 foot) and I’m not changing the answer, because all I’m doing is multiplying by 1, and everyone knows that multiplying by 1 doesn’t change the number.  If that is true, then I should be able to write:

So what just happened?  I started with a ratio, “3 feet over 1” and multiplied by a factor “equivalent to 1” and got a different answer.  But I just said that multiplying by 1 doesn’t change the answer!  So what has changed?  Certainly the numerical value changed – the “3” is now “36” – and the units changed – “feet” is now “inches”.  But 3 feet is equal to 36 inches, so we have successfully converted the original value of 3 feet to inches.  In a sense, the numerical value that changed (3 to 36) exactly cancels out the units that changed (feet to inches).  Notice how the units themselves actually seem to “cancel out” in the multiplication – “feet” (or “foot” in this case) in the denominator of the conversion factor cancel out with “feet” in the original value of “3 feet”.  You can actually think of the units as “multiplication”, so that “3 feet” is really “3” times “feet”.

This is what “dimensional analysis” is all about – making “equivalent” changes to the numerical value and units at the same time, so as to keep the same amount of “stuff” that you started with.  We do this by multiplying (or dividing) by conversion factors that are “equivalent to 1”.  Along the way, the units that we are trying to get rid of are replaced by the units that we are trying to get to, and the numerical value changes in just the right way to keep the physical measurement the same.

The only hard part of dimensional analysis, if there is one, is knowing the correct “equivalent to 1” conversion factors for all of the different units out there.  These conversion factors are often found in textbooks or online.  Google is exceptionally good at helping to answer these questions – just search for something like “feet per mile” and Google will pop up not just the correct conversion, but the answer is often a mini-widget that you can use to convert many other units at the same time.

Here’s a more complicated example: How fast is 55 miles per hour in “inches per second”?  There are a few different conversion factors we need here.  First, we know that 1 mile = 5280 feet, 1 foot has 12 inches, 1 hour has 60 minutes, and 1 minute has 60 seconds.  Thus, we could answer this question like so:

Note that there are a FEW cases in which you may multiply by something that is not “equivalent to 1”, but it’s usually due to how the problem is stated.  For example: “How many tablespoons of sugar would you need to bake 5 times as many cookies as called for in a recipe that calls for 3 cups of sugar?”  In this case, because the question is asking you to calculate “5 times as many” you are actually changing the amount of stuff you need.  Thus, while the recipe calls for 3 cups of sugar, to make 5 times as many as expected in the recipe, you would need 3 * 5 = 15 cups.  That can still be represented in dimensional analysis, but your factor will not be “equivalent to 1”:

There are a few other benefits of using the dimensional analysis technique:

  1. Sometimes students have difficulty deciding when to “multiply by” or “divide by” a conversion factor. By making sure that the units properly cancel each other as you go, it is obvious when to multiply and when to divide.
  2. By making sure that the units cancel out, in most cases, you can actually convince yourself that you have done the problem correctly. (Note: there are a few cases in which this doesn’t always work, but they are comparatively rare.)

Here’s an example of both.  Using the “3 feet” example, let’s pretend we didn’t know whether to multiply or divide, and let’s pretend we guess incorrectly.  We would end up with this:

In this case, the “feet” in are both in the numerator, so they cannot cancel, and we are also stuck with “inches” in the denominator.  We know this is wrong because the units didn’t cancel correctly to give us our desired unit of “inches”.  Therefore, we review our conversion factor and realize that “feet” must cancel “feet” because that’s what we are trying to get rid of, and “inches” must be left in the numerator because that’s what we are trying to get to.  Therefore, the conversion factor “1 foot over 12 inches” is wrong, even though it is still “equivalent to 1”.

August 17, 2012

Infinity

Filed under: Uncategorized — Michael Bray @ 11:15 pm

Infinity is a pretty cool thing…   actually it’s many things.  The video link below is an excellent demonstration of some of the weirdness of infinity, but all put in a very simple way.

Here is the link: http://ed.ted.com/lessons/how-big-is-infinity

Georg Cantor was one of the pioneers in our modern-day understanding of the beast, and I recall reading some of his essays on the matter when I was in high school.  But I was unaware of the Continuum Hypothesis as well as the two proofs that surround it from Godel and Cohen, and the wild result that those two proofs together lead to.  Basically, Godel proved that the Continuum Hypothesis can never be proved false, and Cohen proved that the Continuum Hypothesis can never be proved true.  Thus, the question itself is unanswerable!  I find that incredibly amazing!

July 29, 2012

How many squares?

Filed under: Calculus, Geometry — Tags: , , — Michael Bray @ 2:22 pm

It’s a question that has appeared often in “math trick” books – an image formed by a grid of lines is presented, and the reader is asked to count the number of squares.  Here’s one that I recently saw on Facebook:

cleangrid

The answer expected by most “math trick” books is 40.  Click on this icon to see an animation of how to arrive at this answer: countgrid_anim

But mathematically speaking, this is not the correct answer.  The reason is because the definition of a square – “a regular quadrilateral” [1] cannot be accurately represented by your computer screen, which is made of pixels that have width and height (and which themselves do not physically touch, nor might they actually be square!).  For that matter, nor can a mathematical square be accurately represented on a piece of paper, because even the line made by the finest of fine-point pens has thickness.  That means that in the very least, for any physically-drawn object, there are a minimum of TWO mathematical squares: the “inner square” formed by the inner edge of the border, and the “outer square” formed by the outer edge of the border. 

Here’s a simpler demonstration of what I mean.  How many squares are in the following image?

plainsquare   

The obvious answer is “one” – the image is that of a square.  But realizing that the black portion of the image has thickness, there are actually at least TWO squares.  There is the “outer edge” of the black square and the “inner edge square” of the black square, which could also be described as the outer edge of the inner white square.  In the image below, I’ve highlighted both in blue/yellow below (look closely!)  Of course, even this isn’t really correct because the highlights that I’ve drawn also have thickness, but for the sake of demonstration, realize that the blue/yellow is only meant to highlight the areas I’m referring to.

plainsquare_anim

But it gets worse.  The reason there is an “outer edge” square is because we are assuming the background to be white (the color of the this page).  This is more clearly demonstrated by the following example.  If we assume a shape to be defined as the border (or “contrast”) between a foreground color and a background color, then the question becomes a bit more simple.   So for example, I might ask how many squares you see in each of the two following images:

blackonwhite4x4

The answer to this first image is obviously 4.  (Some people might argue that there are 5, the 5th square being formed by the border of full image, but that is nothing more than an optical illusion – there is no mathematical support whatsoever for the “5” answer.)  But the reason you see 4 squares here is because the background of this web page is white, and I’ve tricked you by including a “hidden” border around the image that is the same as the background of the web page – white.  Here is the exact same image, but with the colors inverted:

whiteonblack4x4

Now that the “background” doesn’t match the border, you can see it, and by following the intention of the original problem, the answer would be that there are 5 squares (although for a slightly different reason than the optical illusion argument in the previous example).  But why should simply changing the color of the image alter the number of squares it contains??  It shouldn’t, and it doesn’t!  This is simply another effect of the inability of paper or computer screens to accurately represent strict geometrical figures.  It’s what I’ll call the “foreground / background” problem and is due to the fact that we usually have to assume a particular “background” color.

In fact, it should be clear that the second image is just a smaller version of the original problem.  Where most “math trick” books would expect the answer of 5, the more accurate answer would be obtained by inverting the image, and then counting the “filled squares” of the result (as we did with the first image).  In order for the “contrast” method to be used, we are justified in treating the geometrical shapes as filled (solid, instead of simple outlines) because a square as mathematically defined says nothing about the interior.  Furthermore, realize that when you are counting the solid squares, what you are really counting is a more graphically-obvious object that is meant to represent the border, which is the true square.  In fact, it is mathematically more accurate this way, since the border of the two colors is as close as we can get on paper / screen to the mathematical concept of a line that would truly define a geometric shape. 

This now allows us to take another look at the original image in a different light.  Let’s invert the original image and re-count the squares:

cleangrid_inverted

NOW how many squares are there?  Note that this is exactly the same problem as originally presented at the top of this page, but now using the improved method of defining a geometric shape as the intersection between two colors that is more effective when presented on paper / screen, and we can perform a better count of how many squares there actually are.  In this refined image, we should be counting the “solid black” squares, since the background is defined as “white”.   

There are two basic shapes in this image: squares and “L”s.  There are, in fact, 4 large squares along the left, 4 large squares along the right, and 8 small squares arranged in 2 groups of 4, each group of 4 surrounded by 4 “L”s with different rotations.  Therefore, the true “mathematically graphical” answer to the original problem is that there are SIXTEEN squares:

cleangrid_inverted_counted

This answer takes into account and eliminates the foreground/background issue as well as the “thickness” issue, but is not the answer that you’ll see in most books.  For that matter, if you ever take an IQ test and see a problem like this, I doubt that they would be expecting this answer either, so don’t overthink it.

[1] Wikipedia, “Square (geometry)”, 7/29/2012.  http://en.wikipedia.org/wiki/Square_(geometry)

June 22, 2012

Yum!

Filed under: Uncategorized — Michael Bray @ 4:47 pm

i 8 sum pi

March 24, 2012

Simple trick for remembering where the standard trigonometric angles are

Filed under: Trigonometry — Tags: , — Michael Bray @ 12:52 pm

If you have difficulty remembering where the standard angles are, there is a simple way to do so.

First, remember that we are talking about the /6, /4, and /3 angles only.  The /2 angles (0, π/2, π, and 3π/2) don’t fit into this method very well, and other angles (eg π/12, 5π/12) don’t work at all.

Second, note that there is only one of each of the /6, /4, and /3 angles in each quadrant. 

Third, there is a pattern that each of the quadrants follows based on the angle you are trying to locate.  Quadrant I is easiest – it is always just π over the denominator.  For example, Quadrant I has π/6, π/4, and π/3.  Quadrant II has a numerator one less than the denominator, 2π/3, 3π/4, and 5π/6.  Quadrant III has a numerator one more than the denominator, 7π/6, 5π/4, and 4π/3.  Quadrant IV has one less than twice the denominator, 5π/3, 7π/4, and 11π/6.  So for Quadrants I, II, III, and IV, the pattern is +1, –1, +1, –1.  This is summarized in the following chart:

IdentifyTrigAngles

Older Posts »

Blog at WordPress.com.

Create your own website, free on WordPress.com.Create your own website.
Start free