Showing posts with label derivation. Show all posts
Showing posts with label derivation. Show all posts

Tuesday, July 8, 2008

Rectangles, Squares, Areas, and Calculus

Rectangles, squares, areas, and calculus are closely related, but do you know how much? Well, see this question. It's very common with numbers, I'm just bringing the general version.

A rectangle with sides of lengths x and y has perimeter P. Prove that the largest area of this rectangle is given when the rectangle is a square.

Well, the question already gives us the variables. All we need is to use them, combine all four terms in the question (rectangles, squares, areas, and calculus) and prove what we need to prove.

So, the perimeter is P. This means that 2(x + y) = P. To get an equation with one variable, let's find y in terms of the other numbers:
x + y = P/2
y = P/2 - x

Now we know two sides of the rectangle: x and P/2 - x. Let's multiply them to find the area function:
A = x(P/2 - x)
A = xP/2 - x2

To find the maximum value for A, let's differentiate:
A' = P/2 - 2x

Equate A' to zero:
0 = P/2 - 2x
2x = P/2
x = P/4

To make sure it's a maximum, let's find the second derivative of A and see if it's negative:
A'' = -2

That's definitely negative, so x = P/4 is the point where the area is maximal. As you can see, that's a quarter of the perimeter. When one side of a rectangle is a quarter of the perimeter, it's a square. To prove that, plug P/4 for x in the equation for y:
y = P/2 - P/4
y = P/4

It's now proven. The biggest area of a rectangle with a constant perimeter is a square.
Nadav

nadavs

Monday, June 30, 2008

Parabolic Minimums

Today's question deals with parabolas, lines, and some calculus. It's not very hard, but, as always, it's very interesting.

Two parabolas, y = x2/x + 7 and y = -x2/4 + 3x, are drawn on the same coordinate plane. A vertical line is going through the parabolas. P and Q are the points of intersections with the first and second parabolas, respectively. Find the vertical line and the shortest distance between P and Q.

The first thing to do when you face such a question is to find an equation that represents the quantity you want, this time the distance PQ. Since the two points are on the same vertical line, they both have the same x-coordinate. Let's call it x. That makes the points:
P(x, x2/2 + 7)
Q(x, -x2/4 + 3x)

The distance between them is just the difference in the y-coordinates (because they lie on a vertical line). The distance is:
d = x2 + 7 - (-x2/4 + 3x) = x2/2 + 7 + x2/4 - 3x = 3x2/4 - 3x + 7

We want the shortest d possible, and that's achieved when the derivative of d is zero:
d' = 3x/2 - 3
0 = 3x/2 - 3
3 = 3x/2
6 = 3x
x = 2

Now we know the vertical line, x = 2. Plug this value in d and find the shortest distance between P and Q:
d = 3 * 22/4 - 3 * 2 + 7 = 3 - 6 + 7 = 4

The shortest distance between P and Q is 4.

Have a great week,
Nadav

nadavs

Saturday, June 28, 2008

Towns With Angles

Today's question also involves the law of cosines, but with a different purpose. It is a very neat question from a test which is considered "hard". Try it before looking at the answer.

A biker travels from town A to town B at 10 km/h. Another biker is traveling from town B to town C at 12 km/h. The distance from town A to town B is d. Angle ∠ABC = 120°. The bikers are closest after 2.5 hours of riding. Find d.

First, try to draw the situation. Draw the three towns, draw d, draw the angle, and place two points on segment AB and segment BC, which are the bikers.

Let t be the time the bikers are traveling. This means the first biker's distance from town A is 10t and the second biker's distance from town B is 12t. Since the first biker's distance from town A is 10t, his distance from town B is d - 10t.

We need a variable that represents the distance between the bikers. Let's call it x.

As you can see now, we have a triangle with three sides (x, 12t, d - 10t) and an angle of 120° which is opposite to the side with measure x. This situation calls for the law of cosines to find the relation of all variables:
x2 = (12t)2 + (d - 10t)2 - 2(12t)(d - 10t)cos 120°

cos 120° = -0.5, so the relation becomes (after expanding):
x2 = 144t2 + d2 - 20dt + 100t2 + 12dt - 120t2

Add like terms and take the square root:
x = √(124t2 + d2 - 8dt)

