Lösning av Tentamen i Numerisk Analys V3, FMN020, Carmen Arévalo

Relevanta dokument
Tentamen i Matematik 2: M0030M.

1. Compute the following matrix: (2 p) 2. Compute the determinant of the following matrix: (2 p)

Kurskod: TAMS11 Provkod: TENB 12 June 2014, 14:00-18:00. English Version

Tentamen del 2 SF1511, , kl , Numeriska metoder och grundläggande programmering

Tentamen i Matematik 2: M0030M.

Tentamen 1 i Matematik 1, HF dec 2016, kl. 8:00-12:00

Kurskod: TAMS28 MATEMATISK STATISTIK Provkod: TEN1 05 June 2017, 14:00-18:00. English Version

Pre-Test 1: M0030M - Linear Algebra.

Lösningsförslag till tentamen i SF1683 och SF1629 (del 1) 23 oktober 2017

9. Bestämda integraler

Vilken rät linje passar bäst till givna datapunkter?

1 e x2. lim. x ln(1 + x) lim. 1 (1 x 2 + O(x 4 )) = lim. x 0 x 2 /2 + O(x 3 ) x 2 + O(x 4 ) = lim. 1 + O(x 2 ) = lim = x = arctan x 1

Preliminär version 2 juni 2014, reservation för fel. Tentamen i matematik. Kurs: MA152G Matematisk Analys MA123G Matematisk analys för ingenjörer

Tillämpning - Ray Tracing och Bézier Ytor. TANA09 Föreläsning 3. Icke-Linjära Ekvationer. Ekvationslösning. Tillämpning.

x 2 2(x + 2), f(x) = by utilizing the guidance given by asymptotes and stationary points. γ : 8xy x 2 y 3 = 12 x + 3

Denna föreläsning. DN1212 Numeriska metoder och grundläggande programmering FN Linjära ekvationssystem. Repetition av FN3 (GNM kap 4.

Uppsala Universitet Matematiska Institutionen T Erlandsson

14. MINSTAKVADRATMETODEN

Uppsala Universitet Matematiska Institutionen Thomas Erlandsson

Tentamen i Matematik 3: M0031M.

1. Varje bevissteg ska motiveras formellt (informella bevis ger 0 poang)

LUNDS TEKNISKA HÖGSKOLA Institutionen för Elektro- och Informationsteknik

Kurskod: TAMS11 Provkod: TENB 07 April 2015, 14:00-18:00. English Version

Tentamen del 1 SF1511, , kl , Numeriska metoder och grundläggande programmering

8 < x 1 + x 2 x 3 = 1, x 1 +2x 2 + x 4 = 0, x 1 +2x 3 + x 4 = 2. x 1 2x 12 1A är inverterbar, och bestäm i så fall dess invers.

Kurskod: TAIU06 MATEMATISK STATISTIK Provkod: TENA 31 May 2016, 8:00-12:00. English Version

This exam consists of four problems. The maximum sum of points is 20. The marks 3, 4 and 5 require a minimum

Analys grundkurs B lab 1. Stefan Gustafsson Per Jönsson Fakulteten för Teknik och Samhälle, 2013

Module 1: Functions, Limits, Continuity

Tentamen i Analys B för KB/TB (TATA09/TEN1) kl 08 13

Högskolan i Skövde (SK, JS) Svensk version Tentamen i matematik

denna del en poäng. 1. (Dugga 1.1) och v = (a) Beräkna u (2u 2u v) om u = . (1p) och som är parallell

12.6 Heat equation, Wave equation

Finaltävling den 20 november 2010

FÖRSÄTTSBLAD TILL TENTAMEN. ELLER (fyll bara i om du saknar tentamenskod): Datum: 21 december Bordsnummer:

and u = och x + y z 2w = 3 (a) Finn alla lösningar till ekvationssystemet

Kurskod: TAMS11 Provkod: TENB 28 August 2014, 08:00-12:00. English Version

Tentamen del 1 SF1546, , , Numeriska metoder, grundkurs

Solutions to exam in SF1811 Optimization, June 3, 2014

Integraler. 1 Inledning. 2 Beräkningsmetoder. CTH/GU LABORATION 2 MVE /2013 Matematiska vetenskaper

TMV151/TMV181. Fredrik Lindgren. 19 november 2013

MVE500, TKSAM Avgör om följande serier är divergenta eller konvergenta. Om konvergent, beräkna summan. (6p) ( 1) n x 2n+1 (a)

Kurskod: TAIU06 MATEMATISK STATISTIK Provkod: TENA 17 August 2015, 8:00-12:00. English Version

Kontrollskrivning 3 till Diskret Matematik SF1610, för CINTE1, vt 2019 Examinator: Armin Halilovic Datum: 2 maj

Kurskod: TAIU06 MATEMATISK STATISTIK Provkod: TENA 15 August 2016, 8:00-12:00. English Version

1.6 Lösningar till kapitel 8

Teorifrågor. 6. Beräkna konditionstalet för en diagonalmatris med diagonalelementen 2/k, k = 1,2,...,20.

Styrteknik: Binära tal, talsystem och koder D3:1

and Mathematical Statistics Gerold Jäger 9:00-15:00 T Compute the following matrix

Föreläsning 10, Numme K2, GNM Kap 6 Integraler & GNM 8:3C Richardsonextrapolation

Sidor i boken

Uppgiftssamling 5B1493, lektionerna 1 6. Lektion 1

Frågor för tentamen EXTA50 Samhällsmätning, 9 hp, kl januari, 2015.

Laborationstillfälle 3 Numerisk integration

(D1.1) 1. (3p) Bestäm ekvationer i ett xyz-koordinatsystem för planet som innehåller punkterna

TATA42: Tips inför tentan

2(x + 1) x f(x) = 3. Find the area of the surface generated by rotating the curve. y = x 3, 0 x 1,

Löpsedel: Integraler. Block 4: Integraler. Lärobok. Exempel (jfr lab) Exempel (jfr lab) Integrering i Matlab

Ansvariga lärare: Yury Shestopalov, rum 3A313, tel (a) Problem 1. Använd Eulers metod II (tre steg) och lös begynnelsevärdesproblemet

1 Bestäm Théveninekvivalenten med avseende på nodparet a-b i nedanstående krets.

abbcba a) A regular expression over


