Saturday, September 19, 2009

2009/019) Pythagorean triplets.- trigonometric way

There is a trigonometric way of getting Pythagorean triplets.

we know x^2+y^2 = z^2

is homogeneous expression and dividing it by z^2 we get

(x/z)^2 + (y/z)^2 = 1 or a^2+b^2 =1

This is an identity when we put a = sin t and b = cos t

In case we chose a and b both rational we are through. But how to we guaranty that, that is how to choose both sin t and cos t to be rational. There is a way out.

That is by using double angle formula( writing sin t and cos t in terms of tan t/2)

We know sin t = 2 sin t/2 cos t/2
= 2 tan t/2 cos ^2 t/2
= 2 (tan t/2)/(1+ tan ^2 (t/2))

And cos t = (2 cos^2(t/2) – 1) = 2/(1+ tan ^2 t/2) – 1 = (1- tan ^2 t/2)/(1+ tan ^2 t/2)

So instead of chosing 2 expressions that is sin t and cos t we can chose tan t/2 as rational and so sin t and cos t both come out to be rational

Let tan t/2 = m and we get

(2m/(1+m^2)), (1-m^2)/(1+m^2) and 1 satisfy the condition and so

2m, (1-m^2) and (1+m^2) satisfy the condition.(a^2+b^2 = c^2)

But m is not necessarily an integer and by choosing m = p/q and multiplying by q^2 we get

2pq, (q^2-p^2) and (q^2+p^2) satisfy the equation and if p and q are relatively prime then we get triplet with no common factor and hence it is a primitive triple..

Multiply this by any other integer and we shall get another triple(not primitive)

Saturday, September 12, 2009

2009/018) Prove that (a+b+c)/3>=3/(1/a+1/b+1/c)? if a,b,c are positive real number.

we know

(a+b+c)/3 >= (abc)^(1/3) AM GM enaquality

(1/a+1/b+1/c)/3 >= (1/(abc))^(`1/3) AM GM enaquality

as both are positive

multiplying

(a+b+c)/3 * (1/1a+1/b+ 1/c)/3 >= 1

or (a+b+c)/3 >= 3/(1/a + 1/b+ 1/c) multiplying both sides by 3/(1/a + 1/b+ 1/c) as this is > 0

proved

Sunday, September 6, 2009

2009/017) A cute little integration to find the lower and upper bound for pi

Integrate

x^4(1-x)^4/(1+x^2) from 0 to 1

expanding we get

x^6-4x^5+5x^4-4x^2+4-[4/(1+x^2)]

integrating we get

x^7/7 – 2/3x^6+ x^5- 4/3x^2 + 4x – 4tan ^-x

x=1 gives 1/7-2/3+1-4/3 + 4 = 22/7 – 4 arctan(1) = 22/7- pi

x=0 gives 0

so definite integral = 22/7 – pi

now as the LHS is positive at each point integral > 0 so 22/7 –pi or pi < 22/7

now for the lower limit let us find the higher limit of LHS

x(1-x) is highest at x= ½ and x(1-x) = ¼

so x^4(1-x)^4 highest is 1/256

and lowest of (1+x^2) is 1

so integral of LHS < 1/256

so 22/7-1/256 < pi < 22/7

gives pi(which is 3.14159..) between 3.1389 and 3.142857

pretty good is it not ?

2009/016) If a cos² x + b sin² x = c, express tan² x in terms of a, b and c

a cos² x + b sin² x = c
= c(sin ^2 x + cos ^2x) (knowing that 1 = sin ^2 x + cos ^ 2 x)
= c sin ^2 x + c cos ^2 x
or a cos^ 2 x - c cos^2 x = c sin ^2 x - b sin^ 2x
or (a-c) cos ^2x = (c-b) sin ^2 x

or (a-c)/(c-b) = sin ^2 x/ cos ^2 x = tan ^2 x

so tan ^2x = (a-c)/(c-b)

Monday, August 31, 2009

2009/015) Find a Polynomial with integral coefficients of lowest degree with 2^1/3 + 3^1/2 as a zero

Let x = 2^1/3 + 3^1/2. You want to do enough algebra to make the square and cubes roots go away, until you only have integer (or rational) coefficients.

x - 3^1/2 = 2^1/3

Now, cube both sides:

2 = (x-3^(1/2))^3

we can use the formula

(A - B)^3 = A^3 - 3*A^2*B + 3*A*B^2 - B^3

to get

2 = x^3-3x^2(3^1/2)+9x-3^(3/2) = (x^3+9x -3^3/2(x^2+1)

or 3^(3/2)(x^2+1) = (x^3+9x-2)
now squaring both sides you get

27(x^2+1)^2 = (x^3+9x-2)^2
expanding it we should get the result

27(x^4+2x^2+1) = (x^6 + 81 x^2 + 4 + 18x^4 -4x^3 - 36x)
or 27x^4+54x^2+27 = (x^6 + 81 x^2 + 4 + 18x^4 -4x^3 - 36x)
or (x^6 + 81 x^2 + 4 + 18x^4 -4x^3 - 36x) - (27x^4+54x^2+27) = 0
or x^6 -9 x^4 - 4x^3 + 27x^2 - 36x - 23 = 0 after simplifying

Sunday, August 30, 2009

2009/014) sum of the reciprocals 1+1/2+1/3+...+1/n is never an integer for n >1

prove that the sum of the reciprocals 1+1/2+1/3+...+1/n is never an integer for n >1


let S = 1+1/2+1/3+...+1/n

because n > 1 so from 1 to n there is only one number 2^k such that

2^k <= n < 2^(k+1) that is the higest power of 2 less than <=n

2^k devides that number (as 2^k devides 2^k) and no other number

now take LCM(2,3,...n ) = p and mutlipy S by p

now 2^k devides p
each term of RHS except 1/2^k as denominator term is not divisble by 2^k gives an even number but 1/2^k gives an odd number p is not divisible by 2^(k+1)

so RHS = odd

pS = odd

so S = odd/p

p is even

so S = odd/even and hence not an integer

Wednesday, August 26, 2009

2009/013) Solve x^4+3x^3-8x^2+3x+1=0 for x

Generally 4th order equation is not easy to solve but this is a special case as this is symetrical that is coefficent of x^4 is same as x^0( and of x^3 same as of x)

so we devide by x^2 to get

x^2+3x-8+3/x+1/x^2 =0
or (x^2+1/x^2) + 3(x+1/x) - 8 = 0

put x+1/x = t to get

t^2-2 + 3t - 8 =0
or t^3+3y-10 = 0
(t-2)(t+5) = 0

t- 2 = 0 =>
x+1/x-2 = 0
or x^2+1-2x = 0
(x-1)^2 = 0

or x = 1 ( a double root)
2nd part
t+-5 = 0
=>x^2+5x + 1 = 0
x= (-5 +/-sqrt(21)/2 using (-b+/-sqrt(b^2-4ac))/2

= (-5 + sqrt(21))/2, (-5 - sqrt(21))/2,

so 4 roots are (-5 + sqrt(21))/2, (-5 - sqrt(21))/2, 1(Double root)