Saturday, April 19, 2008

Natural Logarithm as An Integral

Professional Calculus 1 and 2 Study DVDs.

Today we'll look at the natural logarithm lnx as an integral. Let's first consider the function ln(x), which is the natural logarithm of x. d/dx ln(x) = 1/x, so we can say that the integral of ln(x) from 1 to x is the value of ln(x) at x, because ln(x) at x = 1 is 0. Here's a better visual. Pay attention to the black writing in the top right of the image.

Again, this simply states that the antiderivative or definite integral of 1/x is the natural logarithm of x. Here note that as this is a definite integral there are limits of integration, namely 1 and x...so be sure to realize that the end limit of integration is varying in this case and can take on any value so long as it's greater than 1. If it's less than 1, (x < ln2 =" .693."> 2 is just ln(2).

You'll see in the first image that I've also computed the area under the curve from .5 to 1. It happens to be exactly the same as the area from 1 to 2, but if you compute the natural logarithm of .5 you'll get -.693, thus requiring you to keep in mind that although the sign of the result is negative, the area is most certainly positive.

So there you go, a simple example of the natural logarithm as an integral of 1/x. Keep in mind integration and differentiation are reverse processes. You were given a function and were asked to the area under it on an interval. You took the integral (or antiderivative) of the function and although we neglected to mention it, you took the difference of the limits of integration evaluated using the integral of 1/x - we ignored Ln(1) as it equals zero - but to be formal.

Integral of 1/x = Ln(x) | Area between 1 and 2 equals Ln(2) - Ln(1) = Ln(2) = .693.

This practice is derived from the fundamental theorem of calculus:
f(x) = F'(x)\,.

Then

\int_a^b f(x)\,\mathrm dx = F(b) - F(a)

Here's a great video on the fundamental theorem if you'd like to brush up/learn more about it.




Tuesday, April 8, 2008

Integral Mean Value Theorem & Mean Value Theorem

Professional Calculus 1 and 2 Study DVDs.

Today we'll explore the integral mean value theorem along with the mean value theorem for differential calculus. They're very similar in concept and will be fundamental in proving the Fundamental Theorems of the Calculus.

Mean Value Theorem -

If f(x) is continuous on the closed interval [a,b] and differentiable on the open interval (a,b) - there's at least 1 point "c" between a and b where  f^'(c)=(f(b)-f(a))/(b-a).

the derivative of c is equal to the slope of the secant line between a and b. Now, said that way you might be thinking to yourself, "what's the big deal." Fair enough. Let's take a look at a visual representation made in Mathematica:


What this means is that if the condition of f being continuous over [a,b] and differentiable over (a,b) there must be some C such that a where f '(c) = m of the secant line between AB.

The secant line is the average derivative of the curve over the interval. At least one time the derivative at a point will = the average derivative.

So - you're speeding along in your Ferrari for an hour. You end up driving 145 miles from point A to point B in an all out sprint (not shown). Can you guarantee that for at least 1 instant (perhaps more but at least for an infinitesimally small quantity of time you did go 145mph? You sure can. The mean value theorem guarantees that over a curve (the drive), your instantaneous velocity (f prime of c) must be equal to your average speed (secant line) at some point.

Integral Mean Value Theorem -

Given a function f(x) that's continuous over [a,b] there exists some c such that a <>\displaystyle f(c)=\frac{1}{b-a}\int\limits_a^bf(x)dx

Said differently - f(c)*(b - a) equals the area beneath f(x) from a to b. Stated even more plainly, if you choose the right C, the area of the rectangle that you create whose height is f(c) and width if [a,c] will = the area under the curve. Here's an illustration done with Mathematica.

In this case, the gold rectangle with base 2.88-0 and height f(c) has area equal to the curve f(x) over the interval a to b.

Let's examine another image and see what this graph would look like had we chosen a value for C greater than ~2.88.

Clearly the area of the rectangle when using c = 4 results in an area that nearly doubles the area under the curve.

So the C you choose - is a function of the function and the mean value theorem for integration simply guarantees that there will be some C, where the area of the rectangle will equal the integral (area under f(x)) - just as in the above example for the mean value theorem used in differential calculus, there was some derivative of f(x) at c between [a,b] where the instantaneous slope was = average slope of the function.

Sign up for the daily email if you'd like. Check out the banner on the right too, iChapters let's you buy only the chapters you need. The whole chapter on integration in Stewart Calculus is under $8.00! That's not too shabby.

Resources:
Wolfram Integral Mean Value Theorem + Mean Value Theorem

Differentiate Using Chain Rule Twice

Professional Calculus 1 and 2 Study DVDs.

Today we'll do a simple problem. Plain old differentiation using the chain rule but we'll have to apply it multiple times. Here's the problem:

tex2html_wrap_inline750
Cos(x^3)^2 written differently. Keep in mind this isn't a product and we can't employ the product rule here. If you'd like to review the product rule however there's a link to a short video tutorial on the product rule at the end of this entry.

Recall that the chain rule is as follows:

 (f \circ g)'(x) = f'(g(x)) g'(x),\,
In this case our f(x) is cos^2(x) and our g(x) is x^3. Let's begin to differentiate:

2*cos(x^3)*-sin(x^3)*3x^2 - here's the image of what I've written to the left -

tex2html_wrap_inline768 Let's think about this - we used the power rule to get the exponent in front of the cos(x)

\frac{d}{dx} x^n = nx^{n-1}. power rule
Then you multiply the 2 by the inside of the balance of the functions. Then you take the derivative of the cos, which yields -sin, followed by the derivative of x cubed by itself. The final answer is a product of each successive differentiation.

tex2html_wrap_inline770 .
So remember - when using the chain rule more than once remember to keep differentiating the outer part of the expression and work your way inward, multiplying by the results of your differentiation to arrive at the final answer.

Here's a good video on the product rule - remember that the quotient rule is just the product rule in disguise and sometimes it's better to take a quotient and create a product through use of a negative exponent.

Monday, April 7, 2008

Area Under a Curve as Limit - Find The Function

Professional Calculus 1 and 2 Study DVDs.

This problem involves analyzing the limit of the approximating rectangles which tells us the area under a curve, and determining what the function is along with what interval we're measuring area under.

Here's the limit:




How do we find the function and the interval whose area is described by the above limit? Well, we know that the area of a rectangle is

height * base -- so it follows that the area of an approximating rectangle under a curve is just the width of the interval * f(x) evaluated at the chosen endpoint/midpoint. Here's a graph to refresh your memory.


In this particular illustration, they are creating the approximating rectangles using the left endpoints. You can tell because the horizontal lines are being drawn from x = a which is the leftmost endpoint on the interval.

Also note that when a function is increasing over an interval, using left endpoints will underestimate the area under the curve. Using right endpoints will force an overestimate for the same function.


So the area of the first rectangle is b-a/7 (effectively the width of the rectangle) * f(Xa).

Back to the question:


Recall that this is a summation formula and if you look at the term outside the parentheses there is a term that will be distributed through the set of terms being influenced by the "i" in the limit. 2/n represents the width of the interval for each approximating rectangle. So this is the base of the rectangle. If you're wondering which rectangle remember this - 2/n is a constant proportion representing the area of any given rectangle. If we had 1000 rectangles that width would be 2/1000. Don't think of the width of the approximating rectangles as varying from rectangle to rectangle.

So b-a/n = 2/n. This means that the difference between b and a is 2. Without knowing anything else we could guess that the interval is 45 to 47, or 87 to 89. It's not right but at least the distance of the interval would be accurate. The area would be a bit high I'm afraid though.

So let's figure out what A and B are. The term in the parentheses represents the function evaluated at the Xi at the ith subinterval. It's 5 + 2*something/n. The 5 tells us something - it tells us that the interval begins at x = 5.

So a = 5, which means that if b - 5 = 2, b = 7.

The function turns out to be f(x) = x^10 and on the interval [5,7].

Considering the term in the parentheses, it's simply describing the height of the approximating rectangle at the ith subinterval in a generalized way. As the term 2/n is just describing the interval in a generalized way.

Sunday, April 6, 2008

Sigma Notation Summation Rules & Limits at Infinity

Professional Calculus 1 and 2 Study DVDs.



Let's review the basic summation rules and sigma notation to find the limit of a sum as n approaches infinity. First let's review the basic rules and then we'll get to the problem - which is a problem you'd generally see preceding a discussion of the definite integral.

Recall that the "n" on top of the Sigma (the funny looking e) is the terminal value for the index which is located under the sigma. Note that the i= "something" tells you where to begin the summation.

1) Rule one states that if you're summing a constant from i=1 to n, the sum is equal to the constant multiplied by n. This makes intuitive sense. If i=1, and n = 100, and C was 1, 1(100) = 100.