We know that x has a minimum when t = 2.5, so if we derive x and plug 2.5 for t, we can find d.

As you should know, when you derive √f(x), you get f'(x)/2√f(x). Since we equate the derivative to zero (at a maximum or a minimum, the derivative is zero), we can now ignore the denominator (since it's always positive and we can multiply by it). Don't ignore it on a test, I'm doing it to save time.

Since we derive by t (dx/dt), the derivative of d2 is 0 (d is a constant, not a variable).
0 = 248t - 8d

We know that t = 2.5, so:
0 = 620 - 8d
8d = 620
d = 77.5 km

Towns A and B are 77.5 km apart.

Have a great weekend,
Nadav

nadavs

Sunday, June 8, 2008

Boating Calculus

Today's question is dedicated to all boating lovers and calculus fans. It is not very hard, it has no use in real life, and yet it is a very beautiful question (like the ones on super math tips).

A boat leaves the dock at 12:00pm and heads west at 40km/h. Another boat travels north at 20km/h and enters the dock at 1:00pm. When is the distance between the boats the shortest and what is that distance?

Nice, isn't it? We have an optimization question here, so we need to create a function to find a variable to optimize. We're dealing here with given speeds, variable times and varying distances, so let's call the time variable t (in hours, to match the speeds) and the distance variable d (in km).

Now, the distance from the first boat to the dock is 40t (it starts at the dock). The distance from the second boat to the dock is 20 when it starts, and 20 - 20t total (since it travels towards the dock).

The boats are heading in perpendicular directions, so they form a right triangle. Using the Pythagorean theorem, we can find the distance between the boats, d:
d2 = (40t)2 + (20 - 20t)2
d2 = 1600t2 + 400 - 800t + 400t2
d2 = 2000t2 - 800t + 400

Since we want to find the minimum value for d and d must be positive, we can also find the minimum value of d2 (also must be positive). Let y = d2:
y = 2000t2 - 800t + 400

Now differentiate this function:
y' = 4000t - 800

To find an extremety, we need to set y' to zero:
0 = 4000t - 800
4000t = 800
t = 1/5

To see that it is indeed a minimum, let's find the second derivative of y:
y'' = 4000
Since it is positive, y is minimal when t = 1/5

Now calculate y when t = 1/5:
y = 2000 * (1/5)2 - 800 * (1/5) + 400
y = 2000 * (1/25) - 160 + 400
y = 80 + 240 = 320

However, y is the distance squared, so let's take the square root of this number:
d = sqrt(y) = sqrt(320) = 8sqrt(5) = 17.888... km.

This means that after 1/5 of an hour, which is 60 / 5 = 12 minutes, the boats will be the closest to each other at 8sqrt(5) (or 17.888) km apart.

Hope you enjoyed.
Nadav

nadavs

Thursday, June 5, 2008

Wire Optimization

Finally, after waiting for a good question, it finally came: an optimization question. This one is from Yahoo Answers, and believe me, it's very good.

A 6 meter long wire is cut into 12 pieces. From these pieces, eight have the same length and the other four also have an equal length. These pieces form a frame of the box. How long should each piece for the box to have a maximum volume?

First, we should define ourselves some variables, otherwise we'd be lost.

Let x be the length of one of the 8 pieces. That means the total length of the 8 equal pieces is 8x. That means the other four pieces have a total length of 6 - 8x, and 3/2 - 2x meters each.

Since these wires form a box, the sides of the box have lengths of x, x, and 3/2 - 2x. That makes the volume of the box x * x * (3/2 - 2x), or 3x2/2 - 2x3.

To find the maximum value, we need to differentiate the volume function and set it to zero. Then we need to find the values that we get from solving the equation, plug them in the second derivative, see which one is a maximum and say "Problem Solved".

So:
V = 3x2/2 - 2x3
V' = 3x - 6x2
0 = 3x - 6x2
3x(1 - 2x) = 0
x = 0, 1/2

Now, let's find the second derivative and see when it's negative, so we get a maximum:
V'' = 3 - 12x
V''(0) = 3 - 0 = 3 > 0 - minimum
V''(1/2) = 3 - 12 * 1/2 = 3 - 6 = -3 < x =" 1/2" 1 =" 1/2">3 = 1/8 m3

Problem solved.
Nadav

nadavs

Friday, May 30, 2008