Teknisk beräkningsvetenskap I 5DV154

f(x) =, x 1 by utilizing the guidance given by asymptotes and stationary points. cos(x) sin 3 (x) e sin2 (x) dx,

Numerisk Integration En inledning för Z1

Module 6: Integrals and applications

Tentamen i Hållfasthetslära gkmpt, gkbd, gkbi, gkipi (4C1010, 4C1020, 4C1035, 4C1012) den 4 juni 2007

1. Find an equation for the line λ which is orthogonal to the plane

LUNDS TEKNISKA HÖGSKOLA Inst. for Elektro- och Informationsteknik. SIGNALBEHANDLING I MULTIMEDIA, ETI265 Inlämningsuppgift 1 (av 2), Task 1 (out of 2)

Tentamen i Databasteknik

6. a) Visa att följande vektorer är egenvektorer till matrisen A = , och ange motsvarande

Discovering!!!!! Swedish ÅÄÖ. EPISODE 6 Norrlänningar and numbers Misi.se

Skriv tydligt! Uppgift 1 (5p)

och v = 1 och vektorn Svar 11x 7y + z 2 = 0 Enligt uppgiftens information kan vi ta vektorerna 3x + 2y + 2z = 1 y z = 1 6x + 6y + 2z = 4

Matris invers, invers linjär transformation.

Inför tentamen i Analys I och II, TNA008

Kurskod: TAMS11 Provkod: TENB 12 January 2015, 08:00-12:00. English Version

Användande av formler för balk på elastiskt underlag

Tillämpning av integraler

Lösningsförslag till deltentamen i IM2601 Fasta tillståndets fysik. Teoridel

Övningsexempel och labuppgifter, Lab 5-2D1242

1. Find the volume of the solid generated by rotating the circular disc. x 2 + (y 1) 2 1

Polynominterpolation av kontinuerliga

Del I: Lösningsförslag till Numerisk analys,

