1st semester a.y. 2018/2019 – November 22, 2018

Slides:



Advertisements
Similar presentations
Chapter 9: Vector Differential Calculus Vector Functions of One Variable -- a vector, each component of which is a function of the same variable.
Advertisements

ESSENTIAL CALCULUS CH11 Partial derivatives
Copyright © Cengage Learning. All rights reserved.
PARTIAL DERIVATIVES 14. PARTIAL DERIVATIVES 14.6 Directional Derivatives and the Gradient Vector In this section, we will learn how to find: The rate.
BVP Weak Formulation Weak Formulation ( variational formulation) where Multiply equation (1) by and then integrate over the domain Green’s theorem gives.
6 6.1 © 2012 Pearson Education, Inc. Orthogonality and Least Squares INNER PRODUCT, LENGTH, AND ORTHOGONALITY.
Basic Concepts and Definitions Vector and Function Space. A finite or an infinite dimensional linear vector/function space described with set of non-unique.
Approximation on Finite Elements Bruce A. Finlayson Rehnberg Professor of Chemical Engineering.
Ch 2.1: Linear Equations; Method of Integrating Factors
PHY 042: Electricity and Magnetism
Quantum One: Lecture 8. Continuously Indexed Basis Sets.
Applied Discrete Mathematics Week 9: Relations
ORDINARY DIFFERENTIAL EQUATION (ODE) LAPLACE TRANSFORM.
Functions of Several Variables Local Linear Approximation.
MA Day 25- February 11, 2013 Review of last week’s material Section 11.5: The Chain Rule Section 11.6: The Directional Derivative.
Copyright © Cengage Learning. All rights reserved. 14 Partial Derivatives.
Copyright © Cengage Learning. All rights reserved The Chain Rule.
Ch 2.1: Linear Equations; Method of Integrating Factors A linear first order ODE has the general form where f is linear in y. Examples include equations.
11 PARTIAL DERIVATIVES.
Math 3120 Differential Equations with Boundary Value Problems
MA Day 34- February 22, 2013 Review for test #2 Chapter 11: Differential Multivariable Calculus.
Copyright © Cengage Learning. All rights reserved. 16 Vector Calculus.
6 6.3 © 2016 Pearson Education, Inc. Orthogonality and Least Squares ORTHOGONAL PROJECTIONS.
Finite Element Method. History Application Consider the two point boundary value problem.
Operators in scalar and vector fields
CMSC Discrete Structures
Chapter 14 Partial Derivatives
Week 9 4. Method of variation of parameters
Functions of Complex Variable and Integral Transforms
Section 14.2 Computing Partial Derivatives Algebraically
Laplace Transforms.
Copyright © Cengage Learning. All rights reserved.
Week 8 Second-order ODEs Second-order linear homogeneous ODEs
Applications of the Derivative
We will be looking for a solution to the system of linear differential equations with constant coefficients.
FIRST ORDER DIFFERENTIAL EQUATIONS
Ch 2.1: Linear Equations; Method of Integrating Factors
(MTH 250) Calculus Lecture 22.
Copyright © Cengage Learning. All rights reserved.
13 VECTOR CALCULUS.
By the end of Week : You would learn how to solve many problems involving limits, derivatives and integrals of vector-valued functions and questions.
Quantum One.
Quantum One.
Quantum Two.
C H A P T E R 3 Vectors in 2-Space and 3-Space
Arc Length and Curvature
Copyright © Cengage Learning. All rights reserved.
Integration The Explanation of integration techniques.
Ch 4.4: Variation of Parameters
Copyright © Cengage Learning. All rights reserved.
Integration The Explanation of integration techniques.
Copyright © Cengage Learning. All rights reserved.
Ch 1.2: Solutions of Some Differential Equations
§1-3 Solution of a Dynamical Equation
Ch 3.7: Variation of Parameters
CMSC Discrete Structures
The Fundamental Theorem of Calculus
2.10 Solution by Variation of Parameters Section 2.10 p1.
CMSC Discrete Structures
Recurrence Relations Discrete Structures.
Linear Systems Review Objective
Differentiation.
VECTOR FUNCTIONS 13. VECTOR FUNCTIONS Later in this chapter, we are going to use vector functions to describe the motion of planets and other objects.
Week 8 Second-order ODEs Second-order linear homogeneous ODEs
Linear Vector Space and Matrix Mechanics
Copyright © Cengage Learning. All rights reserved.
Chapter 2 Determinants.
Solving Linear Systems of Equations - Inverse Matrix
Computer Aided Geometric Design
Presentation transcript:

1st semester a.y. 2018/2019 – November 22, 2018 Fundamentals of Computer Graphics The gradient Emanuele Rodolà rodola@di.uniroma1.it 1st semester a.y. 2018/2019 – November 22, 2018

Gradient of a function Consider a surface S with parametrization and a differentiable function We want to define the gradient at a point p

The gradient in R2 v u p The gradient of a differentiable function is the vector field

The gradient on a surface Ideas how to define : p Use the same formula as before, but in terms of x, y, z: Not a good choice, because we have no information about f outside of S!

The gradient on a surface Another possibility is to express our differentiable function f in terms of a parametrization x: and then set: Depends on the choice of the parametrization! p v p u

The gradient on a surface Instead, let us try to interpret the geometric meaning of the gradient: The vector that points in the direction of steepest increase of f Its length measures the strength of increase We have a relationship with the directional derivative: v u p directional derivative of f at p, along direction v

Representation theorem The gradient of any differentiable function can be defined as the unique vector field such that the relationship holds: This is an application of the Riesz representation theorem: Inner product space dual space of H Then, every can be written uniquely as an inner product: And one can then define the gradient as the unique

The gradient on a surface We define the gradient by means of the inner product: Thus, if we are able to write down , we can “solve for” . p

The gradient in local coordinates Since the gradient is a member of TpS , we can express it in the local basis: Hence, knowledge of the coefficients corresponds to knowledge of .

The gradient in local coordinates It turns out that the coefficients can be obtained by considering the gradient of , which is defined on the parameter domain. p u v Since we have , we also have that the change of in the direction corresponds to the change of in the direction : Hence, we can compute the directional derivative directly in parameter space chain rule Riesz

The gradient in local coordinates Now let , and apply on both sides (note that is linear): p On the other hand, we can also write: This means

Wrap-up Thus, according to our definition of the gradient, we have to find the unique such that: We can compute the directional derivative directly in U, as: where defined on the surface S defined on the parameter domain U We can thus write

Wrap-up Using the bilinear definition of first fundamental form, we can also write Together with the last equation from the previous slide, we have And thus we finally obtain:

Expression in local coordinates The expression is giving the gradient coefficients w.r.t. a basis in , hence it is said to be given in local coordinates. To obtain a vector (i.e. in global coordinates), we simply have to write:

Gradient norm In some applications we need the norm of the gradient. Our final expression for the gradient is given by: Computing its (squared) norm is straightforward:

Example: The sphere Consider the function that assigns to each point its distance to the north pole n: We want to compute its gradient: We consider the parametrization:

Example: The sphere u v

Example: gradients in R2 u v

u v

Discretization: The gradient Recall that we are assuming functions to be linear within each triangle. Our partial derivatives on the reference triangle can be simply approximated by the finite differences:

Discretization: The gradient The discrete gradient is then given by: Also observe that:

Discretization: Gradient norm We simply obtain: Note that, since we take f to be linear, the gradient is constant within each triangle.

Discretization: Total variation The total variation of a function is: We know how to compute integrals of functions on triangulated meshes. We simply get, for each triangle: