severdevon_900012_53808844_HW 10.

pdf

School

Arizona State University *

*We aren’t endorsed by this school

Course

93344

Subject

Mathematics

Date

Nov 24, 2024

Type

pdf

Pages

12

Uploaded by BailiffPelican2900

Report
10.1 Application: Finite Difference Rules 306 3 pts Go back to problem 9.4 (from your last HW) which had data for the f height y; (m) of a pumpkin as a function of time t; (sec). S 3 T a) Use the 3-point centered difference rule to calculate the acceleration (d?y/dt?) of the pumpkin at t = 1.5 seconds. (Compare 0 ' - o) this value to what you already know the acceleration due to gravity should be in m/s2.) b) Use the 4-point backward difference rule to calculate the acceleration (d?y/dt?) of the pumpkin at t = 3.0 seconds. Hint: you can find this rule in Table 8-1 (pg 318) of the textbook, or the back of your “Class 30/31” handout. c) IF you obtained and used measurements every 0.1 seconds (instead of 0.3 seconds, like in the table of data), quantify how much you’d expect the error in your acceleration calculation from part (a) to change. Time, t; o) S Coreed Differevce Pule KRN el ‘f"(x,-) - e T e ‘O(”z’ 0 32.2 2 0.3 33.0 accelecotiv, : ( need 2né cle/h/w‘l‘(\/:—) l,] < ,f;al - -2——9 = i ie n-\ [\-1\ 15 0.6 32.8 0.9 31.8 Noe s 1.2 29.9 3 _ ) *_ 3 < - ! = f “F "( ) - flx‘- l) Z-PO(.) \p (XH- \3 1.5 271 Xl L\z x -1 = 1.2 18 23.4 Xivy= |3 2.1 18.8 '(‘zfl;) = f_(@ - Z—i(l.zd “‘(‘(1-33 : 173..14 6:> 3 0 299 - 2(7) + 224 B 1 £ ”[1-5‘) v £ 05 = -0 Ky =18, €)1 cluse e 1o Ao Fovndtd vorsn of R grns
\9\ H ot = backmd differene rule Four-point backward ., i _3) +Ax; o) = 5f(x;_ ) + 2f(x) 2 difference ) = . O(h") acce lecotio, : ;_17 (need 2.4 AUNNH\/;) i—l} 'F"[XEB c -—HK"J\ * LI‘FO("TB _L-(X.'—\) N Z'(\[Xi\ h'L oy - £ ‘\%.fll-fi‘(m + 26G) G €6y - -~ 184 * ll(l3.15(;i(7-\3 + 2(v) {,u(-s) - -7'777 = —7.-78“/51. Rgrav + = 2€0, €0:Yys 778 "‘/“ -F 0(5\ < Ok.fm/ Or‘.JIN»\ L, nz I Nev h , n= 3| (Sfu-pk oy A 66:) J - '}——9 L }. 3-0, .3/ -;.l— b= o-1 1 W= 35, T 3 b L < ‘/\D = 3 W chenges Ln’ old h 3 Theee ¢t Gern| Ifvece has emiv 5 , So emov C\w\fies LY 0{ 3") Fom— Qegeet By o fudoe o6 7! ( Essentially mubiplied by -.!,-)
10.2 Fundamentals: Taylor Series 2 pts This is the equation for the Taylor Series expansion of f(x+0), as a function of f(x) and all its derivatives at x, that will be given to you on your midterm and exam cheat-sheets: ! 62 r 63 "’ 64 nr f(x+0)=f(x)+df (x)+7f (x)+§f (x)+Zf (x)+-- Start with that equation and use it to derive the expression for f(x; 5Ax) (i.e. f(x) evaluated five nodes to the left of x;) as a function of f{x;) and all the derivatives at x; (up to the FIFTH derivative). {= Sax o’ ot fx+8)=f(x)+6f'(x)+ ?f”(x)+ ;f’”(x)+ Ef””(x)+--- i \(\(x - §4x\> ‘{(Xf-r> 2 (5] 3 'péxfi —(g“"\'{'("fi) +omg s FU) —{52‘3‘1""/(&7 + 24 i ‘C(V.-r) * ‘Q(x;) - 55,,-?'/;(‘.\ + Zglflxz\c”(x;) - %A:\C'"(x.-) - éz?;[; A:*L’%X:) _%A:‘F&-)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
10.3 Application: Error Order and Precision 7pts The following is a 5-point difference scheme, over equally-spaced x;, for d3f/dx> at x = x;: 1 f(x) = E(f” =6, +12f, =10£,+3f,,) + Error Write out Taylor Series expressions for each of the four fi.3, fio, fi1, fi1 to the FIFTH derivative, like you did in 8.4, and then combine them using the given difference scheme above to ... a) Calculate the discretization error order (i.e. write the error = O(Ax?) for some integer p). b) Calculate the precision of the scheme. ) 7& q A )(3 lll( _G"”[ 7 %\ 43&;— _€llll l[- g[,z = /(x:fi-m,cfi(x;)+ k) 5 ’(-5* o ) .F DAL 7.0 ¢ m/( 4 Axl_ Y. —_— ! A* » 1 J;-l = /l(.') "'24;&'6[/.‘) + tc (A’} - .p"(‘ > + 2 {‘ 'fi) Ic 'F [Y.‘) [ - ¢ €o) v fy o 8 s ool o -1 T () ~— A= %) - (x) - 10"'(,\,’,) + 24 ) o £ ¥; ;:-\I = ‘F{m) + dxf'&’:) Y s " . flx; 1 Ax " - + Bx v ' 14 €70+ 24{&,‘) t ( CUVV\-LJ\\L : z—;:% 'F.’—; - é{i—z + ll“p’._l 0_('. + 3‘(‘\4—\ 4+ evror ( f‘p&(;) =Y 2Ll - 20 v —2(-0) + i) + 1 (3) = o 2€16) - 200« 26« $n) ¢ 16) = o %) = T L) ¢ M)« Loy - 2 I4 2670n) s B ) g+ Ly =0 ) R0 R L) by - 2 no houg 2,07 vzl e, Wi/ i{#,._; B O /T A Sfi\} T IOMM c 04l le) 20247 (x) + Oate™ () + Lt (x.-)’}
Lo bems ot c0h <36, £ (%) - ‘Aj—i‘[""'&c) VA A ),1 z _(\ [)4) = é{; _( (A/) + Eyreovc 0\3 Evwor Ovder: &Ca.) ol whath e bwle by J03 Q;-ec'\f((n—\ . S"‘~<—~L ervror VS é—(&(") | Oredisn~ ¥ CmLccl. {"fix‘;* bt vl s d £'e an® by £'= 0x v b f'"s a— fux geesn e"'s O
10.4 DERIVING difference formula for ANY order derivative to ANY error order 7 pts Use Taylor series expansions to derive a forward difference scheme, over equally-spaced points, using any or all of f;, fi.1, fiu2, fir3 and fis that approximates d?f/dx? (2" derivative at x;) to order (Ax3) discretization error. Hint: DON’T write a Taylor Series for f;. f;is justitself (or just written as f(x;)). There’s nothing else you can do with it! Only ever create Taylor Series expansions for points other than f;. Show all your work! Write all appropriate Taylor Series out, and describe your goals what terms do you need to keep, what terms do you need to eliminate? If you follow the methodology from class, you should end up with 4 equations for 4 unknowns (i.e. coefficients a, b, ¢, d that you're using to weight each Taylor Series). It’s fine if you then use MATLAB to solve for them you should get nice “round” fractions in your final scheme. A;L\L,_ = ICH(X;\ + 6 @/[fl.x?) X Tr7 Cté\ +\ + L-(:\ + 2 + CR +3 + é-€| v 4 A tin SR £ ey = Eliminsite AK'FI ‘I‘QV'M | a <+ 2 L + 2 ¢ d4 l-ti = O T8 \ €aN Nk Keee AT e I fLL*%C*_%A___\ l1@/‘1(1 e we 2 Ebminade g Mo Lo V Sha + 2. gszc S . 3,2 \ [! |‘ Ax T = " 73 ) Ax;,_ 3 keep /.S‘f’ e \ Fl_;\ '\-_,";'__L+ %(_ 1"_07%& . 7 j-—?fi\\sk resnbls f e ek A Use MATLAGE +H Sibe: 'F’I(x'.) = ‘€ " T’gi\-l +%’€+7_"|;L€:+3 * \“\%_‘Fa-; + 6‘(,1)‘3) (Voke* £. L= brbrexrd () . 5?}-(3 \_/\A/X\/ W\/ - = 20 1 1z It . d di L . ‘c’ ('{ (l- '{‘VW t’f@m ervor coeft a{ks,hg N Scture o ! © T = ) e ) Y - e = £g0 " 35 [ 26 i A A { (’() ! '€' 2 Ui +l:7‘€+7_ "l;_”gu-z * \‘\‘1'_‘€;+; - —%Af(""'(x3 e A
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
10.5 Fundamentals: Characterizing ODEs (Chapter 10) 6 pts For each of the following three ODEs ... i. characterize its order (e.g. 1%*-order, 2"%-order, etc.), ii. characterize it as an IVP (Initial Value Problem) or BVP (Boundary Value Problem), iii. write the ODE in standard form. (A) qer=r%+\/z’—7q, q(2)=0, q'(0)=1 (B) y(j—;)=sin(x)+dfiz3), x(—4)=1 r +dt2 dr’ dt copda, |40 0V o) g(0)=1 Ay e =rte [0 )0 g (o) I\\ SQLW\.A order| J 7\\I‘BV\, L} {_j;_‘ term H\ J Ottereit tives —s qy=o , 9@ - i) ot g - # (e i) bv* dr lewike as: - s > Take Aff‘\“"H\" (fé} }’(—)=sin(x)+ Sj), x(—4)=1 £ivet < A(K?) _ _i_ 3) (5 e () 3fié&\ b é»{ ;xz A)( NIl Jven by _dx . de N \ T,ivia | Valwe brollen | Only 9Ven one iwkial value
mn \ Shindod G dx = 'E ()’, Sia (x)) Cencide ar x Y T 3 W dx S-3e] com & bx = SnCXB © i o e 1) T oréerj'j,\,mJ,Y %’;_ Fermm H\ J' 3.\1\%\19\1 X(3)=3) <' (3 =1, x"(3) = | (s ) i ) Stunded Pows o5, 5 TR ; S (LX__?_ = &t \ X &'& A'L% *
HW10 (10.1 - 10.6) due Monday April 17 10.6 Application: (Single-Step, Explicit) Euler Method to Solve an IVP . - dT ' 43 1t . 5 pts You want to solve the following 1*-order Initial Value Problem: =—-—4 ———— withthe initial condition T(t = 0) = T, = 30. dt 18 45 300 - Why?? Because your manufacturing floor is at an excruciating T, = 30°C (about 86 F), when you . turn on the air-conditioning. What you want to determine is how long it will take to get the room " temperature down to 18°C. The room has a volume V = (10m) x (20m) x (6m) = 1800 m?, so - knowing the density of air = 1.2 kg/m? there’s m = 2160 kg of air you need to cool. - Your air-conditioner can only Q = 14400 120t provide 120 kg/min of cold air watts of solar heat \\ . (at Tae = 10°C, about 50F). That m = 2160 kg of air, initially at T, = 30°C will mix around with the air in ::} Room temp . the room, so an equal amount . ) _ ' L m = 120 kg/min of =T(t) . of air will leave the room at ) : cold air at T, = 10°C - : whatever .the ter:nperature of m = 120 kg/min of - the roomis. Let’s call that T{t). room air leaving at T{(t) - That all wouldn’t be too bad, except the sun is still coming in the windows, putting in a lot of heat! - It’s near the end of the day, so the amount of solar heat is dropping off with time, according to the . formula Q = 14400 - 120t, where t is in minutes, and Q in Watts (so it will be at 0 after 2 hours). . So what does all this mean? You'll learn in a Thermodynamics class that the temperature of the ' room T{(t) will go up and down as the thermal energy in the room goes up and down. The solar - heat raises the thermal energy. The difference between the cold air in and room-temp air out . lowers the thermal energy. The “energy balance” is given by the 1* order ODE dT m ( dT . . : . . me—=mcT, . —mcT +Q , which can be rewrittenas = TC.—T)+Q dt dt m 4 mc - The “c” in the equation represents the “thermal capacity” of the air (how much heat it takes to . raise the temperature of 1 kg of air by 1°C). That’s known to be 1000 J/kg°C. When | plug all the * values for the problem in the equation, and convert units so I’'m working with time (t) in minutes, | - get the equation | started with at the top of the page! So let’s get back to that (since, as you - probably figured out by now, you didn’t really have to understand anything in this “Why??” box to . solve the problem). ................................................................................................ dT T 43 ¢ (a) Use the (single-step, explicit) Euler method to solve the 1*-order IVP —— = - 4 —— where T is the temperature of the room (in °C), and t is time (in dt 18 45 300 minutes). Solve the problem over the range t = [0, 40] minutes, 7(0)=30 using step size At = 10 min (i.e. calculate T, at t,= 0, t; = 10, t, = 20, t; = 30, and t; = 40 minutes). Show all your work in table form, like we did in class, showing how you start from each (t;, T;) to get the next t;,;, “slope/”, and T,;. (b) Make a sketch of T;(t,) (i.e. draw and connect the 5 dots), and comment about what time you think (if ever!) the temperature of the room will get down to 18°C.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Sb\\zt \ASJ\—j EM\PJ‘ ‘/‘42-{—1.9-] -6,/' Nt = /Dfl’h\r\ &1—_ = ;i - i')’_ —i over 4 EOJ Lloj e s )8 Yo 200 Nete ' iar = Y:"’“K In;-"\'u‘ Jalwes &, = O T = 30 Whare ‘FC/;,'(:'.‘) Sheped yelwes To£ =10, A, =20, 7 30 t=40 g'fpl i= 0O A.E-:ID J(. = © _9{'1_'0 T, = 30 -, 42 L & kK= ‘F(T 'E:} = 4 us 3_05 4., = t.+ ot T;_,_\ = Ty o+ k4L - -T 4 2 7+fl3; frrs b, =, * At T, =T + kat n (’3 D) ¥ (%;fl( ! b) Koo -32 {\ = |0 d T, = 7'?"5’. = 272.€8% Srey 25 L= | £ = (0 —» 4, =20 ‘T\ ‘43 -E' - = —L 4 =2 - E ~ _ k = ‘F{T,'E) 142 Yy 100 {f\"_l:i‘f 4+ Tiwy T o+ k4dE N bee e T o Te ke = o + 10 o N = () + (F V() = —_7;1_"1 s _ o N T L, =w s _ T, = 8 " 11.3751 k.= 1B - owmezs
_ 157 T, = 11395 21 - T k""F(-r-'l-E: = ?-\:_3 - i._ P . 1Y Yoo i = Tiv Ok T _ i < T ot K4E P+l i e ", w4 O T b, = £, 88 T, = T, o+ kot e 2 - 1571 = 20 + 10 e =m0 y3 _ %0 o L, feme " +"E_ 300 { _ 30 sl (fi,m )({DB , T T 27 195049 = - =3 < 19 = _1h>2¢s1 ¥, 5 W = -pd%elS 14§ = 30D —S - Yo £, {, 7ed T, = A = 74049 - T S S e s e hn e T s T+ K4k Y i = - , B 4 H 18 Ys j:: tq < 'E + fl{' T _ 2 1 T+ KAt L = 20 + 10 ( e 74 LB - 3o = .TLILZC‘L“L + —o.um,)(lb) & 45 300 _ £, =40 Tq = |L.??73 = C0TIE Ty Tlet : 32 10 22589 © W 1 -0.¥93% 2.0 [4.39¢1 T o eBens 20 17,4021 16.3373 2 -0 W76 4o
60 re\Mp evu;\mg, (0,39 28 4 (10, 1.668) . (20, 1.395) o 4 (0, T1503%) (30, 43373 ) ( M fmfi't_() Ax O\P\omximxk} 27 Mmig. e *fmp\ fthLe( 1g” ¢
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help