{"id":4768,"date":"2021-06-24T13:47:47","date_gmt":"2021-06-24T13:47:47","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2021\/06\/24\/what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites\/"},"modified":"2021-06-24T13:47:47","modified_gmt":"2021-06-24T13:47:47","slug":"what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2021\/06\/24\/what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites\/","title":{"rendered":"What you need to know before you get started: A brief tour of Calculus Pre-Requisites"},"content":{"rendered":"<p>Author: Stefania Cristina<\/p>\n<div>\n<p>We have <a href=\"https:\/\/machinelearningmastery.com\/calculus-in-machine-learning-why-it-works\/\" target=\"_blank\" rel=\"noopener\">previously<\/a> seen that calculus is one of the core mathematical concepts in machine learning that permits us to understand the internal workings of different machine learning algorithms.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>Calculus, in turn, builds on several fundamental concepts that derive from algebra and geometry. The importance of having these fundamentals at hand will become even more important as we work our way through more advanced topics of calculus, such as the evaluation of limits and the computation of derivatives, to name a few.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>In this tutorial, you will discover several pre-requisites that will help you work with calculus.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>After completing this tutorial, you will know:<\/p>\n<ul>\n<li>Linear and non-linear functions are central to calculus and machine learning, and many calculus problems involve their use.<span class=\"Apple-converted-space\">\u00a0<\/span>\n<\/li>\n<li>Fundamental concepts from algebra and trigonometry provide the foundations for calculus, and will become especially important as we tackle more advanced calculus topics. <span class=\"Apple-converted-space\">\u00a0 \u00a0 \u00a0<\/span>\n<\/li>\n<\/ul>\n<p>Let\u2019s get started.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<div id=\"attachment_12485\" style=\"width: 1034px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-scaled.jpg\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12485\" loading=\"lazy\" class=\"wp-image-12485 size-large\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-1024x724.jpg\" alt=\"\" width=\"1024\" height=\"724\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-1024x724.jpg 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-300x212.jpg 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-768x543.jpg 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-1536x1086.jpg 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_cover-2048x1448.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/a><\/p>\n<p id=\"caption-attachment-12485\" class=\"wp-caption-text\">What you need to know before you get started: A brief tour of Calculus Pre-Requisites<br \/>Photo by <a href=\"https:\/\/unsplash.com\/photos\/A5rCN8626Ck\">Dino Reichmuth<\/a>, some rights reserved.<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<h2><b>Tutorial Overview<\/b><\/h2>\n<p>This tutorial is divided into three parts; they are:<\/p>\n<ul>\n<li>The Concept of a Function<\/li>\n<li>Fundamentals of Pre-Algebra and Algebra<\/li>\n<li>Fundamentals of Trigonometry<\/li>\n<\/ul>\n<h2>\n<b>The Concept of a Function<\/b><b><span class=\"Apple-converted-space\">\u00a0<\/span><\/b><br \/>\n<\/h2>\n<p>A function is a rule that defines the relationship between a dependent variable and an independent variable.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<blockquote>\n<p><i>Examples are all around us: The average daily temperature for your city depends on, and is a function of, the time of year; the distance an object has fallen is a function of how much time has elapsed since you dropped it; the area of a circle is a function of its radius; and the pressure of an enclosed gas is a function of its temperature.<span class=\"Apple-converted-space\">\u00a0<\/span><\/i><\/p>\n<p><i>\u2013 <\/i>Page 43, Calculus for Dummies, 2016.<\/p>\n<\/blockquote>\n<p>In machine learning, a neural network learns a function by which it can represent the relationship between features in the input, the independent variable, and the expected output, the dependent variable. In such a scenario, therefore, the learned function defines a deterministic mapping between the input values and one or more output values. We can represent this mapping as follows:<\/p>\n<p style=\"text-align: center;\">Output(s) = function(Inputs)<\/p>\n<p>More formally, however, a function is often represented by <i>y<\/i> = <i>f<\/i>(<i>x<\/i>), which translates to <i>y is a function of x<\/i>. This notation specifies <i>x<\/i> as the independent input variable that we already know, whereas <i>y<\/i> is the dependent output variable that we wish to find. For example, if we consider the squaring function, <i>f<\/i>(<i>x<\/i>) = <i>x<\/i><sup>2<\/sup>, then inputting a value of 3 would produce an output of 9:<\/p>\n<p style=\"text-align: center;\"><i>y<\/i> = <i>f<\/i>(3) = 9<\/p>\n<p>A function can also be represented pictorially by a <i>graph<\/i> on an <i>x<\/i>\u2013<i>y<\/i> coordinate plane.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<blockquote>\n<p><i>By the graph of the function f we mean the collection of all points (x, f(x)).<span class=\"Apple-converted-space\">\u00a0<\/span><\/i><\/p>\n<p><i>\u2013 <\/i>Page 13, The Hitchhiker\u2019s Guide To Calculus, 2019.<\/p>\n<\/blockquote>\n<p>When graphing a function, the independent input variable is placed on the <i>x<\/i>-axis, while the dependent output variable goes on the <i>y<\/i>-axis. A graph helps to illustrate the relationship between the independent and dependent variables better: is the graph (and, hence, the relationship) rising or falling, and by which rate?<\/p>\n<p>A straight line is one of the simplest functions that can be graphed on the coordinate plane. Take, for example, the graph of the line <i>y<\/i> = 3<i>x<\/i> + 5:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12472\" style=\"width: 310px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12472\" loading=\"lazy\" class=\"wp-image-12472\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1-702x1024.png\" alt=\"\" width=\"300\" height=\"438\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1-702x1024.png 702w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1-206x300.png 206w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1-768x1121.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_1.png 884w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p id=\"caption-attachment-12472\" class=\"wp-caption-text\">Line Plot of a Linear Function<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>This straight line can be described by a <i>linear<\/i> function, so called because the output changes proportionally to any change in the input. The linear function that describes this straight line can be represented in slope-intercept form, where the slope is denoted by <i>m<\/i>, and the <i>y<\/i>-intercept by <i>c<\/i>:<\/p>\n<p style=\"text-align: center;\"><i>f<\/i>(<i>x<\/i>) = <i>mx<\/i> + <i>c<\/i> = 3<i>x<\/i> + 5<\/p>\n<p>We had seen how to calculate the slope when we addressing the topic of <a href=\"https:\/\/machinelearningmastery.com\/?p=12415&amp;preview=true\" target=\"_blank\" rel=\"noopener\">Rate of Change<\/a>.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>If we had to consider the special case of setting the slope to zero, the resulting horizontal line would be described by a <i>constant<\/i> function of the form:<\/p>\n<p style=\"text-align: center;\"><i>f<\/i>(<i>x<\/i>) = <i>c<\/i> = 5<\/p>\n<p>Within the context of machine learning, the calculation defined by such a linear function is implemented by every neuron in a neural network. Specifically, each neuron receives a set of<span class=\"Apple-converted-space\">\u00a0 <\/span><i>n<\/i> inputs, <i>x<\/i><i><sub>i<\/sub><\/i>, from the previous layer of neurons or from the training data, and calculates a weighted sum of these inputs (where the <i>weight<\/i>,<i> w<\/i><i><sub>i<\/sub><\/i>, is more common term for the slope, <i>m<\/i>, in machine learning) to produce an output, <i>z<\/i>:<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<div id=\"attachment_12473\" style=\"width: 158px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12473\" loading=\"lazy\" class=\"wp-image-12473\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2-1024x188.png\" alt=\"\" width=\"148\" height=\"27\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2-1024x188.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2-300x55.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2-768x141.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_2.png 1462w\" sizes=\"(max-width: 148px) 100vw, 148px\"><\/a><\/p>\n<p id=\"caption-attachment-12473\" class=\"wp-caption-text\">The Weighted Sum of Inputs<br \/>Taken from Deep Learning<\/p>\n<\/div>\n<p>The process of training a neural network involves learning the weights that best represent the patterns in the input dataset, which process is carried out by the gradient descent algorithm.<\/p>\n<p>In addition to the linear function, there exists another family of <i>non-linear<\/i> functions.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>The simplest of all non-linear functions can be considered to be the parabola, that may be described by:<\/p>\n<p style=\"text-align: center;\"><i>y<\/i> = <i>f<\/i>(<i>x<\/i>) = <i>x<\/i><sup>2<\/sup><\/p>\n<p>When graphed, we find that this is an even function, because it is symmetric about the <i>y<\/i>-axis, and never falls below the <i>x<\/i>-axis.<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12474\" style=\"width: 310px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12474\" loading=\"lazy\" class=\"wp-image-12474\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3-958x1024.png\" alt=\"\" width=\"300\" height=\"321\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3-958x1024.png 958w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3-281x300.png 281w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3-768x821.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3-1437x1536.png 1437w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_3.png 1514w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p id=\"caption-attachment-12474\" class=\"wp-caption-text\">Line Plot of a Parabola<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>Nonetheless, non-linear functions can take many different shapes. Consider, for instance, the exponential function of the form <i>f<\/i>(<i>x<\/i>) = <i>b<\/i><i><sup>x<\/sup><\/i>, which grows or decays indefinitely, or <i>monotonically<\/i>, depending on the value of <i>x<\/i>:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12476\" style=\"width: 505px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12476\" loading=\"lazy\" class=\"wp-image-12476\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-1024x488.png\" alt=\"\" width=\"495\" height=\"236\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-1024x488.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-300x143.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-768x366.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-1536x732.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_5-2048x977.png 2048w\" sizes=\"(max-width: 495px) 100vw, 495px\"><\/a><\/p>\n<p id=\"caption-attachment-12476\" class=\"wp-caption-text\">Line Plot of an Exponential Function<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>Or the logarithmic function of the form <i>f<\/i>(<i>x<\/i>) = <i>log<\/i><i><sub>2<\/sub><\/i><i>x<\/i>, which is similar to the exponential function but with the <i>x<\/i>\u2013 and <i>y<\/i>-axes switched:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12477\" style=\"width: 399px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12477\" loading=\"lazy\" class=\"wp-image-12477\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6-1024x911.png\" alt=\"\" width=\"389\" height=\"346\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6-1024x911.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6-300x267.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6-768x684.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_6.png 1400w\" sizes=\"(max-width: 389px) 100vw, 389px\"><\/a><\/p>\n<p id=\"caption-attachment-12477\" class=\"wp-caption-text\">Line Plot of a Logarithmic Function<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>Of particular interest for deep learning are the logistic, tanh, and the rectified linear units (ReLU) non-linear functions, which serve as <i>activation functions<\/i>:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12475\" style=\"width: 310px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12475\" loading=\"lazy\" class=\"wp-image-12475\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4-553x1024.png\" alt=\"\" width=\"300\" height=\"555\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4-553x1024.png 553w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4-162x300.png 162w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4-768x1422.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4-830x1536.png 830w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_4.png 846w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p id=\"caption-attachment-12475\" class=\"wp-caption-text\">Line Plots of the Logistic, Tanh and ReLU Functions<br \/>Taken from Deep Learning<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>The importance of these activation functions lies in the introduction of a non-linear mapping into the processing of a neuron. If we had to rely solely on the linear regression performed by each neuron in calculating a weighted sum of the inputs, then we would be restricted to learning only a linear mapping from the inputs to the outputs. However, many real-world relationships are more complex than this, and a linear mapping would not accurately model them. Introducing a non-linearity to the output, <i>z<\/i>, of the neuron, allows the neural network to model such non-linear relationships:<\/p>\n<p style=\"text-align: center;\">Output = activation_function(z)<\/p>\n<blockquote>\n<p><i>\u2026 a neuron, the fundamental building block of neural networks and deep learning, is defined by a simple two-step sequence of operations: calculating a weighted sum and then passing the result through an activation function.<span class=\"Apple-converted-space\">\u00a0<\/span><\/i><\/p>\n<p><i>\u2013 <\/i>Page 76, Deep Learning, 2019.<\/p>\n<\/blockquote>\n<p>Non-linear functions appear elsewhere in the process of training a neural network too, in the form of error functions.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>A non-linear error function can be generated by calculating the error between the predicted and the target output values as the weights of the model change. Its shape can be as simple as a parabola, but most often it is characterised by many local minima and saddle points. The gradient descent algorithm descends this non-linear error function by calculating the slope of the <i>tangent<\/i> line that touches the curve at some particular instance: another important concept in calculus that permits us to analyse complex curved functions by cutting them into many infinitesimal straight pieces arranged alongside one another.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<h2><b>Fundamentals of Pre-Algebra and Algebra<\/b><\/h2>\n<p>Algebra is one of the important foundations of calculus.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<blockquote>\n<p><i>Algebra is the language of calculus. You can\u2019t do calculus without knowing algebra any more than you can write Chinese poetry without knowing Chinese.<span class=\"Apple-converted-space\">\u00a0<\/span><\/i><\/p>\n<p><i>\u2013 <\/i>Page 29, Calculus for Dummies, 2016.<\/p>\n<\/blockquote>\n<p>There are several fundamental concepts of algebra that turn out to be useful for calculus, such as those concerning fractions, powers, square roots, and logarithms.<\/p>\n<p>Let\u2019s first start by revising the basics for working with fractions.<\/p>\n<ul>\n<li>\n<b>Division by Zero<\/b>: The denominator of a fraction can never be equal to zero. For example, the result of a fraction such as 5\/0 is undefined. The intuition behind this is that you can never add up the value in the numerator, using multiples of the zero in the denominator.<span class=\"Apple-converted-space\">\u00a0<\/span>\n<\/li>\n<li>\n<b>Reciprocal<\/b>: The reciprocal of a fraction is its multiplicative inverse. In simpler terms, to find the reciprocal of a fraction, flip it upside down. Hence, the reciprocal of 3\/4, for instance, becomes 4\/3.<\/li>\n<li>\n<b>Multiplication of Fractions<\/b>: Multiplication between fractions is as straightforward as multiplying across the numerators, and multiplying across the denominators:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(a \/ b) * (c \/ d) = ac \/ bd<\/p>\n<ul>\n<li>\n<b>Division of Fractions<\/b>: The division of fractions is very similar to multiplication, but with an additional step; the reciprocal of the second fraction is first found before multiplying. Hence, considering again two generic fractions:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(a \/ b) \u00f7 (c \/ d) = (a \/ b) * (d \/ c) = ad \/ bc<\/p>\n<ul>\n<li>\n<b>Addition of Fractions<\/b>: An important first step is to find a common denominator between all fractions to be added. Any common denominator will do, but we usually find the <i>least<\/i> common denominator. Finding the least common denominator is, at times, as simple as multiplying the denominators of all individual fractions:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(a \/ b) + (c \/ d) = (ad + cb) \/ bd<\/p>\n<ul>\n<li>\n<b>Subtraction of Fractions<\/b>: The subtraction of fractions follows a similar procedure as for the addition of fractions:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(a \/ b) \u2013 (c \/ d) = (ad \u2013 cb) \/ bd<\/p>\n<ul>\n<li>\n<b>Cancelling in Fractions<\/b>: Fractions with an unbroken chain of multiplications across the entire numerator, as well as across the entire denominator, can be simplified by cancelling out any common terms that appear in both the numerator and the denominator:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">a<sup>3<\/sup>b<sup>2<\/sup> \/ ac = a<sup>2<\/sup>b<sup>2<\/sup> \/ c<\/p>\n<p>The next important pre-requisite for calculus revolves around exponents, or powers as they are also commonly referred to. There are several rules to keep in mind when working with powers too.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<ul>\n<li>\n<b>The Power of Zero<\/b>: The result of any number (whether rational or irrational, negative or positive, <i>except<\/i> for zero itself) raised to the power of zero, is equal to one:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">x<sup>0<\/sup> = 1<\/p>\n<ul>\n<li>\n<b>Negative Powers<\/b>: A base number raised to a negative power turns into a fraction, but does not change sign:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">x<sup>-a<\/sup> = 1 \/ x<sup>a<\/sup><\/p>\n<ul>\n<li>\n<b>Fractional Powers<\/b>: A base number raised to a fractional power can be converted into a root problem:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">x<sup>a\/b<\/sup> = (<sup>a<\/sup>\u221ax)<sup>b<\/sup> = <sup>a<\/sup>\u221ax<sup>b<\/sup><\/p>\n<ul>\n<li>\n<b>Addition of Powers<\/b>: If two (or more) <i>equivalent<\/i> base terms are being multiplied to one another, then their powers may be added:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">x<sup>a<\/sup> * x<sup>b<\/sup> = x<sup>(a + b)<\/sup><\/p>\n<ul>\n<li>\n<b>Subtraction of Powers<\/b>: Similarly, if two equivalent base terms are being divided, then their power may be subtracted:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">x<sup>a<\/sup> \/ x<sup>b<\/sup> = x<sup>(a \u2013 b)<\/sup><\/p>\n<ul>\n<li>\n<b>Power of Powers<\/b>: If a power is also raised to a power, then the two powers may be multiplied by one another:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(x<sup>a<\/sup>)<sup>b<\/sup> = x<sup>(ab)<\/sup><\/p>\n<ul>\n<li>\n<b>Distribution of Powers<\/b>: Whether the base numbers are being multiplied or divided, the power may be distributed to each variable. However, it <i>cannot<\/i> be distributed if the base numbers are, otherwise, being added or subtracted:<\/li>\n<\/ul>\n<p style=\"text-align: center;\">(xyz)<sup>a<\/sup> = x<sup>a <\/sup>y<sup>a <\/sup>z<sup>a<\/sup><\/p>\n<p style=\"text-align: center;\">(x \/ y)<sup>a = <\/sup>x<sup>a <\/sup>\/ y<sup>a<\/sup><\/p>\n<p>Similarly, we have rules for working with roots and rules for working with logarithms:<\/p>\n<div id=\"attachment_12478\" style=\"width: 360px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12478\" loading=\"lazy\" class=\"wp-image-12478\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-1024x957.png\" alt=\"\" width=\"350\" height=\"327\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-1024x957.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-300x280.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-768x718.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-1536x1436.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_7-2048x1914.png 2048w\" sizes=\"(max-width: 350px) 100vw, 350px\"><\/a><\/p>\n<p id=\"caption-attachment-12478\" class=\"wp-caption-text\">Properties of Roots<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<div id=\"attachment_12479\" style=\"width: 360px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12479\" loading=\"lazy\" class=\"wp-image-12479\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-1024x669.png\" alt=\"\" width=\"350\" height=\"229\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-1024x669.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-300x196.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-768x501.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-1536x1003.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_8-2048x1337.png 2048w\" sizes=\"(max-width: 350px) 100vw, 350px\"><\/a><\/p>\n<p id=\"caption-attachment-12479\" class=\"wp-caption-text\">Properties of Logarithms<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>Finally, knowing how to solve quadratic equations can also come in handy in calculus.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>If the quadratic equation is factorable, then the easiest method to solve it is to express the sum of terms in product form. For example, the following quadratic equation can be factored as follows:<\/p>\n<p style=\"text-align: center;\">x<sup>2<\/sup> \u2013 9 = (x + 3)(x \u2013 3) = 0<\/p>\n<p>Setting each factor to zero permits us to find a solution to this equation, which in this case is <i>x<\/i> = \u00b13.<\/p>\n<p>Alternatively, the following quadratic formula may be used:<\/p>\n<div id=\"attachment_12480\" style=\"width: 160px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12480\" loading=\"lazy\" class=\"wp-image-12480\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9-1024x321.png\" alt=\"\" width=\"150\" height=\"47\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9-1024x321.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9-300x94.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9-768x241.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_9.png 1486w\" sizes=\"(max-width: 150px) 100vw, 150px\"><\/a><\/p>\n<p id=\"caption-attachment-12480\" class=\"wp-caption-text\">The Quadratic Formula<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>If we had to consider the same quadratic equation as above, then we would set the coefficient values to, <i>a<\/i> = 1, <i>b<\/i> = 0, and <i>c<\/i> = 9, which would again result in <i>x<\/i> = \u00b13 as our solution.<\/p>\n<h2><b>Fundamentals of Trigonometry<\/b><\/h2>\n<p>Trigonometry revolves around three main trigonometric functions, which are the sine, the cosine and the tangent, and their reciprocals, which are the cosecant, the secant and the cotangent, respectively. <span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>When applied to a right angled triangle, these three main functions allow us to calculate the lengths of the sides, or any of the other two acute angles of the triangle, depending on the information that we have available to start off with. Specifically, for some angle, <i>x<\/i>, in the following 3-4-5 triangle:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12481\" style=\"width: 310px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12481\" loading=\"lazy\" class=\"wp-image-12481\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10-1024x694.png\" alt=\"\" width=\"300\" height=\"203\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10-1024x694.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10-300x203.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10-768x520.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10-1536x1040.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_10.png 1952w\" sizes=\"(max-width: 300px) 100vw, 300px\"><\/a><\/p>\n<p id=\"caption-attachment-12481\" class=\"wp-caption-text\">The 3-4-5 Triangle<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<div id=\"attachment_12482\" style=\"width: 519px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12482\" loading=\"lazy\" class=\"wp-image-12482\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11-1024x80.png\" alt=\"\" width=\"509\" height=\"40\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11-1024x80.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11-300x23.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11-768x60.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11-1536x120.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_11.png 1792w\" sizes=\"(max-width: 509px) 100vw, 509px\"><\/a><\/p>\n<p id=\"caption-attachment-12482\" class=\"wp-caption-text\">The Three Main Trigonometric Functions<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>The sine, cosine and tangent functions only work with right-angled triangles, and hence can only be used in the calculation of acute angles that are smaller than 90<sup>o<\/sup>. Nonetheless, if we had to work within the <i>unit circle<\/i> on the <i>x<\/i>\u2013<i>y<\/i> coordinate plane, then we would be able to apply trigonometry to all angles between 0<sup>o<\/sup> and 360<sup>o<\/sup>:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12483\" style=\"width: 354px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12483\" loading=\"lazy\" class=\"wp-image-12483\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12-1024x823.png\" alt=\"\" width=\"344\" height=\"276\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12-1024x823.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12-300x241.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12-768x617.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12-1536x1234.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_12.png 1710w\" sizes=\"(max-width: 344px) 100vw, 344px\"><\/a><\/p>\n<p id=\"caption-attachment-12483\" class=\"wp-caption-text\">The Unit Circle<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>The unit circle has its center at the origin of the <i>x<\/i>\u2013<i>y<\/i> coordinate plane, and a radius of one unit. Rotations around the unit circle are performed in a counterclockwise manner, starting from the positive <i>x<\/i>-axis. The cosine of the rotated angle would then be given by the <i>x<\/i>-coordinate of the point that hits the unit circle, whereas the <i>y<\/i>-coordinate specifies the sine of the rotated angle. It is also worth noting that the quadrants are symmetrical, and hence a point in one quadrant has symmetrical counterparts in the other three.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>The graphed sine, cosine and tangent functions appear as follows:<\/p>\n<p>\u00a0<\/p>\n<div id=\"attachment_12484\" style=\"width: 482px\" class=\"wp-caption aligncenter\">\n<a href=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12484\" loading=\"lazy\" class=\"wp-image-12484\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-1024x727.png\" alt=\"\" width=\"472\" height=\"335\" srcset=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-1024x727.png 1024w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-300x213.png 300w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-768x545.png 768w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-1536x1091.png 1536w, https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2021\/06\/what_you_need_to_know_13-2048x1454.png 2048w\" sizes=\"(max-width: 472px) 100vw, 472px\"><\/a><\/p>\n<p id=\"caption-attachment-12484\" class=\"wp-caption-text\">Line Plots of the Sine, Cosine and Tangent Functions<br \/>Taken from Calculus for Dummies<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>All functions are periodic, with the sine and cosine functions featuring the same shape albeit being displaced by 90<sup>o<\/sup> between one another. The sine and cosine functions may, indeed, be easily sketched from the calculated <i>x<\/i>\u2013 and <i>y<\/i>-coordinates as one rotates around the unit circle. The tangent function may also be sketched similarly, since for any angle \ud835\udf03 this function may be defined by:<\/p>\n<p style=\"text-align: center;\">tan \ud835\udf03 = sin \ud835\udf03 \/ cos \ud835\udf03 = <i>y<\/i> \/ <i>x<\/i><\/p>\n<p>The tangent function is undefined at \u00b190<sup>o<\/sup>, since the cosine in the denominator returns a value of zero at this angle. Hence, we draw vertical <i>asymptotes<\/i> at these angles, which are imaginary lines that the curve approaches but never touches.<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p>One final note concerns the inverse of these trigonometric functions. Taking the sine function as an example, its inverse is denoted by sin<sup>-1<\/sup>. This is not to be mistaken for the cosecant function, which is rather the <i>reciprocal<\/i> of sine, and hence not the same as its inverse. <span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<h2><b>Further Reading<\/b><\/h2>\n<p>This section provides more resources on the topic if you are looking to go deeper.<\/p>\n<h3><b>Books<\/b><\/h3>\n<ul>\n<li>\n<a href=\"https:\/\/www.amazon.com\/Deep-Learning-Press-Essential-Knowledge\/dp\/0262537559\/ref=sr_1_4?dchild=1&amp;keywords=deep+learning&amp;qid=1622968138&amp;sr=8-4\">Deep Learning<\/a>, 2019.<\/li>\n<li>\n<a href=\"https:\/\/www.amazon.com\/Calculus-Dummies-Math-Science\/dp\/1119293499\/ref=as_li_ss_tl?dchild=1&amp;keywords=calculus&amp;qid=1606170839&amp;sr=8-2&amp;linkCode=sl1&amp;tag=inspiredalgor-20&amp;linkId=539ed0b89e326b6eb27b1a9a028e9cee&amp;language=en_US\">Calculus for Dummies<\/a>, 2016.<\/li>\n<li>\n<a href=\"https:\/\/www.amazon.com\/Hitchhikers-Calculus-Classroom-Resource-Materials\/dp\/1470449625\/ref=as_li_ss_tl?dchild=1&amp;keywords=The+Hitchhiker%27s+Guide+to+Calculus&amp;qid=1606170787&amp;sr=8-1&amp;linkCode=sl1&amp;tag=inspiredalgor-20&amp;linkId=f8875fa9736746bf29d78fc0c55553d8&amp;language=en_US\">The Hitchhiker\u2019s Guide to Calculus<\/a>, 2019.<\/li>\n<\/ul>\n<h2><b>Summary<\/b><\/h2>\n<p>In this tutorial, you discovered several pre-requisites for working with calculus.<\/p>\n<p>Specifically, you learned:<\/p>\n<ul>\n<li>Linear and non-linear functions are central to calculus and machine learning, and many calculus problems involve their use.<span class=\"Apple-converted-space\">\u00a0<\/span>\n<\/li>\n<li>Fundamental concepts from algebra and trigonometry provide the foundations for calculus, and will become especially important as we tackle more advanced calculus topics.<\/li>\n<\/ul>\n<p>Do you have any questions?<br \/>\nAsk your questions in the comments below and I will do my best to answer.<\/p>\n<p>The post <a rel=\"nofollow\" href=\"https:\/\/machinelearningmastery.com\/what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites\/\">What you need to know before you get started: A brief tour of Calculus Pre-Requisites<\/a> appeared first on <a rel=\"nofollow\" href=\"https:\/\/machinelearningmastery.com\/\">Machine Learning Mastery<\/a>.<\/p>\n<\/div>\n<p><a href=\"https:\/\/machinelearningmastery.com\/what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites\/\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Stefania Cristina We have previously seen that calculus is one of the core mathematical concepts in machine learning that permits us to understand the [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2021\/06\/24\/what-you-need-to-know-before-you-get-started-a-brief-tour-of-calculus-pre-requisites\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":4769,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[24],"tags":[],"_links":{"self":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/4768"}],"collection":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=4768"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/4768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/4769"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=4768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=4768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=4768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}