[npl] / trunk / NationalProblemLibrary / Michigan / Chap9Sec5 / Q15.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/Michigan/Chap9Sec5/Q15.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1479 - (view) (download)

1 : glarose 964 # DESCRIPTION
2 :     # Problem from Calculus, single variable, Hughes-Hallett et al., 4th ed.
3 :     # WeBWorK problem written by Gavin LaRose, <glarose@umich.edu>
4 :     # ENDDESCRIPTION
5 :    
6 :     ## KEYWORDS('calculus', 'integral', 'series', 'power series', 'interval of convergence', 'radius of convergence')
7 :     ## Tagged by glr 02/08/09
8 :    
9 :     ## DBsubject('Calculus')
10 :     ## DBchapter('Infinite Sequences and Series')
11 :     ## DBsection('Power Series')
12 :     ## Date('')
13 :     ## Author('Gavin LaRose')
14 :     ## Institution('University of Michigan')
15 :     ## TitleText1('Calculus')
16 : glarose 1205 ## TitleText2('Calculus')
17 : glarose 964 ## EditionText1('4')
18 :     ## AuthorText1('Hughes-Hallett')
19 :     ## Section1('9.5')
20 :     ## Problem1('15')
21 :    
22 :     ## Textbook tags
23 :     ## HHChapter('Sequences and Series')
24 :     ## HHSection('Power Series and Interval of Convergence')
25 :    
26 :    
27 :    
28 :     DOCUMENT();
29 :    
30 :     loadMacros(
31 :     "PGstandard.pl",
32 :     "MathObjects.pl",
33 :     "PGchoicemacros.pl",
34 :     # "parserNumberWithUnits.pl",
35 :     # "parserFormulaWithUnits.pl",
36 :     # "parserFormulaUpToConstant.pl",
37 :     # "PGcourse.pl",
38 :     );
39 :    
40 :     Context("Numeric");
41 :     $showPartialCorrectAnswers = 1;
42 :    
43 :     $a = random(1,5,1);
44 :     $ad = ($a == 1) ? "" : $a;
45 :    
46 :     $which = list_random(0,1,2);
47 :     if ( $which == 0 ) {
48 :     $ser = "$ad x + " . (4*$a) . " x^2 + " . (9*$a) . " x^3 + " .
49 :     (16*$a) . " x^4 + " . (25*$a) . " x^5 + \cdots";
50 :     $r = Compute("1");
51 :     } elsif ( $which == 1 ) {
52 :     $a = 2 if ( $a == 1 );
53 :     $ser = "$ad x + " . ($a*$a) . " x^2 + " . ($a**3) . " x^3 + " .
54 :     ($a**4) . " x^4 + " . ($a**5) . " x^5 + \cdots";
55 :     $r = Compute("1/$a");
56 :     } elsif ( $which == 2 ) {
57 :     $a-=2 if ( $a > 3 );
58 :     $ad = ($a == 1) ? "" : $a;
59 :     $ser = "$ad x + " . (4*$a*$a) . " x^2 + " . (9*($a**3)) . " x^3 + " .
60 :     (16*($a**4)) . " x^4 + " . (25*($a**5)) . " x^5 + \cdots";
61 :     $r = Compute("1/$a");
62 :     }
63 :    
64 :     TEXT(beginproblem());
65 :     Context()->texStrings;
66 :     BEGIN_TEXT
67 :    
68 :     Use the ratio test to find the radius of convergence of the power
69 :     series
70 :     \[ $ser \]
71 :    
72 :     \( R = \) \{ ans_rule(15) \}
73 :     $BR
74 :     ${BITALIC}(If the radius is infinite, enter ${BBOLD}Inf$EBOLD for R.)$EITALIC
75 :    
76 :     END_TEXT
77 :     Context()->normalStrings;
78 :    
79 : apizer 1479 ANS($r->cmp() );
80 : glarose 964
81 :     if ( $which == 0 ) {
82 :     $soln =<<EOS;
83 :     To find \(R\), we consider the following limit, where
84 :     the coefficient of the \(n\)th term is given by
85 :     \(C_{n} = $ad n^2.\)
86 :     \[
87 :     \lim_{n \rightarrow \infty} \frac{|a_{n+1}|}{|a_{n}|}
88 :     =\lim_{n\rightarrow\infty}\left|\frac{$ad (n+1)^2 x^{n+1}}{$ad n^2 x^n}\right|
89 :     =\lim_{n \rightarrow \infty}|x|\frac{n^2+2n+1}{n^2}
90 :     = |x|\lim_{n \rightarrow\infty}\left(\frac{1+({2/n})+({1/n^2})}{1}\right)
91 :     = |x|.
92 :     \]
93 :     Thus, the radius of convergence is \(R=1\).
94 :     EOS
95 :     } elsif ( $which == 1 ) {
96 :     $soln =<<EOS;
97 :     To find \(R\), we consider the following limit, where
98 :     the coefficient of the \(n\)th term is given by
99 :     \(C_{n} = $a^n.\)
100 :     \[
101 :     \lim_{n \rightarrow \infty} \frac{|a_{n+1}|}{|a_{n}|}
102 :     =\lim_{n\rightarrow\infty}\left|\frac{$a^{n+1} x^{n+1}}{$a^n x^n}\right|
103 :     =\lim_{n \rightarrow \infty}|x| a
104 :     = a |x|.
105 :     \]
106 :     This must be less than one, so \(|x| < 1/a\), and our radius of convergence
107 :     is \(R=1/$a\).
108 :     EOS
109 :     } elsif ( $which == 2 ) {
110 :     $r = ( $a == 1 ) ? 1 : "1/$a";
111 :     $soln =<<EOS;
112 :     To find \(R\), we consider the following limit, where
113 :     the coefficient of the \(n\)th term is given by
114 :     \(C_{n} = $a^n n^2.\)
115 :     \[
116 :     \lim_{n \rightarrow \infty} \frac{|a_{n+1}|}{|a_{n}|}
117 :     =\lim_{n\rightarrow\infty}\left|\frac{$a^{n+1} (n+1)^2 x^{n+1}}{$a^n n^2 x^n}\right|
118 :     =\lim_{n \rightarrow \infty}|x| a\frac{n^2 + 2n + 1}{n^2}
119 :     =\lim_{n \rightarrow \infty} a |x| \frac{1 + 2/n + 1/n^2}{1}
120 :     = a |x|.
121 :     \]
122 :     This must be less than one, so \(|x| < 1/a\), and our radius of convergence
123 :     is \(R=$r\).
124 :     EOS
125 :     }
126 :    
127 :     Context()->texStrings;
128 :     SOLUTION(EV3(<<'END_SOLUTION'));
129 :     $PAR SOLUTION $PAR
130 :    
131 :     $soln
132 :    
133 :     END_SOLUTION
134 :     Context()->normalStrings;
135 :    
136 : gage 1325
137 :     COMMENT('MathObject version');
138 : glarose 964 ENDDOCUMENT();

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9