KTH 2D1240 OPEN vt 06 p. 1 (5) J.Oppelstrup

Institutionen för Matematik TENTAMEN I LINJÄR ALGEBRA OCH NUMERISK ANALYS F1, TMA DAG: Fredag 30 augusti 2002 TID:

Volum av rotationskroppar. Båglängd, rotationsytor. Adams 7.1, 7.2, 7.3

Tentamen i ETE115 Ellära och elektronik, 25/8 2015

Kan det vara möjligt att med endast

Listor = generaliserade strängar. Introduktion till programmering SMD180. Föreläsning 8: Listor. Fler listor. Listindexering.

Analys o 3D Linjär algebra. Lektion 16.. p.1/53

LINJÄR ALGEBRA II LEKTION 1

Tentamen MMG610 Diskret Matematik, GU

En skarp version av Iliev-Sendovs hypotes

Sats 3: Egenskaper. (a) (b) f(x) dx = 2 f(x) dx. (c) (Af(x) + Bg(x))dx. g(x) dx = A. (d) (e) Om a b och f(x) g(x) (f) Triangelolikheten: Om a b

Omtentamen i DV & TDV

Några integraler. Kjell Elfström. x = f 1 (y) = arcsin y. . 1 y 2 Vi låter x och y byta roller och formulerar detta resultat som en sats: cos x = 1

Tentamen i EDA320 Digitalteknik-syntes för D2

Ordinära differentialekvationer,

Lösningar till Tentamen i Beräkningsvetenskap II, 5.0 hp, Del A. 1. (a) ODE-systemet kan skrivas på formen

Transkript:

Lösning v Tentmen i Numerisk Anlys V3, FMN2, 312 Crmen Arévlo Denn tentmen börjr kl 14: och slutr kl 17:. För godkänt krävs minst 5 poäng v 1: 5 66 poäng = betyg 3, 67 83 poäng = betyg 4, 84 1 poäng = betyg 5 (prelilminär siffror). Du får nvänd miniräknre på skrivningen, men läroboken, overhedbilder från föreläsningrn och nnt skriftlilgt mteril är inte tillåtn hjälpmedel. This exm strts t 14: nd ends t 17:. In order to pss, minimum of 5 points out of the totl 1 is required: 5 66 points = grde 3, 67 83 points = grde 4, 84 1 points = grde 5 (preliminry figures). You re llowed to use pocket clcultor during the exm, but no textbook, lecture notes or other written mteril is permitted. 1. (13p) Låt f(x) vr en gltt (oändligt mång gånger kontinuerligt deriverbr) funktion och låt h vr ett kort steg. Vis med Tylorutuveckling tt uttrycket nedn är en pproximtion till f (x). 4f(x + h) 3f(x) f(x + 2h) 2h Vd är pproximtionens trunktionsfel? Suppose tht f(x) is smooth (infinitely mny times continuously differentible) function nd tht h is smll step. Use Tylor expnsions to show tht the expression below is n pproximtion to f (x). 4f(x + h) 3f(x) f(x + 2h) 2h Wht is the trunction error in this pproximtion? 4f(x + h) = 4f(x) + 4hf (x) + 2h 2 f (x) + 2 3 h3 f (x) + O(h 4 ) 3f(x) = 3f(x) f(x + 2h) = f(x) 2hf (x) 2h 2 f (x) 4 3 h3 f (x) + O(h 4 ) = 4f(x + h) 3f(x) f(x + 2h) = 2hf (x) 2 3 h3 f (x) + O(h 4 ) 4f(x + h) 3f(x) f(x + 2h) 2h Trunction error: 1 3 h2 f (ξ) 1 + 1 3 h2 f (x) + O(h 3 ) = f (x)

