Directional Derivative — Gradient
And More: Double & Triple Derivative & Chain Rule in Python :) — #PySeries#Episode 26
Hi, This time, Double & Triple Derivative & Chain Rule & grads in Python!
Again, Geogebra will be our secret!
Let’s jump to a fresh Colab Notebook and please answer these 8 questions (or open this Colab notebook right away:)
01 PyEx — Python — Double Integration
Double integrate:
02 PyEx — Python — Double Integration
Double integrate:
03 PyEx — Python — Double Integration
Double integrate:
04 PyEx — Python —Triple Integration
Triple integrate:
05 PyEx — Python — Area Between Circumferences
Calculate the area between the circumferences (Use Double integral):
06 PyEx — Python — Differentiation By Chain Rule
Use Chain Rule to Differentiate this function by hand:)
07 PyEx — Python — Differentiation By Chain Rule
Use Chain Rule to Differentiate this function by hand:)
08 PyEx — Python — Gradient — Directional Derivative
Gradient — Curl (from https://docs.sympy.org/latest/modules/vector/fields.html)
A curl is a mathematical operator that describes an infinitesimal rotation of a vector in 3D space.
The direction is determined by the right-hand rule (along the axis of rotation), and the magnitude is given by the magnitude of rotation.
In the 3D Cartesian system, the curl (or Gradient of scalar field) of a 3D vector F , denoted by ∇×F is given by:
The Del, or ‘Nabla’ operator — written as ∇ is commonly known as the vector differential operator. Depending on its usage in a mathematical expression, it may denote the gradient of a scalar field, the divergence of a vector field, or the curl of a vector field.where Fx denotes the X component of vector F.
So
Calculate Gradient - Directional Derivative:
That’s All for this lecture!
See you in the next Python Episode!
See answer below!
Bye!!!!
Colab File link:)
Google Drive link:)
Geogebra Solution link:)
Video link:)
Credits & References
Directional derivative by en.wikipedia.org
https://www.geogebra.org/m/VKU7BrFK
Scalar and Vector Field Functionality by docs.sympy.org
introduction of the divergence of a vector field by auckland.figshare.com
A Guided Tour of Mathematical Physics by physics.bgu.ac.il
Directional derivative and gradient examples by mathinsight.org
Posts Related:
00Episode#PySeries — Python — Jupiter Notebook Quick Start with VSCode — How to Set your Win10 Environment to use Jupiter Notebook
01Episode#PySeries — Python — Python 4 Engineers — Exercises! An overview of the Opportunities Offered by Python in Engineering!
02Episode#PySeries — Python — Geogebra Plus Linear Programming- We’ll Create a Geogebra program to help us with our linear programming
03Episode#PySeries — Python — Python 4 Engineers — More Exercises! — Another Round to Make Sure that Python is Really Amazing!
04Episode#PySeries — Python — Linear Regressions — The Basics — How to Understand Linear Regression Once and For All!
05Episode#PySeries — Python — NumPy Init & Python Review — A Crash Python Review & Initialization at NumPy lib.
06Episode#PySeries — Python — NumPy Arrays & Jupyter Notebook — Arithmetic Operations, Indexing & Slicing, and Conditional Selection w/ np arrays.
07Episode#PySeries — Python — Pandas — Intro & Series — What it is? How to use it?
08Episode#PySeries — Python — Pandas DataFrames — The primary Pandas data structure! It is a dict-like container for Series objects
09Episode#PySeries — Python — Python 4 Engineers — Even More Exercises! — More Practicing Coding Questions in Python!
10Episode#PySeries — Python — Pandas — Hierarchical Index & Cross-section — Open your Colab notebook and here are the follow-up exercises!
11Episode#PySeries — Python — Pandas — Missing Data — Let’s Continue the Python Exercises — Filling & Dropping Missing Data
12Episode#PySeries — Python — Pandas — Group By — Grouping large amounts of data and compute operations on these groups
13Episode#PySeries — Python — Pandas — Merging, Joining & Concatenations — Facilities For Easily Combining Together Series or DataFrame
14Episode#PySeries — Python — Pandas — Pandas Data frame Examples: Column Operations
15Episode#PySeries — Python — Python 4 Engineers — Keeping It In The Short-Term Memory — Test Yourself! Coding in Python, Again!
16Episode#PySeries — NumPy — NumPy Review, Again;) — Python Review Free Exercises
17Episode#PySeries — Generators in Python — Python Review Free Hints
18Episode#PySeries — Pandas Review…Again;) — Python Review Free Exercise
19Episode#PySeries — MatlibPlot & Seaborn Python Libs — Reviewing theses Plotting & Statistics Packs
20Episode#PySeries — Seaborn Python Review — Reviewing theses Plotting & Statistics Packs
21Episode#PySeries — Pandas — Pandas — One Hot Encoding (OHE) — Pandas Dataframe Examples: AI Secrets
22Episode#PySeries — Pandas — One Hot Encoding (OHE) — Pandas Dataframe Examples: AI Secrets
23Episode#PySeries — Double Integrals in Python — And Area Between Curves Resolutions
24Episode#PySeries — 3D System — Extreme Points z=f(x,y) — Finding Extreme Points
25Episode#PySeries — 3D System— Extreme Points z=f(x) — Finding Extreme Points, again:)
26Episode#PySeries — Directional Derivative — Gradient — And More: Double & Triple Derivative & Chain Rule in Python (this one)