09hw2sol - , f _ A f 7 (WA/2 seLUT/oms~ -—~ Sgavybg,...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: , f _ A f 7 (WA/2 seLUT/oms~ -—~ Sgavybg, /.//m>y ‘0’1 But/"veg A 5M 15% I.» (m I . :0: flow; Fifi) T'* W a we '0' : To «a “ m) so efir 1mm + C r \ \‘\~\\. 5° z T; + TD'E)-e:ht Ie “ T! \c L‘T : 146(6) fli'rifl : Ll +0 “fad Ia aw mi; (Miami SM}; 4” 1.410 So (L '6‘0/ 50 6‘4 _ 6 1'1 6 Le 50 @thsls + Wefu‘ "’ S: 66) awake: '“5 + o e #111? (‘5 athamblg print/(3: @(6) WW» T4) / .. 7%!) Y’ (1-4,)“ _ a“? fill-WWI?) 5° SEMI, fiyu'ééfi‘m Iv" IA" *0 . <22 Qgs'dc'fin‘hn fold; L M56 g Q q, \ 4: 2 if, 3° iéw>£owkérw W? W 9 m z 0; ma (‘5 div/3y f I. [f {2414;ch ‘ \ 1 W A“ >0 to v} 501v: f» (m mértoff); = O 3 (“*9 v 4qu we 715) (Mm: fffiI") <0 Sc on; $3 - WW4 Liflmtfiai “ML . 19.61% @212 A a «(3% I“ W 0 so 3+4A+’>C«Is :9 I w ,‘ >9 ‘ 50 :Zim 54,1111, me‘s ) L2X%/nvl ./(.\-\ ea . D, f“ /7fl,,v7_ é‘mikfm) Pr»: Q if; fl Eli-13:37 ’LHfi—fl G <%.<‘>z = , mac-LL MAL WM- Amide [fa—(S {*5 Q érA.‘(>cz an: Mun: Z. LT, £(jcnmll7‘d m 1=2 67%;“??? A‘gl = l) MAN/L. (445 flim t (I R: my egaflucg. 9cé '- ¢ c) fie/ Loin/mam ) @500] “daft-I'LL». ‘ ‘ I I "‘ ’ 577a (40¢er 4/)?ng £0; ~ - - «WW; / Mom: 2'4me ez/mg m5: Accéi'gfgi} : ' “1‘9 1 «4W v *5 tmwyiw 31 bar-Mm ayu +3 cemcam‘m M 7‘ T (f (’7‘ [ v! z I] 66 Wk if [:7 Ina/y DUN/1’? QM J“ 917‘” 554195 rid: “away 4'7 Win74 '3 fyfifin Ada 4075/77 914% JlLB 50"thth (6‘06: 4. 3K3 I m/& Wk 5 {0 {39 r ’4 “’7 :5 releah AEEMQ— ‘65 1 f 1% 056, Pefl\fi( flvm . k. @944“ y ‘// : ~ (1 .9 R, “405 57 a a W i w 2w??? w “a fur 3/? + iL \//r,/ 4: \ _ Q SW1 tit ¥ M £7 3 “ 50 z a <4 ( Luv (3 c I / 8.70) a 0 K m V“ - mu m @fl W of 9 Ig-r/ “ML WMML ’t w 17!. M “VFM‘X "a "10555) (764?: gaff; w ,fl ,1 #LL/ \? (21/2 ’ MO I» Q W‘IIY'L L1,”- Solw‘ ‘6 m ~ f ,; ,4 ‘ 0mm. ' « . WW“ “W “W”? J (14% V“. HOG” ‘4 } salwf" ma gp“ C, :19 C1: 774M: 1‘5 SWIVEL 01 ('0 3113‘ (hi? joints“ m " \ K 5M“ gaunt! we '3’ {a («MW ‘5'th white ' ‘5 WWWJ Mo M.M{-q9 M 19""190 [ Saw: (a :7 up + w, ml: 095 +0 my Mr; A» I If . ._ ‘ Na + w, + " Ma v Qt“ ‘ '~; ‘1 git”uo fl, €?é"uf 4, _ “I Q ‘2: ; urzu = t : ~f () , no figf///w’r duty r415 €073,414, M1; 4 film “W, 6am Alli-eff + gé’efr jaw (Liv/2:“. to) 5" “13'” "$445 [I (m ” ‘ MW 9 ~ 6 ;. ,v (m / C) 4&5‘ + Asia? + (M’s)e-* + 644—8) 5 « Bert So 0176f» u. Lemme: - xfl-éi’éff4- («4A a“ + @A«£B)5‘L ‘1 '* a 59 821% M ,4. z -75 1/ 6%. 5.3!", few u. .3 q‘flz)‘ ~7PL6fe’f4Lge/“9 4 C,e'lL + C265!“ IC: ( u. 401: (See WIULezH bofkgm M:(o)=(O/g(.g,’(o)=»o. 1mm Cu=~J/E, 62; 1 V5 [WWW @ dank] Lizrti aant {3; fflfi4“ (H/fi‘} AMAL Er: {1 fulfil/“VJ " 3' i M flsd ~ *" :‘VHL C‘flfl’s ?{.¢t L15 ‘ 5751132 [4 '? % y”6§(y = eps.ty ..... convert to 1st-order system y1’=y2, y2’=y1(1+eps.t) eps = 0.04; f = ©(t,y) [y(2); y(1).*(1+eps*t)]; y0 = [1; ~11; tmax = 5; [t,y] = ode45(f, [0, tmax], yO); figure; plot(t, y(:,1), ’k-’); xlabel t; ylabel th); Z construct a vector func to rep ODE Z check your solution yO = exp(-t); % zeroth—order y1 = -(1+t).*t.*exp(-t) / 4 + (exp(t)-exp(-t))/8; % first-order ya = y0 + eps*y1; X 2-term approximation E = Y3 ‘ Y(1:1); % error vs time figure; subplot(2,1,1); % allows you to put multiple plots on one figure plot(t, [y(:,1) yO eps*y1 ya], ’-’); % plot the 4 curves asked for xlabel t; ylabel y(t); legend(’y’, ’y_O’, ’y_1’, ’y_a’); subplot(2,1,2); plotCt, E, T=3; v = maX(abs(E(find(t<T)))); axis([0 T —v VJ); print *depsc2 p100_ex2.eps ’s’); xlabel t; ylabel(’error E(t)’); % trick: zoom in correctly % make a printable file Mile (W O 05 1 15 2 25 t 5044:” @W “5 ,( wg‘cc Agni, A H $541" MC.“ “(fifty 0 60%? fv anj {Lfi,«émLu' «M €.. W 1 &M 0%»: z+w +%$x “fifihw 05g X w it __ a f It ( _€ \ éo'vew L , i J 23 éx) mg n #ojlflp...) ? m c ~7/z- 50 (59,9 - i b 3. ‘Z‘yo + 92% + (2% + )1 + r = l -~ @530 + 3. + 01 £2 if 0 2'3) 1 @E r/ ' / *7— ‘ L! ’ ” C. ‘4' (15¢, Inflowli «J Q‘LI‘VO {Wu 7411 he W we! Hg! 3 ~ I + 2.6% ~ 3221? + 0613). Ly ) / . Lu! 4: {I ~€ €411 '5‘ «I {— Z9 (Lo+2l1, b 630.0 f...)?—+~ We” rm 9f {z t‘fifi o ‘ M, a, w ‘ g/ z, , ._,/ (we hug.) :‘gfuqir‘fé :65 a:{ / 5:0 5‘7 “0(6) = f-* , a ‘ qambié Wm M fit mg 50 I’M/(e) I fit“ 5/ f 7/ D :0) fl am we. Wm Lafié F 3 *‘751 Am- %-%+% 06%) In: = m». a mi; - fig? ~— #6 I Mt”: " = rgét + l/éég 141:5 57” MW; 4%“ w/ ms :45 gm ,0 mg) : 7&5? A5669 35%; ‘ aw um= E«%+i%<%+€“%+&g—%@+fi~ “mefuw- o Hrs mam a} 15= 6m ) ie I- z: + 2651— : O SLIM. 1’? {*6 zw so ix + €(l + QEK +N_ v \ 2%,”) :_ 0 => M: ) 15 > [+ 1L§€+ 5qu eh m me) #741“ 1W h(l+%2+»~) = 137:2 ~%.—%i~v é a!» Mail-n é if? 1.5 W If £2?) (git—:7 @1114 lbw/i I1 Sara eVu‘wlaJ/éy IV; if}; —-—7—~5‘g / + ‘ . j ’14 6’1 2: *6 ~€ Q/Izn‘é' locu!’ [ME 3 0(6) 5‘37?» w“ L: = Z6: = '45sz I f: ' 194;“ ‘6 I {I I I {C {( ‘44 -+ W - ‘1 ‘1 tr _ ~._ 7-. H! I Sly-€765 Lug {Lou ’ 11'}?th ‘{ 0(a); 70 Qcéb [94%. m5 Aug. 1% inmfla I'ng'w PM?ku ‘ r"\1 W46” at” (I’M 614‘ (M .é—Z— : j [M 2(— 1 ’2? t O (smafiw‘) 42.10:: (fl {~m a? {7-495 6+ 6 \ (14)!) : f—x—lOM) 3 '2 4‘; $' A w .—. /r 27 4 2— - w M ,,, W BMW/(19v EVL 7/ (/1 ‘H (j N n I C/ / {WM e; £0 -——-—~\ 1 ‘i __g,/_ - '9 (769.36 61/2 4 Oéqj ZE + 1 Z? 1(l ‘6 0(QIJ) -3,‘ _cmi0 fwwkflzslv7 " So (XV—=0 {rm " <0 '{w fi‘n/A LL“ 5 fill“: / 01%:‘2’5’ 5%: Ham we “ck [yard (54"; L) 31 Fem ‘ 5,3,“, fa Mmfliék . thhd )4 #4“? (E Magi, afléo" ’7; dr fiX‘Dj a”, 4&4 rH/ A aré‘zl‘fl/Z W :7 0 ea) dfifiuy‘bl' 1'9 5‘9 *3 A mbic {m [4va EON) (Mt/Md .. '(“*\3 é—-fi5 ugwlvgt My “fifi “a 6/ @ fi' m5; 7)“ m f0) I p. aoasz‘m fi@ « j ' ,, ‘ / Z. , g; L". ("‘3 @8594“ f} w ’ 53/" ‘69! 155‘ 6 C) ( / Q (g) g” “‘41:th fig 0 + g a o ; C9 m‘ m 14:! " 5’0 5”“ “J” «7 «7 9 hi . 36;) A St we gs says : (/0519 . "Csz [45% w:l+zw.+ p37. (hypo WM? 24’ 9‘5" “‘4 0376'- tfitfl" -F 3 v if}! (“53.) “W 1‘ W“ F 4’? 1 I If" a m a; iw,..,>z(3qu 1L iv,” .9 (ya +iclu. = <5 270+iy‘v-)G+2w,~)@b+zaf) /. Sui) E33 1 3/1” + 3?, = (05’? 54%: ’ aw’C’caS’g 60 T ( , Mkflatwb 7L0 £— Wee, 5c,“le Slim/ac '2 Mata“ W‘ AM ‘ h a . 1'? I (6 giant} (L145) M fivyo, Sn W ( "55W ‘0 “J y 61 JV (as j . MT ‘23 1 ' ‘ ‘ ‘ ' hiva (0‘41! m S ) 505 C651— Sfiflif a£é€¥67+ 6513(617“ évi’lj’l. 5% a“ +C)—2)ej?+ (*l+’)€;if“ 53%] _ k I —«?4953’C +ngs’Z‘ 50 Jfleore (AI = "% {E orme éGfliér‘ 605? g" F" Afm‘urpyh m m MlflqmeCQefgs: g'I/‘L a, : “1/4c053?“ 316?) = Acong so +14 7' “z. 50 A”; ELL \ 3"” = "M063? ngfl 7f; IMP/L fit 1!; #3 165 (fifl‘fl‘ffiltg : 3:6)” €605 3? 1L CQQS?*£2§;MT o C : Vi“ :‘ m» = ~3%-(wa3'r ~ as?) S ‘ 31 ’ ‘2 Q . WW w ° “5’? “L a“? ‘ “"9 W’W flmwkfl.flw—-—~.w_hq > _ ' ~ ...
View Full Document

This note was uploaded on 05/05/2010 for the course MATH 046 taught by Professor Alexbarnett during the Spring '10 term at Dartmouth.

Page1 / 7

09hw2sol - , f _ A f 7 (WA/2 seLUT/oms~ -—~ Sgavybg,...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online