2. Snt eller flskt (True or flse): () (2p) Om en mtris är ickesingulär, så beror ntlet lösningr till det linjär systemet Ax = b på vlet v vektorn i högerledet, b. If mtrix is nonsingulr, then the number of solutions to the liner system Ax = b depends on the prticulr choice of the right-hnd side vector b. Flse. (b) (2p) När mn löser ett linjärt ekvtionssystem med LU fktorisering och tringulär återsubstitution, så är fktoriseringsrbetet ungfär lik stort som rbetet med frm- och bkåtsubstitutionen. In solving system of liner equtions by LU fctoriztion nd tringulr substitutions, the mount of work due to fctoriztion is roughly equl to tht due to forwrd nd bckwrd substitution. Flse. Fctoriztion tkes more work thn substitution. (c) (2p) Om A är en n n mtris, så är komplexiteten v bkåtsubstitution O(n 2 ). If A is n n n mtrix, the complexity of bckwrd substitution is O(n 2 ). True. (d) (2p) A 1 = A T. (No trnsltion) True. (e) (2p) Om A är en n n ickesingulär mtris, så är cond(a)=cond(a 1 ). If A is ny n n nonsingulr mtrix, then cond(a)=cond(a 1 ). True. 3. (13p) Vi önskr beräkn vståndet med bil melln städern Helsingborg, Trelleborg och Kivik. Vi hr mätt vstå nden från Lund till Helsingbirg och fått 49 km; Trelleborg Lund 29 km; Helsingborg Lund Kivik 131 km; slutligen vr sträckn Kivik Lund Trelleborg 112 km. Felet vr ungefär detsmm i ll mätningr. Ställ upp det överbestämd system som tr hänsyn till dess fyr mätdt, med tre obeknt som skll representer vstånden melln Lund och vr och en v de tre ndr städern. Bestäm den lösning som minimerr residulen. We wnt to clculte the distnce by cr between Lund nd the cities of Helsingborg, Trelleborg nd Kivik. We mesured the distnce from Lund to Helsingborg to be 49 km, Trelleborg Lund ws 29 km; Helsingborg Lund Kivik ws 131 km; nd Kivik Lund Trelleborg ws 112 km. The error ws roughly the sme for ll mesurements. Write the overdetermined system tht tkes these four mesurements into ccount, for the 2

three unknowns tht represent the distnces between Lund nd ech of the other three cities. Find the solution tht minimizes the residul. The equtions re: x = d(l, H) y = d(l, T ) z = d(l, K) x = 49 y = 29 x + z = 131 y + z = 112 So the overdetermined system to solve is: 1 1 x 1 1 y = z 1 1 And the norml equtions re: 2 1 2 1 1 1 2 x y z = 49 29 131 112 18 141 243 with solution: x = 48.75, y = 29.25 nd z = 82.5. 4. (13p) Om Newtons metod nvänds för tt finn nollstället x = 1 till ett polynom (som lltså hr p(1) = ), så erhålles följnde sekvens v pproximtioner: x = 2., x 1 = 1.5, x 2 = 1.25, x 3 = 1.125, x 4 = 1.625, x 5 = 1.3125. Vd är kovergenshstigheten? Är x = 1 en enkel eller multipel-rot till p(x) =? If the Newton method is pplied to find the zero, x = 1, of polynomil (i.e., p(1) = ), the following sequence of pproximtions is obtined: x = 2., x 1 = 1.5, x 2 = 1.25, x 3 = 1.125, x 4 = 1.625, x 5 = 1.3125. Wht is the rte of convergence? Is x = 1 simple or multiple root of p(x) =? The sequence of errors is 1.,.5,.25,.125,.625,.3125. This shows tht e k+1 e k =.5 so the rte of convergence is liner nd x = 1 must be multiple root (otherwise the convergence rte would hve been 2.) 3

5. (13p) Konstruer en tbell med dividerde differenser för funktionen f(x) = 3 sin 2 (πx/6), från tbelldt givn nedn. Konstruer Newtoninterpoltionspolynom v grd 1, 2 och 3. Construct the tble of divided differences for the function f(x) = 3 sin 2 (πx/6), tbulted below. Construct Newton interpoltion polynomils of degrees 1, 2 nd 3. k 1 2 3 x k. 1. 2. 3. f(x k )..75 2.25 3. 1.75.75 2 2.25 1.5.375 3 3..75 -.375 -.25 p 1 (x) =.75x p 2 (x) =.75x +.375x(x 1) p 3 (x) =.75x +.375x(x 1).25x(x 1)(x 2) 6. (13p) Konstruer en kvdrturformel v typen f(x)dx w 1 f( 1 3 ) + w 2f( 2 3 ) som är exkt för polynom v så högt grdtl som möjligt. formelns grd? Construct the qudrture formul of the form Vd är f(x)dx w 1 f( 1 3 ) + w 2f( 2 3 ) tht is exct for polynomils of the highest degree possible. Wht is the degree of the formul? 1dx = 1 = w 1 + w 2 xdx = 1 2 = 1 3 w 1 + 2 3 w 2 4

