{"id":93,"date":"2013-08-11T21:00:18","date_gmt":"2013-08-11T21:00:18","guid":{"rendered":"https:\/\/jasoncantarella.com\/wordpress\/?page_id=93"},"modified":"2022-08-04T21:30:43","modified_gmt":"2022-08-05T01:30:43","slug":"math-4510","status":"publish","type":"page","link":"https:\/\/jasoncantarella.com\/wordpress\/courses\/math-4510\/","title":{"rendered":"Math 4510: Numerical Analysis II"},"content":{"rendered":"<p>Welcome to the homepage for Numerical Analysis II (Math 4510\/6510)! I will post all the homework assignments for the course on this page. Our texts for the course are Cheney and Kincaid, <em> Numerical Mathematics and Computing <\/em> (7th edition), and Demmel, <em>Applied Numerical Linear Algebra<\/em>.<\/p>\n<p>In this class, we will learn two fundamental topics in numerical mathematics: solving differential equations and numerical linear algebra. <em>Mathematica<\/em> will be an integral part of the course. UGA now has a site license for <em>Mathematica<\/em> and you can get a copy for your laptop or home computer free of charge. I encourage you to work through some introductory material on <em>Mathematica<\/em> (the book &#8216;Mathematica deMYSTiFieD&#8217; is actually pretty good) in order to get grounded. Virtually all of the homework assignments and projects will require you to write short <em>Mathematica<\/em> programs.<\/p>\n<p>&nbsp;<\/p>\n<h2>Lecture Notes and Homework Online<\/h2>\n<p>Here are links to my lecture notes for the course; these will be posted as I write them. Each lecture is usually accompanied by one or more <em>Mathematica<\/em> notebooks explaining and demonstrating the concepts from class. These are <em>Mathematica 7<\/em> notebooks.<\/p>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_IntroductionToODE.pdf\"> Lecture 1. Introduction to Numerical Solution of Ordinary Differential Equations. <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/HeatTransfer.nbp\"> Heat Transfer ODE <\/a> (Mathematica Demo).<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/FamiliesOfSolutionsForODEs.nbp\"> Families of Solutions of ODEs <\/a> (Mathematica Demo).<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/AJP001242.pdf\"> High Altitude Free Fall <\/a> paper.<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_taylor_ode.nb\"> The Taylor Method for Solving ODE <\/a> (Mathematica Demo).<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_runge_kutta.pdf\"> Lecture 2. Runge-Kutta methods for solving ODE. <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/runge_kutta_demo.nb\"> Runge-Kutta Methods <\/a> (Mathematica Demo)<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_error_and_adaptive_ODE.pdf\"> Lecture 3. Error Analysis for ODE solvers and Adaptive Runge-Kutta-Fehlberg methods <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_predictor_corrector.pdf\"> Lecture 4. Predictor-Corrector (Adams-Bashforth-Moulton) solvers for ODEs <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/runge_kutta_vs_predictor_corrector.nb\"> Runge-Kutta Methods vs Predictor-Corrector Methods <\/a> (Mathematica Demo)<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_systems_of_ode.pdf\"> Lecture 5. Systems of ODEs <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/runge_kutta_vector_demo.nb\"> Runge-Kutta Methods for Systems of ODE <\/a> (Mathematica Demo)<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_bvp_1.pdf\"> Lecture 6. Boundary Value Problems (I) <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_bvp_2.pdf\"> Lecture 7. Boundary Value Problems (II) <\/a> (Now downloads correct file! Beware of a collection of small typos in this set of notes.)\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/finite_element_ode_demo.nb\"> Finite Element Solver for Linear BVP <\/a> (Mathematica Demo)<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_theory_of_pde_1.pdf\"> Lecture 8. Introduction to PDE (I) <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_theory_of_pde_2.pdf\"> Lecture 9. Introduction to PDE (II) <\/a>\n<ul>\n<li><a href=\"http:\/\/demonstrations.wolfram.com\/LaplacesEquationOnASquare\/\"> Laplace Equation Demo <\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_elliptic_grid_methods.pdf\"> Lecture 10. Grid Methods for Elliptic Boundary Value Problems (Laplace\/Poisson Problems) <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_elliptic_variational_methods.pdf\"> Lecture 11. Variational Methods for Elliptic Boundary Value Problems (Laplace\/Poisson Problems) <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_variational_laplace.nb\"> Variational Finite Element Solver for Laplace\/Poisson Equation <\/a> (Mathematica Demo)<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/lake_nodes.txt\">Lake example (nodes)<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/lake_elements.txt\">Lake example (triangles)<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/greenland_nodes.txt\">Greenland example (nodes)<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/greenland_elements.txt\">Greenland example (triangles)<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_numerical_linear_intro.pdf\">Lecture 12. Numerical Linear Algebra. Introduction and Error Analysis. Condition Number. Backward Stability.<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_matrix_norms.pdf\">Lecture 12a. Matrices and Matrix norms.<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_perturbation_theory_1.pdf\">Lecture 12b. Introduction to Perturbation Theory.<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_numerical_linear_algebra_II.pdf\"> Lecture 13. Perturbation Theory II<\/a>.<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_gaussian_elimination.pdf\"> Lecture 14. Gaussian Elimination <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_gaussian_elimination_II.pdf\"> Lecture 15. Gaussian Elimination II- Algorithm for LU Decomposition<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_LU_error_II.pdf\"> Lecture 16. Error Analysis for LU Decomposition <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_condition_number_est.pdf\"> Lecture 17. Estimating Condition Numbers <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_iterative_refinement.pdf\"> Lecture 18. Iterative Refinement of Solutions to Ax = b <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_cholesky.pdf\"> Lecture 19. The Cholesky Decomposition and Symmetric Positive Definite Matrices <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_sparse_lu_demo.nb\"> Lecture 20. Matrix Ordering and Sparsity of LU Decomposition of Sparse Matrices (Mathematica) <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/nnc666.rua\"> Example Sparse Matrix (Harwell Boeing Collection) <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/rrmatrix.mat\"> Example Sparse Matrix (RidgeRunner optimizer) <\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_linear_least_squares.pdf\"> Lecture 21. Linear Least-Squares Problems. Normal Equations, QR Decomposition, and Singular Value Decomposition <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_svd_image_compression.nb\"> Image compression with the SVD <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_QR_instability.nb\"> Instability in the Gram-Schmidt algorithm <\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_condition_least_squares.pdf\"> Lecture 22. Condition Number for Least-Squares Problems <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_householder.pdf\"> Lecture 23. QR Decomposition in Practice. Householder transformations<\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_iterative_numerical_la.pdf\"> Lecture 24. Iterative Methods in Numerical Linear Algebra (basics) <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_iterative_splittings.pdf\"> Lecture 25. Various Splittings for Iterative Methods <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_iterative_convergence.pdf\"> Lecture 26. Convergence of Iterative Methods <\/a>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_radiosity_demo.nb\"> Radiosity Demonstration <\/a><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/BigRadiosityMatrix.rsa\"> Large Radiosity Test Matrix (2048 x 2048) <\/a><\/li>\n<\/ul>\n<ul>\n<li><a href=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/64_sphere_radiosity.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-177\" src=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/64_sphere_radiosity-300x300.png\" alt=\"64_sphere_radiosity\" width=\"300\" height=\"300\" srcset=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/64_sphere_radiosity-300x300.png 300w, https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/64_sphere_radiosity-150x150.png 150w, https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/64_sphere_radiosity.png 420w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_chebyshev_acceleration.pdf\"> Lecture 27. Chebyshev Acceleration<\/a><\/li>\n<\/ul>\n<h2>Homework Assignments.<\/h2>\n<ol>\n<li><span style=\"color: #333333;\"><a href=\"https:\/\/jasoncantarella.com\/downloads\/math4510homework1.pdf\">Homework 1.<\/a>&nbsp;Due 1\/30\/2014.<\/span><\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/math4510homework1a.pdf\">Homework 2.<\/a> Due 2\/13\/2014.<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/math4510homework2.pdf\">Homework 3.<\/a> Due 3\/20\/2014.<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/math4510homework4.pdf\">Homework 4.<\/a> Due 4\/3\/2014.<\/li>\n<\/ol>\n<h2>Differential Equations Project &#8211; Due 3\/18\/2014<\/h2>\n<ul>\n<li>A magnetic railgun is used to launch a steel cylinder 25 cm in diameter and weighing 2 tons from a naval installation in Pearl Harbor, HI at a hostile carrier group 250 miles due west. (See <a href=\"http:\/\/www.youtube.com\/watch?v=i1q_rRicAwI\"> YouTube video of test railgun shot <\/a>.)<\/li>\n<li>Use the model for air density at different heights given in the parachute drop project, and the drag coefficient for a cylinder to develop a model for the force of air resistance on the projectile. Account for the force of gravity on the projectile using a circular model of the Earth (some solutions may orbit the Earth before striking the carrier), but the projectile, the target, and the center of the Earth will always define the same plane. Combine all this with Newton&#8217;s second law to develop a differential equation for the flight of the projectile.<\/li>\n<li>Implement a shooting method to solve your ODE in Mathematica (using the RK4 or Predictor-Corrector methods to solve the underlying ODE problems given in the shooting method) to solve for a launch speed which will cause the cylinder to land on target assuming that you are given a launch angle of \\theta.<\/li>\n<li>Assuming that hostile carrier has the dimensions of the U.S.S. Nimitz, determine by experiment the permissible window of angles and speeds which will result in a hit. Bonus points will be awarded for the trajectory using the lowest initial speed. What is the kinetic energy of the projectile on impact? How does this compare to the chemical energy of an equivalent weight of TNT?<\/li>\n<\/ul>\n<h2>Linear Algebra Project &#8211; Due 4\/24\/2014<\/h2>\n<p>Consider this 614 x 420 pixel black and white image of a dog<\/p>\n<p><a href=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/Bigdog.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-178\" src=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/Bigdog-300x205.jpeg\" alt=\"Bigdog\" width=\"300\" height=\"205\" srcset=\"https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/Bigdog-300x205.jpeg 300w, https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/Bigdog-150x102.jpeg 150w, https:\/\/jasoncantarella.com\/wordpress\/wp-content\/uploads\/2013\/08\/Bigdog.jpeg 614w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Divide the upper left 608 x 416 pixels of the image into 32 x 32 pixel blocks. Convert the image data in each block into a single grayscale value between 0 and 1 in each pixel and think of the image blocks as vectors in R^{1024}.<\/p>\n<p>Suppose we considered the cloud of 1024-vectors that we got from taking blocks from hundreds, or millions, of real images. Would these vectors be uniformly spread across R^{1024}? Of course not! Image data is actually quite special, and comes very close to lying in a much lower-dimensional subspace of R^{1024}. We can exploit the special structure in the data to design an image compression algorithm using linear least-squares problems.<\/p>\n<ol>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/4510_imagecompression.nb\">Detailed writeup of the problem and working sample code<\/a>. In addition, <a href=\"https:\/\/jasoncantarella.com\/downloads\/livingstonCompress.zip\">here<\/a>&nbsp;is a set of sample functions developed during the spring 2011 class by Ryan Livingston, together with Ryan&#8217;s compression matrices.<\/li>\n<li>We discovered in 2014 that using JPEG compressed images to train PCA mostly results in developing an algorithm that&#8217;s very good at reproducing JPEG artifacts and much less good at reproducing images. Accordingly, this time you should train on the <a href=\"http:\/\/homepages.lboro.ac.uk\/~cogs\/datasets\/ucid\/ucid.html\">Uncompressed Colour Image Database<\/a>. If absolutely desperate, this is mirrored <a href=\"https:\/\/jasoncantarella.com\/downloads\/ucid.v2.tar.gz\">on my site<\/a>, but please try the other link first. It&#8217;s about half a gig, and my web hosting service will not appreciate it if all the students in the class download this much from my page.<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/PCA-Tutorial-Intuition_jp.pdf\">A Tutorial on Principal Component Analysis.<\/a> (Shlens)<\/li>\n<li><a href=\"https:\/\/jasoncantarella.com\/downloads\/NN00new.pdf\">Independent Component Analysis: Algorithms and Applications.<\/a>&nbsp;(Hyvarinen, Oja)<\/li>\n<li><a style=\"line-height: 1.75em;\" href=\"http:\/\/research.ics.aalto.fi\/ica\/cocktail\/cocktail_en.cgi\">ICA Cocktail Party Demonstration.<\/a><\/li>\n<\/ol>\n<h2>Compressed Dog Competition<\/h2>\n<p>When all the projects are submitted, we have a slide show day where everyone votes on the best version of each image. The overall winner wins the <em>Math<\/em><em>4510 Best Picture Award<\/em>&nbsp;for the year. <a href=\"https:\/\/jasoncantarella.com\/downloads\/ImageComparison.zip\">This very large zip folder<\/a> contains the notebook used for the comparison, which presented A\/B compressions of the same images to the class and then attempted to rank the submissions according to these comparisons using <a href=\"http:\/\/wakespace.lib.wfu.edu\/handle\/10339\/38577\">the HodgeRank method<\/a>. Note that many of the compressed images were rather close, so what look like big differences in rankings are not big differences in students ideas or effort. Also note that while these are the rankings used to decide the awards below, they are not grades and didn&#8217;t particularly correlate with grades, either.<\/p>\n<h4>Previous Winners<\/h4>\n<p style=\"padding-left: 30px;\">Fred Hohman in the 50% compression category (2014). Fred used PCA on a large training set to achieve striking compression results. Here are <a href=\"https:\/\/jasoncantarella.com\/downloads\/fred_hohman_image_compression_tips.pdf\">Fred&#8217;s thoughts on his method<\/a>. Here is <a href=\"https:\/\/jasoncantarella.com\/downloads\/Hohman50.dat\">Fred&#8217;s prizewinning 50% compression matrix<\/a>.<\/p>\n<p style=\"padding-left: 30px;\">Irma Stevens in the 90% compression category (2014). Here are <a href=\"https:\/\/jasoncantarella.com\/downloads\/irma_stevens_image_compression_tips.pdf\">Irma&#8217;s thoughts on her method<\/a>. Here is <a href=\"https:\/\/jasoncantarella.com\/downloads\/Stevens90.dat\">Irma&#8217;s prizewinning 90% compression matrix<\/a>.<\/p>\n<p style=\"padding-left: 30px;\">Ke Ma in the 99% compression category (2014).<\/p>\n<p style=\"padding-left: 30px;\">Ryan Livingston, judged best overall in 2011.&nbsp;<a href=\"https:\/\/jasoncantarella.com\/downloads\/RyanLivingstonMatrixConstruction.pdf\">Here <\/a> are his thoughts on how he constructed the matrices, together with <a href=\"https:\/\/jasoncantarella.com\/downloads\/livingstonTestPics.tar.bz2\"> his test set of images <\/a>.<\/p>\n<h4>Winning Compressions<\/h4>\n<p>To get a sense of how good the compressions are that are provided by the student work, here&#8217;s slideshow of the best results from 2014. For students in the class, I&#8217;m also posting <a href=\"https:\/\/jasoncantarella.com\/downloads\/uncompressed_images.zip\">uncompressed, unlabeled versions of the slideshow images<\/a> for you to look for subtle details.<\/p>\n<p>[SlideDeck2 id=607]<\/p>\n<h2>Syllabus<\/h2>\n<p>Please examine the <a href=\"https:\/\/jasoncantarella.com\/downloads\/syllabus4510.pdf\"> course syllabus. <\/a> If you think you can get by with this copy, save a tree! Don&#8217;t print it out.<\/p>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Material on this page is a work-for-hire produced for the University of Georgia.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the homepage for Numerical Analysis II (Math 4510\/6510)! I will post all the homework assignments for the course on this page. Our texts for the course are Cheney and Kincaid, Numerical Mathematics and Computing (7th edition), and Demmel, Applied Numerical Linear Algebra. In this class, we will learn two fundamental topics in numerical [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":78,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-93","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/pages\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":10,"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/pages\/93\/revisions"}],"predecessor-version":[{"id":1767,"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/pages\/93\/revisions\/1767"}],"up":[{"embeddable":true,"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/pages\/78"}],"wp:attachment":[{"href":"https:\/\/jasoncantarella.com\/wordpress\/wp-json\/wp\/v2\/media?parent=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}