JulienBeaulieu
  • Introduction
  • Sciences
    • Math
      • Probability
        • Bayes Rule
        • Binomial distribution
        • Conditional Probability
      • Statistics
        • Descriptive Statistics
        • Inferential Statistics
          • Normal Distributions
          • Sampling Distributions
          • Confidence Intervals
          • Hypothesis Testing
          • AB Testing
        • Simple Linear Regression
        • Multiple Linear Regression
          • Statistical learning course
          • Model Assumptions And How To Address Each
        • Logistic Regression
      • Calculus
        • The big picture of Calculus
          • Derivatives
          • 2nd derivatives
          • The exponential e^x
        • Calculus
        • Gradient
      • Linear Algebra
        • Matrices
          • Matrix Multiplication
          • Inverses and Transpose and permutations
        • Vector Space and subspaces
        • Orthogonality
          • Orthogonal Sets
          • Projections
          • Least Squares
        • Gaussian Elimination
    • Programming
      • Command Line
      • Git & GitHub
      • Latex
      • Linear Algebra
        • Element-wise operations, Multiplication Transpose
      • Encodings and Character Sets
      • Uncategorized
      • Navigating Your Working Directory and File I/O
      • Python
        • Problem Solving
        • Strings
        • Lists & Dictionaries
        • Storing Data
        • HTTP Requests
      • SQL
        • Basic Statements
        • Entity Relationship Diagram
      • Jupyter Notebooks
      • Data Analysis
        • Data Visualization
          • Data Viz Cheat Sheet
          • Explanatory Analysis
          • Univariate Exploration of Data
            • Bar Chart
            • Pie Charts
            • Histograms
            • Kernel Density Estimation
            • Figures, Axes, and Subplots
            • Choosing a Plot for Discrete Data
            • Scales and Transformations (Log)
          • Bivariate Exploration of Data
            • Scatterplots
            • Overplotting, Transparency, and Jitter
            • Heatmaps
            • Violin & Box Plots
            • Categorical Variable Analysis
            • Faceting
            • Line Plots
            • Adapted Bar Charts
            • Q-Q, Swarm, Rug, Strip, Stacked, and Rigeline Plots
          • Multivariate Exploration of Data
            • Non-Positional Encodings for Third Variables
            • Color Palettes
            • Faceting for Multivariate Data
            • Plot and Correlation Matrices
            • Other Adaptations of Bivariate PLots
            • Feature Engineering for Data Viz
        • Python - Cheat Sheet
    • Machine Learning
      • Courses
        • Practical Deep learning for coders
          • Convolutional Neural Networks
            • Image Restauration
            • U-net
          • Lesson 1
          • Lesson 2
          • Lesson 3
          • Lesson 4 NLP, Collaborative filtering, Embeddings
          • Lesson 5 - Backprop, Accelerated SGD
          • Tabular data
        • Fast.ai - Intro to ML
          • Neural Nets
          • Business Applications
          • Class 1 & 2 - Random Forests
          • Lessons 3 & 4
      • Unsupervised Learning
        • Dimensionality Reduction
          • Independant Component Analysis
          • Random Projection
          • Principal Component Analysis
        • K-Means
        • Hierarchical Clustering
        • DBSCAN
        • Gaussian Mixture Model Clustering
        • Cluster Validation
      • Preprocessing
      • Machine Learning Overview
        • Confusion Matrix
      • Linear Regression
        • Feature Scaling and Normalization
        • Regularization
        • Polynomial Regression
        • Error functions
      • Decision Trees
      • Support Vector Machines
      • Training and Tuning
      • Model Evaluation Metrics
      • NLP
      • Neural Networks
        • Perceptron Algorithm
        • Multilayer Perceptron
        • Neural Network Architecture
        • Gradient Descent
        • Backpropagation
        • Training Neural Networks
  • Business
    • Analytics
      • KPIs for a Website
  • Books
    • Statistics
      • Practice Statistics for Data Science
        • Exploring Binary and Categorical Data
        • Data and Sampling Distributions
        • Statistical Experiments and Significance Testing
        • Regression and Prediction
        • Classification
        • Correlation
    • Pragmatic Thinking and Learning
      • Untitled
    • A Mind For Numbers: How to Excel at Math and Science
      • Focused and diffuse mode
      • Procrastination
      • Working memory and long term memory
        • Chunking
      • Importance of sleeping
      • Q&A with Terrence Sejnowski
      • Illusions of competence
      • Seeing the bigger picture
        • The value of a Library of Chunks
        • Overlearning
Powered by GitBook
On this page

Was this helpful?

  1. Sciences
  2. Math
  3. Calculus
  4. The big picture of Calculus

2nd derivatives

PreviousDerivativesNextThe exponential e^x

Last updated 5 years ago

Was this helpful?

Important to know, especially for problems with a max or a min. How do you locate one? That's the 1st derivative's job. The 1st derivative is 0 if we have a min or max. When we set the derivative to 0 and solve, we find a max or min.

The 2nd derivative tells us the bending. It tells us if it's a min or a max. Now comes the derivative of the speed: that is the acceration. The rate at which we're speeding up or slowing down.

Distance = Height, speed = slope, acceleration = bending.

Other example:

We know y=sinx it's bending down thanks to the 2nd derivative which is below 0.

Let's continue these graphs over Pie/2 to see something:

the point where y=sinx = 0 is the point where the bending changes. Goes from bending down to bending up. That is because y''=0.

1 more example:

To find the min or max we take the derivative : y'=3x^2-2x and solve for when that equation = 0.

To know which one is max or min, we can look at the graph. Also we're talking about local max and mins.

At x=0 we expect to see the slope = 0. Yes that's true. Also that the second derivative is negative because it's bending down. It is! y'' at x=0 = y'' = 6*0 - 2 = -2. It is neg! So it's a max.

At x = 2/3 we're expecting a min, because Y'' is positive.

How do we find the inflection point? it's when y'' = 0. And on the graph, y'' is 0 when x=1/3.

Example: driving to work

Where a is the straight distance from home to the highway. b is that point to MIT. x is what we're trying to solve. We're looking for the shortest way to MIT. Road = 30mph and highway 60mph.

I minimize the equation by taking its derivative and setting x to 0. Derivative = what's under the line...

Setting to 0 means:

1 side is neg, the other positive... So this =

multiply by 60, and by the square root. Then we square everything to get rid of the square root. Now we have an equation. Final simplification, we get:

To finish the problem, we'd have to take the 2nd derivative and look at the sign of it. We would have found that it's a positive sign, so bending upwards so that this is a minimum time not maximum.