Experimental Mathematics 25 August 2011. Linear Equations in 2D Space Recall: A line in the x-y-plane can be represented algebraically by an equation.

Slides:



Advertisements
Similar presentations
5.1 Real Vector Spaces.
Advertisements

Lecture 4.
Section 3.4 Systems of Equations in 3 Variables
Chapter 7: Vectors and the Geometry of Space
Computer Graphics Recitation 5.
Now Playing: My Mathematical Mind Spoon From Gimme Fiction Released May 10, 2005.
Ch 7.3: Systems of Linear Equations, Linear Independence, Eigenvalues
Chapter 1 Systems of Linear Equations
Chapter 3 System of Linear Equations. 3.1 Linear Equations in Two Variables Forms of Linear Equation Forms of Linear Equation  ax + by = c (a, b, c are.
10.1 Gaussian Elimination Method
ENGG2013 Unit 5 Linear Combination & Linear Independence Jan, 2011.
Chapter 1 – Linear Equations
Experimental Mathematics 25 August 2011 Linear Transformations and Ranks.
1 1.9 © 2016 Pearson Education, Inc. Linear Equations in Linear Algebra THE MATRIX OF A LINEAR TRANSFORMATION.
1-3 The Distance and Midpoint Formulas
Elementary Linear Algebra Anton & Rorres, 9th Edition
Advanced Algebra Notes
Scientific Computing Linear Least Squares. Interpolation vs Approximation Recall: Given a set of (x,y) data points, Interpolation is the process of finding.
4.5 Solving Systems using Matrix Equations and Inverses.
Chapter 5 General Vector Spaces.
Section 4.1 Vectors in ℝ n. ℝ n Vectors Vector addition Scalar multiplication.
1 What you will learn  Vocabulary  How to plot a point in 3 dimensional space  How to plot a plane in 3 dimensional space  How to solve a system of.
4.5 Solving Systems using Matrix Equations and Inverses OBJ: To solve systems of linear equations using inverse matrices & use systems of linear equations.
Inverse Matrices and Systems
Section 3.5 Lines and Planes in 3-Space. Let n = (a, b, c) ≠ 0 be a vector normal (perpendicular) to the plane containing the point P 0 (x 0, y 0, z 0.
1. Given vectors a, b, and c: Graph: a – b + 2c and 3c – 2a + b 2. Prove that these following vectors a = 3i – 2j + k, b = i – 3j +5k, and c = 2i +j –
2.1 Day 2 Linear Transformations and their Inverses For an animation of this topic visit:
Solving Equations by Factoring Definition of Quadratic Equations Zero-Factor Property Strategy for Solving Quadratics.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
Chapter 1 Linear Algebra S 2 Systems of Linear Equations.
POLYNOMIALS. WHAT IS A POLYNOMIAL? An algebraic expression that contains more than two terms Polynomial literally means poly – (meaning many) and nomial.
Advanced Algebra Notes Section 3.4: Solve Systems of Linear Equations in Three Variables A ___________________________ x, y, and z is an equation of the.
Chapter 1 Systems of Linear Equations Linear Algebra.
4.7 Solving Systems using Matrix Equations and Inverses
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
PLANES R K SHARMA PGT(MATH) K V BAILEY RD PATNAS.
Vectors and the Geometry of Space Section 10.4 Lines and Planes in Space 2015.
1.1 The row picture of a linear system with 3 variables.
3.8B Solving Systems using Matrix Equations and Inverses.
Algebra Review. Systems of Equations Review: Substitution Linear Combination 2 Methods to Solve:
T4.4 – Linear Systems & Matrices
 How do I solve a system of Linear equations using the graphing method?
An Introduction to Matrix Algebra Math 2240 Appalachian State University Dr. Ginn.
Daily Vocabulary Coefficient matrix Matrix of constants.
Solving Linear Systems
Warm-Up 1. Put in slope-intercept form: 3x – 4y = -12
Linear Equations by Dr. Shorouk Ossama.
Solving Equations by Factoring
10.4 Solving Factored Polynomial Equations
MATHEMATICS Linear Equations
3.5 Graphing Linear Equations in Three Variables
5.1 The Language of Mathematics
Section 1.8: Introduction to Linear Transformations.
Preview Linear Systems Activity (on worksheet)
3-5 Linear Equations in Three Dimensions Warm Up Lesson Presentation
Warm-Up 1. Put in slope-intercept form: 3x – 4y = -12
Multiplicative Inverses of Matrices and Matrix Equations
1.3 Vector Equations.
Standard Form Quadratic Equation
Algebra 1 Section 12.1.
Linear Algebra Lecture 20.
Bellwork 1) Multiply. 3) Find the determinant. 2) Multiply.
Section Graphing Linear Equations in Three Variables
Warm-Up 1. Put in slope-intercept form: 3x – 4y = -12
1.11 Use Inverse Matrices to Solve Linear Systems
Solving systems of 3 equations in 3 variables
Vectors in Three-Dimensional Space
Solving Linear Systems of Equations - Inverse Matrix
Solving Linear Systems by Graphing
Presentation transcript:

Experimental Mathematics 25 August 2011

Linear Equations in 2D Space Recall: A line in the x-y-plane can be represented algebraically by an equation of the form ax + by  c where a and b are not both zero. Sage example for a=2, b=3, c=5, plotted over -10≤x≤10, -10≤y≤10: var('x,y') p=implicit_plot(2*x+3*y==5, (x,-10,10),(y,-10,10)) show(p)

Problem 1 Open a new Sage worksheet and do today’s problems within this worksheet. Find the intersection point of the lines determined by 4x+y=10 and 3x-4y=17 by a Sage plot. Hint: Two plots p,q can be combined by show(p+q)

Linear Equations in 3D Space Recall: A linear equation ax + by + cz  d, where a, b, c, d are constants and not all a, b, c are zero, represents a plane in the three dimensional space. Sage example for a=2, b=3, c=5, d=-2, plotted over -10≤x≤10, -10≤y≤10, -10≤z≤10, in red color: var(‘x,y,z’) p=implicit_plot3d(2*x+3*y+5*z==-2, (x,-10,10),(y,-10,10),(z,-10,10),color=‘red’) show(p)

Problem 2 Combine the three planes determined by 2x+3y+5z=10 x-y+z=1 x+y-2z=0 in one plot. Plot each plane in a different color. Approximately identify the point where all three planes intersect.

Problem 3 The system x+y+z=-1 x-y+z=1 x+z=2 has no solution. Combine these three planes in one plot (with different colors) and find the “geometric reason” why there is no solution.

Vector and Matrix Operations in Sage #2D vector # 2x2 matrix # 2x3 matrix # matrix power # matrix product # matrix-vector product # scalar multiplication # C is 10x10 matrix with # C[i,j] = f(i,j) v = vector([1,2]) w = vector([1,3]) A = matrix([[1,2],[2,3]]) B = matrix([[1,0,0],[1,1,2]]) A^3 A*B A*v 10*B 10*v def f(i,j): return i*j C = matrix(10,10,f)

Problem 4 a)Try out matrix and vector computations as on the last slide. Note: vectors are different from lists and matrices are different from lists of lists. E.g. the append function does not work for vectors. b) Create the following matrix in Sage (where x is a symbolic variable):

Solving Linear Systems #Example: b = vector([1,2,2]) A = matrix([[1,2,-1],[2,3,1],[1,-1,0]]) x=A.solve_right(b) # solves Ax=b A*x # check

Problem 5 Use the solve_right function to solve the system from Problem 2: 2x+3y+5z=10 x-y+z=1 x+y-2z=0

Polynomial Interpolation

Example Find a polynomial of degree 2 through (0,4),(1,5),(2,5): # solve the linear system: x=vector([0,1,2]) y=vector([4,5,5]) n=2 def f(i,j): return x[i]^(n-j) A = matrix(3,3,f) coeffs = A.solve_right(y) #Compute polynomial and test: p(x) = 0 for i in range(3): p+=coeffs[i]*x^(n-i) print p #test: p(0); p(1); p(2)

Problem 6 a) Write a Python function Interpol(L) which returns a polynomial of degree n which passes through the n+1 points in the list L. For example, if L=[[0,0],[1,1],[2,4]], the function should return b) Apply your function to the example on the last slide and use it to find a polynomial of degree 5 through (0,4),(1,5),(2,5),(3,100),(4,-10),(5,-5).