2-6-10.mws

Spreadsheet in Maple

2-6 Use the spreadsheet in Maple to experiment with the 3x+1 problem

> f:=x-> if x mod 2=0 then x/2 else 3*x+1 fi;

f := proc (x) options operator, arrow; if `mod`(x,2...

> f(3);

10

> f(24);

12

>

23 17 10
70 52 5
35 26 16
106 13 8
53 40 4
160 20 2
80 10 1
40 5 4
20 16 2
10 8 1
5 4 4
16 2 2
8 1 1
4 4 4
2 2 2
1 1 1
4 4 4
2 2 2
1 1 1
4 4 4
2 2 2
1 1 1
4 4 4
2 2 2
1 1 1

2-7 How is the number pattern related to the successive derivatives of tan(x) formed?

> diff(tan(x),x);

1+tan(x)^2

tan(x) u
1+tan(x)^2 1+u^2
2*tan(x)+2*tan(x)^3 2*u+2*u^3
2+8*tan(x)^2+6*tan(x)^4 2+8*u^2+6*u^4
16*tan(x)+40*tan(x)^3+24*tan(x)^5 16*u+40*u^3+24*u^5
16+136*tan(x)^2+240*tan(x)^4+120*tan(x)^6
16+136*tan(x)^2+240*tan(x)^4+120*tan(x)^6
16+136*u^2+240*u^4+120*u^6
272*tan(x)+1232*tan(x)^3+1680*tan(x)^5+720*tan(x)^7...
272*tan(x)+1232*tan(x)^3+1680*tan(x)^5+720*tan(x)^7...
272*u+1232*u^3+1680*u^5+720*u^7
272+3968*tan(x)^2+12096*tan(x)^4+13440*tan(x)^6+504...
272+3968*tan(x)^2+12096*tan(x)^4+13440*tan(x)^6+504...
272+3968*u^2+12096*u^4+13440*u^6+5040*u^8
272+3968*u^2+12096*u^4+13440*u^6+5040*u^8
7936*tan(x)+56320*tan(x)^3+129024*tan(x)^5+120960*t...
7936*tan(x)+56320*tan(x)^3+129024*tan(x)^5+120960*t...
7936*tan(x)+56320*tan(x)^3+129024*tan(x)^5+120960*t...
7936*u+56320*u^3+129024*u^5+120960*u^7+40320*u^9
7936*u+56320*u^3+129024*u^5+120960*u^7+40320*u^9
7936+176896*tan(x)^2+814080*tan(x)^4+1491840*tan(x)...
7936+176896*tan(x)^2+814080*tan(x)^4+1491840*tan(x)...
7936+176896*tan(x)^2+814080*tan(x)^4+1491840*tan(x)...
7936+176896*u^2+814080*u^4+1491840*u^6+1209600*u^8+...
7936+176896*u^2+814080*u^4+1491840*u^6+1209600*u^8+...

2-8 How is the number pattern related to the successive derivatives of cot(x) formed?

> diff(cot(x),x);

-1-cot(x)^2

>

cot(x) v
-1-cot(x)^2 -1-v^2
2*cot(x)+2*cot(x)^3 2*v+2*v^3
-2-8*cot(x)^2-6*cot(x)^4 -2-8*v^2-6*v^4
16*cot(x)+40*cot(x)^3+24*cot(x)^5 16*v+40*v^3+24*v^5
-16-136*cot(x)^2-240*cot(x)^4-120*cot(x)^6
-16-136*cot(x)^2-240*cot(x)^4-120*cot(x)^6
-16-136*v^2-240*v^4-120*v^6
272*cot(x)+1232*cot(x)^3+1680*cot(x)^5+720*cot(x)^7...
272*cot(x)+1232*cot(x)^3+1680*cot(x)^5+720*cot(x)^7...
272*v+1232*v^3+1680*v^5+720*v^7
-272-3968*cot(x)^2-12096*cot(x)^4-13440*cot(x)^6-50...
-272-3968*cot(x)^2-12096*cot(x)^4-13440*cot(x)^6-50...
-272-3968*v^2-12096*v^4-13440*v^6-5040*v^8
-272-3968*v^2-12096*v^4-13440*v^6-5040*v^8
7936*cot(x)+56320*cot(x)^3+129024*cot(x)^5+120960*c...
7936*cot(x)+56320*cot(x)^3+129024*cot(x)^5+120960*c...
7936*cot(x)+56320*cot(x)^3+129024*cot(x)^5+120960*c...
7936*v+56320*v^3+129024*v^5+120960*v^7+40320*v^9
7936*v+56320*v^3+129024*v^5+120960*v^7+40320*v^9
-7936-176896*cot(x)^2-814080*cot(x)^4-1491840*cot(x...
-7936-176896*cot(x)^2-814080*cot(x)^4-1491840*cot(x...
-7936-176896*cot(x)^2-814080*cot(x)^4-1491840*cot(x...
-7936-176896*v^2-814080*v^4-1491840*v^6-1209600*v^8...
-7936-176896*v^2-814080*v^4-1491840*v^6-1209600*v^8...

2-9 Express tan(nx) as a rational function of tan(x) for n = 0,1, 2,3,4,5,6

>

1 tan(x) tan(x)
2 2*tan(x)/(1-tan(x)^2) tan(2*x)
3 (3*tan(x)-tan(x)^3)/(1-3*tan(x)^2) tan(3*x)
4 (4*tan(x)-4*tan(x)^3)/(1-6*tan(x)^2+tan(x)^4) tan(4*x)
5 (5*tan(x)-10*tan(x)^3+tan(x)^5)/(1-10*tan(x)^2+5*ta... tan(5*x)
6 (6*tan(x)-20*tan(x)^3+6*tan(x)^5)/(1-15*tan(x)^2+15... tan(6*x)

2-10 Study the number pattern associated with the indefinite integral of the function x^n*e^x

> int(x^n*exp(x),x);

-(-1)^(-n)*(x^n*(-1)^n*n*GAMMA(n)*(-x)^(-n)-x^n*(-1...

>

1 x*exp(x) x*exp(x)-exp(x)
2 x^2*exp(x) x^2*exp(x)-2*x*exp(x)+2*exp(x)
3 x^3*exp(x) x^3*exp(x)-3*x^2*exp(x)+6*x*exp(x)-6*exp(x)
4 x^4*exp(x) x^4*exp(x)-4*x^3*exp(x)+12*x^2*exp(x)-24*x*exp(x)+2...
x^4*exp(x)-4*x^3*exp(x)+12*x^2*exp(x)-24*x*exp(x)+2...
5 x^5*exp(x) x^5*exp(x)-5*x^4*exp(x)+20*x^3*exp(x)-60*x^2*exp(x)...
x^5*exp(x)-5*x^4*exp(x)+20*x^3*exp(x)-60*x^2*exp(x)...
6 x^6*exp(x) x^6*exp(x)-6*x^5*exp(x)+30*x^4*exp(x)-120*x^3*exp(x...
x^6*exp(x)-6*x^5*exp(x)+30*x^4*exp(x)-120*x^3*exp(x...
7 x^7*exp(x) x^7*exp(x)-7*x^6*exp(x)+42*x^5*exp(x)-210*x^4*exp(x...
x^7*exp(x)-7*x^6*exp(x)+42*x^5*exp(x)-210*x^4*exp(x...
x^7*exp(x)-7*x^6*exp(x)+42*x^5*exp(x)-210*x^4*exp(x...
8 x^8*exp(x) x^8*exp(x)-8*x^7*exp(x)+56*x^6*exp(x)-336*x^5*exp(x...
x^8*exp(x)-8*x^7*exp(x)+56*x^6*exp(x)-336*x^5*exp(x...
x^8*exp(x)-8*x^7*exp(x)+56*x^6*exp(x)-336*x^5*exp(x...
9 x^9*exp(x) x^9*exp(x)-9*x^8*exp(x)+72*x^7*exp(x)-504*x^6*exp(x...
x^9*exp(x)-9*x^8*exp(x)+72*x^7*exp(x)-504*x^6*exp(x...
x^9*exp(x)-9*x^8*exp(x)+72*x^7*exp(x)-504*x^6*exp(x...
x^9*exp(x)-9*x^8*exp(x)+72*x^7*exp(x)-504*x^6*exp(x...
10 x^10*exp(x) x^10*exp(x)-10*x^9*exp(x)+90*x^8*exp(x)-720*x^7*exp...
x^10*exp(x)-10*x^9*exp(x)+90*x^8*exp(x)-720*x^7*exp...
x^10*exp(x)-10*x^9*exp(x)+90*x^8*exp(x)-720*x^7*exp...
x^10*exp(x)-10*x^9*exp(x)+90*x^8*exp(x)-720*x^7*exp...
x^10*exp(x)-10*x^9*exp(x)+90*x^8*exp(x)-720*x^7*exp...

>