Andrew Gurung
  • Introduction
  • Data Science
    • Natural Language Processing
      • Sentiment analysis using Twitter
    • Linear Algebra
      • Linear algebra explained in four pages
      • Vectors
        • Vector Basics
        • Vector Projection
        • Cosine Similarity
        • Vector Norms and Orthogonality
        • Linear combination and span
        • Linear independence and Basis vectors
      • Matrices
        • Matrix Arithmetic
        • Matrix Operations
        • Functions and Linear Transformations
        • Matrix types
      • Eigendecomposition, Eigenvectors and Eigenvalues
      • Principle Component Analysis (PCA)
      • Singular-Value Decomposition(SVD)
      • Linear Algebra: Deep Learning Book
    • Calculus
      • Functions, Limits, Continuity and Differentiability
      • Scalar Derivative and Partial Derivatives
      • Gradient
      • Matrix Calculus
      • Maxima and Minima using Derivatives
      • Gradient Descent and its types
    • Statistics and Probability
      • Probability Rules and Axioms
      • Types of Events
      • Frequentist vs Bayesian View
      • Random Variables
      • MLE, MAP, and Naive Bayes
      • Probability Distributions
      • P-Value and hypothesis test
    • 7 Step DS Process
      • 1: Business Requirement
      • 2: Data Acquisition
      • 3: Data Processing
        • SQL Techniques
        • Cleaning Text Data
      • 4: Data Exploration
      • 5: Modeling
      • 6: Model deployment
      • 7: Communication
    • Miscellaneous
      • LaTeX commands
  • Computer Science
    • Primer
      • Big O Notation
  • Life
    • Health
      • Minimalist Workout Routine
      • Reddit FAQ on Nootropics
      • Hiking/Biking Resources
    • Philosophy
      • Aristotle's Defense of Private Property
    • Self-improvement
      • 100 Mental Models
      • Don't break the chain
      • Cal Newport's 5 Productivity tips
      • Andrew Ng's advice on deliberate practice
      • Atomic Habits
      • Turn sound effects off in Outlook
    • Food and Travel
      • 2019 Guide to Pesticides in Produce
      • Recipe
        • Spicy Sesame Noodles
      • Travel
        • Hiking
    • Art
      • Scott Adams: 80% of the rules of good writing
      • Learn Blues Guitar
    • Tools
      • Software
        • Docker
        • Visual Studio Code
        • Terminal
        • Comparing Git Workflow
      • Life Hacks
        • DIY Deck Cleaner
  • Knowledge Vault
    • Book
      • The Almanack of Naval Ravikant
    • Media
    • Course/Training
Powered by GitBook
On this page
  • Derivative
  • Find a Derivative
  • Scalar derivative rules
  • Partial Derivatives
  • Find Partial Derivatives

Was this helpful?

  1. Data Science
  2. Calculus

Scalar Derivative and Partial Derivatives

PreviousFunctions, Limits, Continuity and DifferentiabilityNextGradient

Last updated 6 years ago

Was this helpful?

Derivative

In calculus, derivative can be approached in two different ways. One is geometrical (as a slope of a curve) and the other one is physical (as a rate of change). The process of finding a derivative is called "differentiation"

'The derivative of' is commonly written as ddx\frac{d}{dx}dxd​ or f′(x)f'(x)f′(x)

Find a Derivative

Example:

Scalar derivative rules

Partial Derivatives

A partial derivative of a function of several variables is its derivative with respect to one of those variables, with the others held constant.

Find Partial Derivatives

a) Partial derivative with respect to x (Treat y as a constant like a random number 12)

b) Partial derivative with respect to y (Treat x as a constant)

f′(x)=ddxx2=2xf'(x)=\frac{d}{dx}x^2 = 2xf′(x)=dxd​x2=2x

means the slope or "rate of change" at any point in the graph/function x2x^2x2 is 2x. So when x=2 the slope is 2x = 4

'The partial derivative with respect to x' is written as ∂f∂x\frac{\partial f}{\partial x}∂x∂f​ or fx′f'_xfx′​where ∂{\partial}∂is called 'del' or 'curly dee'.

Consider a function with two variables (x and y): f(x,y)=x2+y3f(x,y) = x^2 + y^3f(x,y)=x2+y3

fx′=∂f∂x=2x+0=2xf'_x = \frac{\partial f}{\partial x} = 2x+0=2xfx′​=∂x∂f​=2x+0=2x
fy′=∂f∂y=0+3y2=3y2f'_y =\frac{\partial f}{\partial y}= 0+3y^2=3y^2fy′​=∂y∂f​=0+3y2=3y2

Link: - -

- Matrix Calculus For Deep Learning
MathIsFun: Introduction to Derivatives
MathIsFun: Partial Derivatives
- Khan Academy: Basic Derivative Rules