2) Rule two states that the sum of increasing integers is simply n(n+1)/2. We'll leave the proof for another time but for now we can have faith in its utility.

3) Rule 3 states that the sum of increasing squared integers is equal to the formula.

4) Rule 4 is the same as rule 3 but handles the sum of increasing cubed integers.

Now let's evaluate the limit of a summation as n approaches infinity. Here's the problem:


One of the first considerations we need to make is what isn't affected by i, or what term(s) doesn't need a summation rule to be applied to it? First let's collect all terms outside of the parentheses and then square the inside term. After we've set this up we can apply the summation formula to all the terms inside the parentheses. Here are the steps.

Now we have to evaluate each term. We know from rule 1 above, the sum of a constant is simply c*n. So this will just be n. The middle term will be 2/n* the rule above which handles the sum of increasing integers n(n+1)2. The third term is a bit tricker - we take a 1/n^2 and place it to the left of the Sigma and evaluate i^2, whose rule is listed above. Here's the result visually:





Now we'll simplify through algebraic manipulation and distribute in the 3/n.


We see that in the 3rd image to the left that the 6 will remain, the 2nd term gets wiped out, the 6n^2 terms = 1 and remain, the 9 gets wiped out by the 6n^2 as does the 3.

So, as n approaches infinity the limit = 6 +1 = 7.

