online advertising
Processing math: 100%

Saturday, November 26, 2016

Exercise from 9gag.com?

Problem:


http://9gag.com/gag/aVDxn1O

Solution:

Denote bottle by b

b+b+b=30, therefore b=10.

Denote the hamburger by h

b+h+h=20, therefore h=5

Denote the beer by e

h+e+e=9, therefore e=2.

Now here is the fun

2hbbsinxexdx=010sinx2xdx=50sinxxdx=5π2

The last integral is well known, for example, see:
http://math.stackexchange.com/questions/5248/solving-the-integral-int-0-infty-frac-sinxx-dx-frac-pi2

This video explains the Feynman trick!
https://www.youtube.com/watch?v=3LsXWPzlOhQ

Have fun!

Wednesday, November 23, 2016

Mathematical Analysis - Exercise 1.3

Problem:


Solution:

Suppose n=ab is not prime, then we can write 2ab=(2a)b. Applying the identity we just proved in the previous problem, we have:

2ab1=(2a)b1=(2a)b1b=(2a1)().

Therefore if a1, we have a non-trivial factor for 2ab1.

The contradiction show n has to be prime.

Tuesday, November 22, 2016

Mathematical Analysis - Exercise 1.2

Problem:

Solution:

The right hand side sounds like something we can telescope, let's see:

(ab)n1k=0akbn1k=an1k=0akbn1kbn1k=0akbn1k=n1k=0ak+1bn1kn1k=0akbnk=(an+n2k=0ak+1bn1k)(n1k=1akbnk+bn)=(an+n1k=1akbnk)(n1k=1akbnk+bn)=anbn

Mathematical Analysis - Exercise 1.1

Problem:


Solution:

Suppose there exists a largest prime, that means there is only finite number of primes. Consider the product of them plus 1. This number cannot be a prime number because it is larger than the largest prime.

Now consider its prime factorization. Note that when this number is divided by any prime, the remainder 1, therefore, there is just no way of prime factorizing it, contradicting the fundamental theorem of arithmetic, therefore there is no largest prime!

Monday, November 14, 2016

An exercise about Lagrange mean value theorem

Problem:


Solution:

This is a really bored after lunch hour, so I decided let's do a simple calculus exercise to wake my brain up.

The 11+u2 reminded me this has something to do with tan. So let's do this simple integration.

du1+u2=sec2θdθ1+tan2θ=dθ=θ=tan1u.

That's refresh my memory! 11+u2 is the derivative of tan1u.

Now we apply the Lagrange's mean value theorem to get:

tan1vtan1uvu=11+δ2.

Where u<δ<v.

tan1vtan1u=vu1+δ2.

Therefore we conclude (remember when you increase the denominator, the value decrease, and vice versa):

vu1+v2<tan1vtan1u<vu1+u2.

Last but not least, set u=1 and v=43 gives

4311+(43)2<tan143tan11<4311+12.

325<tan143tan11<16.

π4+325<tan143<π4+16.

Friday, November 11, 2016

Minimizing sum of distances

Problem:

Find m such that ni=1|xin| is minimized.

Solution:

The reaction is that the mean is going to minimize it, but it isn't true. The median will.

Consider a random m, suppose there are a numbers in xi are less than m and b numbers of xi are larger than m.

If we decrease m by 1, we change the sum by ba.
If we increase m by 1, we change the sum by ab.

Therefore, as long as ab, we can always reduce the sum, therefore, the only reasonable answer is the median.

This is for the case of odd number of elements, in case we have even number of element, any number between the two center elements would give the same minimal distance sum.

Thanks Sven for generalizing the problem, and Noah for the idea about median.

Tuesday, November 8, 2016

Some learning in algebraic number theory

Recently I have been reading about proving the algebraic integers form a ring, so let me get started about some simple definitions.

A field is called a number field if it contains Q.

A number if called an algebraic integer for a number field A if it can be written as a root of a monic polynomial in A with coefficient in Z.

The fact that the algebraic integer form a ring is surprising (to me), it is obvious that 2 and 3 are algebraic integer in Q(2,3), but why 2+3 an algebraic integer, or in other words, what is the monic polynomial that give root 2+3?

Turn out the key idea is this polynomial:

(x23)(x2+3)(x+23)(x+2+3).

Obviously, this polynomial is monic and has 2+3 as a root, but is it in integer, the answer is YES! If we expand this thing, it becomes:

x410x+1

To verify that, we can put this in wolfram, and wolfram solve the solution as ±5±6, does this value sound familiar. If you read my post about denesting the radical you can just recognize this is basically ±2±3

So we have some luck? No, turn out this trick will ALWAYS work because of the theory of symmetric polynomial.

Consider for a moment that we replace square root by variables instead, we have something like this.

(xa1b1)(xa1b2)(xa2b1)(xa2b2)

Expanding this thing is messy, so we will not do that, the key idea is that we can consider this as a multi-variable polynomial in a1 and a2, and more importantly, it is symmetric, such that swapping a1 and a2 does not change the polynomial itself. Notice the x and the b are not going away, we are simply considering them as coefficients by now.

By the theorem of symmetric polynomial, we can rewrite this polynomial as a polynomial of the elementary symmetric polynomial, and viola, because the value of elementary symmetric polynomial is basically the coefficients of the minimal polynomial, they are integers. After substituting the equation with the value of a, we get an expression with integer coefficients of X and b.

We do the same thing to the b and finally we get an integer polynomial equation in X containing the root we wanted!

Monday, November 7, 2016

Conditional Probability

Problem:

Suppose a family has 2 children, one of which is a boy. What is the probability that both children are boys?

Solution:

The reaction is 12, but that is wrong.

Let the event A be the event that we have one boy, that event should be BB,BG,GB, this event has probability 34.

Let the event B be the event that we have two boy, that event should be BB, this event has probability 14.

By the definition of conditional probability, we have:

P(B|A)=P(AB)P(A)=P(B)P(A)=1434=13.