Trigonometric Derivation

Today I have a question about differentiation with the definition of differentiation, which means using the limh -> 0 (f(x + h) - f(x)) / h. However, today it is going to be about trigonometric functions (it's always about trigonometry, isn't it?).

Differentiate cos(x) using the definition of differentiation.

First, the most important limit to remember is this: limx -> 0 sin(x) / x = 1. When you have this in mind, you can solve anything (well, many things).

Let's write what we need to find:
limh -> 0 (cos(x + h) - cos(x)) / h

Using the identity of the cosine of sums of angles, we can get:
limh -> 0 (cos(x)cos(h) - sin(x)sin(h) - cos(x)) / h

Now follow closely:
limh -> 0 ((cos(x)cos(h) - cos(x)) / h - sin(x)sin(h) / h)
limh -> 0 (cos(x)cos(h) - cos(x)) / h - limh -> 0 sin(x)sin(h) / h
limh -> 0 cos(x)(cos(h) - 1) / h - sin(x) * limh -> 0 sin(h) / h
limh -> 0 cos(x)(cos(h) - 1)(cos(h) + 1)/h(cos(h) + 1) - sin(x) * limh -> 0 sin(h) / h
limh -> 0 cos(x)(cos2(h) - 1)/h(cos(h) + 1) - sin(x) * limh -> 0 sin(h) / h
limh -> 0 cos(x)(-sin2(h))/h(cos(h) + 1) - sin(x) * limh -> 0 sin(h) / h

Now watch the beauty of mathematics reveal itself:
L'Hopitals rule says that to find limx -> a f(x)/g(x), you can also find limx -> a f'(x)/g'(x). Let's do that on the first limit:
limh -> 0 -sin2(h) / h
= limh -> 0 (-sin2(h))' / h'
= limh -> 0 -2sin(h)cos(h) / 1
As h approaches 0, sin(h) also approaches zero, so the entire limit is zero, and thus the whole first part of the first big limit.

This leaves us with:
- sin(x) * limh -> 0 sin(h) / h
As you can see, we have limh -> 0 sin(h) / h = 1
That means:
-sin(x) * limh -> 0 sin(h) / h = -sin(x) * 1 = -sin(x)

So the entire derivative equals -sin(x).

That's why super math tips exists. Or you can simply use Wikipedia's list of trigonometric derivatives (but where is the fun in that?).

Nadav

nadavs

Tuesday, May 13, 2008

Buggy Calculus

Today I have a question of a higher level from the previous two, but it's much easier from the previous ones for people who know calculus (seriously, much easier).

So, here is the question:

A bug is walking on a wooden log. Its distance from the right edge of the log after t minutes is given by the function x(t) = t3 - 9t2 + 500 inches.

A. What is the bug's velocity after 4 minutes?
B. When does the bug change direction?
C. When does the bug's acceleration equal zero?

If you don't know calculus you'd probably say "There's no way to know that", but there is a way, and it's simple.

The velocity function of the bug is the derivative of its distance function. The acceleration of the bug is the derivative of its velocity function. When we get those two functions, the question is very easy.

A. Let's find v(t), the bug's velocity function:
x'(t) = v(t) = 3t2 - 18t .
To find the velocity after four minutes, we just plug in 4 instead of t:
42 - 18 * 4 = 16 - 72 = -56 inches/minute. A negative velocity means that the bug is going "backwards", meaning towards the right edge (because we defined a positive distance as going away from the right edge, meaning left).

B. To find when the bug changes direction, we need to find out when its velocity is zero. That means the velocity is changing signs, and by changing signs it means a change of direction. We already have the function, so let's make it equal zero:
3t2 - 18t = 0
t2 - 6t = 0
t(t - 6) = 0
t = 0, 6

The bug cannot change direction at minute zero, since it did not have a direction before. That means the bug changes direction on the 6th minute.

C. To find when the acceleration is zero, we first have to find the acceleration function. We do that by derivating the velocity function:
v'(t) = a(t) = 6t - 18.
Now let's make it equal to zero:
6t - 18 = 0
6t = 18
t = 3

That means the bug's acceleration is zero after three minutes.

Don't understand a word of this post? Don't be shy to ask anything on this blog's comments or the super math tips.

Hope you learned something.
Yours,
Nadav

nadavs