Then w 1 = w 2 = 1/2, but x 2 dx = 1 3 1 9 w 1 + 4 9 w 2 therefore the degree of the formul is 1. 7. (12p) Ange för vr och en v nednstående metoder för lösning v begynnelsevärdesproblem nmn, typ (flerstegs- eller Runge Kutt, smt explicit eller implicit), stbilitetsegenskp (ovillkorligt stbil eller inte) och om metoden är lämplig för styv problem eller ej. For ech of the following methods for solving initil vlue problems, fill in its nme, type (multistep or Runge-Kutt, nd explicit or implicit), stbility property (unconditionlly stble or not) nd whether it is pproprite for stiff problems. () y k+1 = y k + hf(t k, y k ) (b) y k+1 = y k + hf(t k+1, y k+1 ) (c) y k+1 = y k + h( 1 2 k 1 + 1 2 k 2) k 1 = f(t k, y k ) k 2 = f(t k + h, y k + hk 1 ) (d) 1 1/2 1/2 1/2 1/2 () y k+1 = y k + hf(t k, y k ) Explicit Euler, multistep nd one-step, explicit, not unconditionlly stble, not pproprite for stiff problems. (b) y k+1 = y k +hf(t k+1, y k+1 ) Implicit Euler, multistep nd one-step, implicit, unconditionlly stble, pproprite for stiff problems. (c) y k+1 = y k + h( 1 2 k 1 + 1 2 k 2) k 1 = f(t k, y k ) k 2 = f(t k + h, y k + hk 1 ) Heun s method, Runge-Kutt, explicit, not unconditionlly stble, not pproprite for stiff problems. (d) 1 1/2 1/2 Crnk-Nicholson, Runge-Kutt, implicit, unconditionlly 1/2 1/2 stble, pproprite for stiff problems. 8. (13p) Betrkt rndvärdesproblemet y 2t 3 =, y() = 1, y(1) = 1. 5

Använd Glerkins metod för tt pproximer lösningen med ett styckvis linjärt polynom, och nvänd tre nätpunkter. Skiss den pproximtiv lösningen. Kom ihåg tt Glerkins ortogonlitetsvillkor är n ( j=1 Φ j(t)φ i(t)dt)x j = Consider the boundry vlue problem f(t)φ i (t)dt. y 2t 3 =, y() = 1, y(1) = 1 Apply the Glerkin method to pproximte the solution by piecewise liner polynomil using three mesh points. Grph the pproximte solution. Recll tht the Glerkin orthogonlity condition is n ( j=1 Φ j(t)φ i(t)dt)x j = f(t)φ i (t)dt. where y(t) v(t, x) = x 1 Φ 1 (t) + x 2 Φ 2 (t) + x 3 Φ 3 (t) Φ 1 (t) = Φ 2 (t) = Φ 3 (t) = { 2t + 1, (,1/2);, (1/2,1). { 2t, (,1/2); 2t + 2, (1/2,1). {, (,1/2); 2t 1, (1/2,1). Boundry conditions: v(, x) = x 1 = 1, v(1, x) = x 3 = 1. Orthogonlity condition for Φ 2 (t): /2 4dt x 2 3 ( j=1 Φ j(t)φ 2(t)dt)x j = 4dt 4dt = 1/2 /2 2t 3 Φ 2 (t)dt 4t 4 dt+ ( 4t 4 +4t 3 )dt x 2 = 3/64 1/2 6

1.8.6.4.2.2.4.6.8 1.1.2.3.4.5.6.7.8.9 1 7