Keep in mind that when you're taking a limit as something approaches infinity - if the power of that something in the denominator is greater than the power of that something appearing in the denominator the term approaches zero as that something becomes large. After the 6, the 3/n is really 3/infinity which is zero as n becomes large. If you won 3 bucks and your friend won 3 billion you'd think very little of your winnings!

Not too bad - just remember to only apply the summation rules to terms that are impacted by them, namely i, or any expression involving i.


Friday, April 4, 2008

Calculus Minimization Problem - Pythagorean Theorem

Professional Calculus 1 and 2 Study DVDs.

Problem #49 from Section 4.7 Stewart Calculus 5th Edition:

We have a point p, somewhere on line AD. We need to minimize the length of the black lines

  • AP
  • PB
  • PC

and express the length of these lines as a function of x, L(x).

Now what data points do we need? We definitely need the lengths of the line segments because the length function L(x) will be the sum of them (AP + PB + PC). We know that AD = 5. Remember now that AP isn't fixed, so we can say that AP = x. So PD is 5-x.

What about PC and PC? Well now since PD, is 5-x we can use the Pythagorean theorem.

PB = sqrt(2^2 + (5-x)^2)
PC = sqrt(3^2 + (5-x)^2)

They both share the (5-x) line segment PD recall, and we just squared the lengths that were given in the problem, BD and DC.

So L(x) is simply:

x + sqrt(4 + (5-x)^2) + sqrt(9 + (5-x)^2)

Let's differentiate L(x)

So - L '(x) = 1 + 1/2(4 + (5-x)^2)^-1/2 + 1/2(9 + (5-x)^2)^-1/2

still going with the chain rule - we had to take the derivative of the inner function (5-x)^2.

L '(x) = 1 + 1/2(4 + (5-x)^2)^-1/2 * 2(5 - x)-1 + 1/2(9 + (5-x)^2)^-1/2 * 2(5 - x)-1

This simplifies to: L ' (x) = 1 + [(x-5)/sqrt(4 + (5-x)^2)] + [(5-x)/sqrt(9 + (x-5)^2)]

Well - that's a mess and we have to find the roots of the equation so we can evaluate the critical points. Let's use a graph instead:



We see that L(x) experiences a minimum as L '(x), it's derivative crosses the x axis. When any derivative changes from negative to positive, the curve experiences a minimum. So what's the value of x that minimizes the function?

Let's take a closer look:





It seems that the derivative dL/dx is crossing the x axis at 3.593. Plugging in this x value into the original function:

x + sqrt(4 + (5-x)^2) + sqrt(9 + (5-x)^2)

= 9.35 meters or so.

You can also see this in the first graph as the Y value where the curve experiences a minimum.

That's pretty much it - you needed to define the line segments, find a function which expresses the sum of the line segments in terms of x and differentiate. The function was minimized as it's derivative crossed the x axis. The graphs were made in Mathematica, by Wolfram.

For those of you may still be hung up on the chain rule - here's a great video on YouTube which clearly describes the operation taking place.



Thursday, April 3, 2008

Optimization Problems - Stewart Calculus 4.7

Professional Calculus 1 and 2 Study DVDs.

Here's a simple optimization problem to get us started:

4.7 #2 From Calculus Early Transcendentals 5th Edition

Find 2 numbers whose difference is 100 and whose product is minimum. So we know a very basic information:

a) let the 2 numbers be x and y.

b) y - x = 100 so y = 100 + x

c) we want to minimize xy or since we have y in terms of x, x(100 + x) = x^2 + 100x

Now let's minimize the product, or xy.

f(x) = x^2 + 100x

find the derivative

f ' (x) = 2x + 100 {power rule 2 times}

Find the critical points by setting f ' (x) = 0

if 2x = + 100 = 0, 2x = -100 and x = -50 (critical value).

Now that we have a critical point we need to assess whether or not the function is increasing or decreasing around that point. Let's find values of f prime = f ' (x) for x = -49, -50, -51

  • f ' (-51) = -2 -- if the first derivative is less than zero the function is decreasing on its interval.
  • f ' (-50) = 0 -- recall that if x = -50 the derivative is zero, which implies that the curve is experiencing a horizontal tangent.
  • f ' (-49) = 2 -- so the curve is going up as the first derivative is +.
If the curve is going down at -2, flat at -50 and increasing at 2 onward, I'd say that our critical point is a minimum. \ _-50_ /.

Well - there isn't much left to do but solve for y.

y = 100 + x
y = 100 -50
y = 50

That's that! Next post we'll try a more complex optimization problem.