Explore Transcripts

Calculus Visualized - by Dennis F Davis

Dennis Davis938.5K views3:00:4428,154 wordsEnglish

Video Description

This 3-hour video covers most concepts in the first two semesters of calculus, primarily Differentiation and Integration. The visual and animation style is intended to be informative and provide insights into the logical reasoning behind the rules and formulas in calculus. Timestamps 0:00 Can you learn calculus in 3 hours? 2:23 Calculus is all about performing two operations on functions 3:32 Rate of change as slope of a straight line 5:37 The dilemma of the slope of a curvy line 7:04 The slope between very close points 11:30 The limit 15:36 The derivative (and differentials of x and y) 21:48 Differential notation 27:58 The constant rule of differentiation 29:15 The power rule of differentiation 35:36 Visual interpretation of the power rule 39:19 The addition (and subtraction) rule of differentiation 41:34 The product rule of differentiation 43:08 Combining rules of differentiation to find the derivative of a polynomial 44:53 Differentiation super-shortcuts for polynomials 48:03 Solving optimization problems with derivatives 52:46 The second derivative 59:59 Trig rules of differentiation (for sine and cosine) 1:05:54 Knowledge test: product rule example 1:06:32 The chain rule for differentiation (composite functions) 1:15:23 The quotient rule for differentiation 1:19:04 The derivative of the other trig functions (tan, cot, sec, cos) 1:20:55 Algebra overview: exponentials and logarithms 1:33:12 Differentiation rules for exponents 1:41:33 Differentiation rules for logarithms 1:45:32 The anti-derivative (aka integral) 1:46:21 The power rule for integration 1:48:32 The power rule for integration won't work for 1/x 1:52:37 The constant of integration +C 1:57:26 Anti-derivative notation 1:59:59 The integral as the area under a curve (using the limit) 2:12:05 Evaluating definite integrals 2:13:11 Definite and indefinite integrals (comparison) 2:15:30 The definite integral and signed area 2:18:10 The Fundamental Theorem of Calculus visualized 2:21:37 The integral as a running total of its derivative 2:24:25 The trig rule for integration (sine and cosine) 2:27:07 Definite integral example problem 2:32:53 u-Substitution 2:42:05 Integration by parts 2:56:03 The DI method for using integration by parts PROMISED LINKS: Binomial Expansion (with Pascal's Triangle): https://www.youtube.com/watch?v=cvhyJT9c0ac Trigonometry Series (by me!): https://www.youtube.com/watch?v=U23JMdBIJ0M&list=PLhSQQGbiWoTChZSbP-XcXH40IT7vfyyFk&pp=gAQB KEY RESOURCES FOR PRACTICE: Steve Chow: @blackpenredpen 100 Derivatives: https://www.youtube.com/watch?v=AegzQ_dip8k 100 Integrals: https://www.youtube.com/watch?v=dgm4-3-Iv3s 100 more Integrals: https://www.youtube.com/watch?v=jQz1gQ24OHc DI Method for Integration by Parts: https://www.youtube.com/watch?v=2I-_SV8cwsw Other Great Calculus Resources Grant Sanderson: @3blue1brown Grant is the grand master of math visualization Essence of Calculus Series: https://www.youtube.com/watch?v=WUvTyaaNkzM&list=PLZHQObOWTQDMsr9K-rj53DwVRMYO3t5Yr Michel van Biezen: @MichelvanBiezen (iLectureOnline) Huge calculus playlist: https://www.youtube.com/watch?v=6vRKEXf7uE8&list=PLX2gX-ftPVXWMrapS-ROUEKCxv5lpA5zh Mathologer: @Mathologer Why is calculus so... EASY?: https://www.youtube.com/watch?v=kuOxDh3egN0 The Organic Chemistry Tutor: @TheOrganicChemistryTutor Learn Calculus Fast playlist: https://www.youtube.com/watch?v=GiCojsAWRj0&list=PL0o_zxa4K1BWYThyV4T2Allw6zY0jEumv There are lots of good resources on YouTube in addition to these. Key Words: Maths, differentiation, derivative, integration, integral, limits, tutorial, overview, proof, proofs, animated, animation, explain, explained, A-level maths, O-level maths, IB math, power rule, product rule, quotient rule, u-substitution, integration by parts.

Transcript

Click timestamps to jump to that point

  • can you learn calculus in the time it takes to watch a long movie yes you can my name is Dennis Davis I'm an engineer not a mathematician I try to make my videos visually enlightening and fast-paced but this video is very long

  • because it covers almost the entire first year of calculus using visuals graphs and diagrams I'd rather show you calculus visual then just tell you the rules and formulas if you see where the rules and formulas come from that can help you

  • understand remember and make use of them to become truly proficient at calculus you'll need practice which you won't get just by watching this video in the description I'll link to some helpful practice oriented videos by others whether you're new to calculus

  • studying it now or just want a refresher I hope you'll find this video informative and engaging my only assumptions are that you're already familiar with functions and algebra so here we go calculus is the study of change and

  • rates of change of mathematical functions when we use calculus we perform operations on functions that result in different functions this isn't a new idea at all we perform operations such as addition on numbers to get new

  • numbers we operate on sets to get new sets on matrices to get new matrices and we can operate on functions to get new functions in fact you've probably already done this in algebra

  • when you had a function and found its inverse we start with a function f ofx and write out F in terms of X and Y so that y equals some function of X then we rewrite the equation switching X and Y

  • then solve the second equation for y and that's the inverse of the first function so we start with a function perform an operation on it and get a new function the point is taking

  • an existing function and Performing some operation on it to get a new function isn't a new or advanced math concept and that's really what calculus is in fact calculus is all about performing two operations on functions that's it that's

  • calculus the first operation is called differentiation when we differentiate a function the new resulting function is called the derivative of the first function the derivative is the first topic we'll cover learning to take the derivative of a wide variety of function

  • types is roughly the first semester of calculus the second calculus operation is called integration when we integrate a function the new resulting function is called the integral of the first function integration is roughly the

  • second semester of calculus and there's a wonderful relationship between these two operations that we'll get to at just the right time when functions are simple these operations are simple and calculus is simple it's when the functions we

  • operate on get complex that calculus seems complex so if calculus has a reputation for being a difficult subject it's not really calculus fault we'll start with the derivative and consider a simple function f ofx = x

  • -1 this is a linear function so its graph is a straight line I said calculus was the study of change and rates of change and the rate of change of a straight line is its slope rise over run deltay over Delta

  • X I like to color code things in my videos I'm using blue for x coordinates and distances and yellow for y and I'll use pink for slope or rates of change I won't draw a lot of attention to the colors and may not mention them again

  • but their consistent use may let you see some apparent order or pattern that might not otherwise be clear for a straight line it's easy to find the slope just pick any two points and subtract their y and x coordinates to get Delta y over Delta X Delta Y is 3

  • - 0 this distance the difference between the yellow y-coordinates and Delta X is 4 min-1 this distance the difference between the blue x coordinates so for this linear function the slope is 3 over

  • 3 or POS 1 for every unit X changes y changes by one times that amount since the slope is one if the slope were positive 1/2 then when X changes by some amount y changes by positive 1/2 as much if the slope

  • were -2 then when X changes y changes by -2 times as much that is two times as much but in the opposite direction y would get smaller as X gets larger when the graph line is horizontal

  • the slope is zero because y never changes so Delta Y is zero when the graph line is vertical the slope is undefined because X never changes Delta X is zero so Delta y over Delta X is undefined since the denominator is

  • zero everything's nice and simple when the function is linear but what about the function FX = x^2 - 2x + 1 the graph of this function is a parabola so now the question what's the slope prompts a

  • new question in response where do you mean because the slope is smoothly changing it's different at different points suppose we want to define the slope of

  • the function at xals 1.6 here now if you know calculus or more specifically the rules of differentiation that we'll cover soon then within a few seconds you can figure out that the slope at x = 1.6 is

  • 1.2 if you don't know calculus yet I promise that soon you'll know how to do this but without calculus it's not easy f after all slope is rise over run deltay over Delta X but with just one point where does Delta Y come from or

  • Delta X slope is the rate of change and there's no change at a single point there's only a change between two points so it's a tricky question we could eyeball it by drawing our best attempt at a line tangent to the curve at x =

  • 1.6 then measure the slope it won't be very accurate it's not always easy to draw an accurate tangent line but without calculus that might be an option but let me show another way in the 1600s the great minds that developed calculus

  • approach the problem this way I'll zoom in on our grid at the red point of Interest where x equals 1.6 we want to know the slope at the red point I warnant you I like to color code things let's choose a nearby Point green

  • and find the slope deltay over Delta X between red red and green so we estimate the slope at red as the slope of the pink line between red and green Delta y over Delta X it'll be pretty close and

  • the closer green is to Red the better the estimate this is the approach that will lead us to the derivative the x value of our red point where we want to know the slope is 1.6 we find the Y value by plugging 1.6

  • into the function and we get 0. 36 let's choose a nearby x value for the Green Point let's say 1.61 so we find the yvalue for the nearby Green Point by plugging

  • 1.61 into our function to get 361 1201 remember here's our function y = x^2 - 2x + 1 we can easily find the slope deltay over Delta X between two

  • points given their coordinates and we get 1.21 the slope between red and green which is our estimate for the slope at Red calculus will tell us I promise that

  • the slope at Red is 1.2 so our estimate is very close the closer we let green get to Red the closer the estimate will get to 1.2 so let's prove it we'll still choose a nearby Green Point point but now

  • instead of choosing an actual small distance away from Red such as 0.1 or .001 we'll use a variable for the tiny X distance to green and call it h the coordinates of the red Point are

  • still 1.6 comma 0.36 but let's consider the coordinates of the Green Point its x coordinate is 1.6 + H and its y-coordinate is the function's value when we plug in 1.6 + H

  • for X now let's find the slope as Delta y over Delta X Delta Y is the y-coordinate of the Green Point F of 1.6 + H minus the y-coordinate of the red point which is still

  • 0.36 I'm shading the components to the color of the corresponding point and Delta X is the x coordinate at Green 1.6 + H minus the x coordinate at red 1.6 the denominator Delta X looks pretty

  • easy to simplify 1.6 + H - 1.6 is simply H this makes sense we chose H over here to be Delta X so to find Delta y over Delta X we'll need to expand this expression by taking our function f ofx

  • and rewriting it substituting 1.6 + H in for X this is just algebra so I'm showing it quickly pause if you want to step through the details we end up with this expression

  • for the yalue of the nearby Green Point so we can now find deltay over Delta x 36 + 1.2 H + h^ 2 -36 all over

  • H the +36 and minus. 36 cancel leaving us with 1.2 H + h^2 over H as long as H is not zero which it's not it's some tiny tiny change but not zero then we

  • can cancel an H from each term and the slope Delta y over Delta X is 1.2 + H let's remember that we said H was an arbitrarily small number we're going to find the limit of Delta y over Delta X

  • as H approaches zero you may be familiar with the concept of the limit from studying discontinuous functions in algebra we write the limit like this l i m and underneath a variable right arrow and a literal value we read this as the

  • limit as H approaches zero in our case the limit of 1.2 + H as H approaches zero as H gets closer and closer to zero the expression 1.2 + H gets closer and closer to 1.2

  • so the limit is 1.2 and that's deltay over Delta X the slope at the red point or at least the slope as Delta X we called it h approaches zero and now we can continue our

  • dialogue what's the slope where do you mean at x = 1.6 the slope there is 1.2 that we found by taking the slope between two very close points at the limit as the difference between their x coordinates

  • approach zero I want to review this equation again which is how we estimate the slope of a function at a point using algebra you'll see this important expression in the first chapter of every single calculus textbook we're going to use it

  • several more times and I want to make sure you're comfortable with it it's the algebra behind estimating the slope at the red Point as the slope between the red point and the nearby Green Point the Delta y over Delta X the difference between the y-coordinates is Delta y the

  • numerator of our slope estimate the difference between the x coordinates is Delta X the denominator of our slope estimate we just need to come up with expressions for these differences the x coordinate of the red point is simply X

  • so the red y-coordinate is the function's value at x f ofx the x coordinate of the nearby Green Point is X x + H H is the small Delta x amount we added to X to get a nearby point so the green y coordinate is the

  • function's value at x + h f of X+ H so for the numerator we can plug in the difference F ofx + hus F ofx I can include the green and red memory aid y coordinate of green minus y coordinate

  • of red for the denominator we get x + H - x green x coordinate minus red x coordinate well it doesn't get written out this way very often since x + H - x so obviously simplifies to H and H is

  • the small distance we deliberately chose for Delta X in the first place so the denominator is usually just H same thing so when you see this expression please think of this triangle and the rise overrun slope it represents Delta y over

  • Delta X two quick points first I'm illustrating a positive slope but if the slope were negative the expression will correctly result in a negative estimate for the slope since f ofx is greater than F ofx + H subtracting a larger

  • number from a smaller will result in a negative number H is always positive since it's the small Delta X we added to X so the equation works for positive and negative slopes the second point is the key idea that uses this expression as the

  • entryway into calculus let me make a copy of the diagram and expression the top and bottom start out identical but I'm going to make changes to the bottom to transform it step by step into the key Foundation of calculus we used the limit a moment ago

  • to find that the slope of our function was 1.2 when we take the limit as Delta X approaches 0 something very special happens first the nearby Green Point approaches the red Point that's pretty obvious since H is the distance between their x coordinates and it's approaching

  • zero second the expression is no longer an estimate of the slope it is the slope or what we call the derivative so let me change the header the expression at the limit isn't the algebraic estimate of the slope it's the algebraic definition

  • of the derivative and there's one more important change at the limit Delta Y and Delta X get new names and symbols they're called Dy Y and DX the d stands for differential we'll talk more about it soon on the top is the estimated

  • slope of a curve based on nearby points on the bottom is the definition of the derivative at the limit is the horizontal distance between the two points approaches zero so here's how we use the limit to find the derivative at

  • 1.6 there was a lot of algebra involved to get to our answer 1.2 but no calculus yet you might not believe me but you will soon calculus is easier than taking limits taking limits with algebra is

  • tedious this is tedious certainly not difficult but timec consuming and prone to errors if you're not careful and when I promised to show you how you could know almost immediately that the slope at 1.6 was 1.2 I was not talking about

  • doing all this algebra in your head calculus is easier than this and I'll show you there's just one more key step the destination will make the journey worth it so we just found the slope of the function at x = 1.6 by plugging 1.6

  • into the function and finding the slope to a nearby Green Point now let's see what happens when we generalize we'll algebraically evaluate Delta y over Delta X at the variable value X instead of the specific value 1.6

  • the Delta y over Delta X formula has the same Parts the y-coordinate of the nearby Green Point is f ofx + H the y-coordinate of the red point is f ofx the x coordinate of the Green Point is x + H and the x coordinate of the red

  • point is X the denominator of course simplifies to H so when we expand f of x + H we get x + h^ 2 - 2 * x + h H + 1 and you can see

  • the correspondence to the terms in the function we just plug in x + H for X expand and simplify using algebra so here's the x coordinate of the Green Point in terms of X it's the first term

  • in the numerator of our deltay over Delta X slope expression next we need to subtract F ofx which is right here minus f ofx

  • three terms cancel and we're left with these terms as Delta y h^2 + 2 xh - 2 H the denominator is H the arbitrarily small number we chose for Delta

  • X we cancel an H from each term and get Delta y/ Delta x = h + 2x - 2 let's let take the limit as H approaches Z we get 2x - 2 now let's pause for a moment and

  • appreciate what we've just done we have an expression for the slope of the function y = x^2 - 2x + 1 in terms of X have we just found a function that Returns the slope of another

  • function let's call the second function fime of X and try it out more on this prime notation shortly a moment ago we found that the slope at x = 1.6 is 1.2 so let's try out

  • our new general function frime of X at 1.6 we get 2 * 1.6 - 2 3.2 - 2 yes we get 1.2 just like before let's try this

  • point at the vertex of the parabola where xal 1 it looks like the slope we get should be zero frime of 1 = 2 * 1 - 2 yes it's zero and we have indeed found the function frime of X that Returns the

  • slope of f ofx for any value of x and now we can finish our dialogue with the broader question what's the slope of this function at any X and the answer for this function is 2x - 2 because this

  • will return the slope of x^2 - 2x + 1 for any X so we've just performed the first calculus operation differentiation we started with a function f ofx = x^2 - 2x + 1 and we

  • performed an operation on it to yield a new function the first function's derivative fime of x = 2x - 2 the derivative of a function evaluates to the slope of that function at every x value we found the derivative the hard

  • way by taking limits and crunching through algebra I'll show a simpler way in a moment but regardless of the method we've just performed the differentiation operation to get the derivative of a function since the derivative of a

  • function is just another function we can graph it also the pink line is fime of X = 2x - 2 frime of X is a common notation for the derivative of f ofx I'll cover some notation conventions in a moment the

  • pink line represents the derivative of the white Parabola so of course the derivatives value at x = 1.6 is 1.2 the slope of the parabola at x = 1.6 let's go over some vocabulary and

  • notation concerning derivatives with slopes we quite naturally speak of Delta y over Delta X the slope between two points this ratio gets closer and closer to the slope at X as Delta X gets closer and closer to zero in calculus we

  • introduced new terms for Delta X and Delta y that have the limit as Delta X approaches zero concept built in we say that the limit as Delta X approaches zero of Delta X is DX we use lowercase D

  • instead of the Greek letter Delta as calculus shorthand that means at the limit so when you see D it means means at the limit as the change to the independent variable often X approaches zero one more time instead of writing all this you can just write this which

  • means the same thing it's common to think of DX as the slightest tiniest change in X and this thought might serve you well but DX is really whatever Delta X becomes as it gets closer and closer to zero it's an idea that we treat like

  • a number DX is called the different differential of X I'll have to draw it with some sort of thickness so we can see it but it's actually unimaginably narrow Dy is the differential of Y which is Delta Y at the limit but it's not the

  • limit as Delta y approaches zero like DX it's also the limit as Delta X approaches zero Dy is the interesting thing we observe as Delta X gets closer and closer to zero so at the limit as Delta X

  • approaches zer our ratio Delta y over Delta X becomes dy/ DX this is the derivative the ratio Dy / DX is the differential of Y with respect to X it's often set out loud as Dy by DX or simply

  • dydx let me show you some other ways you might see the derivative represented this notation denotes a differential change in something with respect to X we can pull the something out of the ratio it means the same thing this part means the change or derivative

  • with respect to X and this part is what we're taking the derivative of since yal F ofx we could also write d by DX of f ofx it means the same thing and since F ofx = x^2 - 2x + 1 we could

  • also write d by DX of x^2 - 2x + 1 they all mean the same thing hopefully the symbology is clear differential of something with respect to the corresponding differential of

  • X I mentioned this one earlier but derivatives of functions can also be represented with the prime or single quote character fime of X is the derivative of f ofx so these are all different representations of the same calculus concept the derivative of f ofx

  • with respect to X we've been using X and Y as our independent and dependent variables which is quite natural considering these are the standard cartisian coordinate system variables and we often represent the dependent variable y as a function of the independent variable X like this

  • but you should know that other variables can be used for example in physics and Engineering the independent variable is often time if the function we're operating on represents something that can change over time for example s equal F of T could represent the displacement

  • of a particle from a starting point at time T in this case the derivative of the function is DS by DT not Dy by DX I just don't want you to get locked into X and Y and not recognize calculus Concepts

  • when you see them referencing different variables as it happens the independent variable t for time is so common that there's an additional shorthand representation for the derivative of a function function with respect to time F dot a function label with a DOT over it

  • represents the derivative of that function with respect to time now let's go over the basic rules of differentiation which are rules and techniques to find the derivative of various types of functions and the big payoff is that the rules will let us

  • find the derivatives without the timec consuming process of taking limits covering the rules of differentiation will take some time as this is essentially the entire first semester of calculus and I'm going to take limits to show you that the rules

  • are true and correct and give you insight into why they work on the left are five types of functions each rule is a special shortcut for taking the derivative of that function type the shortcuts are a result of observing the pattern that

  • reveals itself when we take the limit you'll see what I mean on the right side are the the rules or shortcuts for how to find the derivatives of combinations of function Types on the left so that you don't give up hope let me tell you exactly what we'll be doing I'll start

  • with these four rules on the top then I'll show you some super shortcuts involving these four rules at this point I'll keep my promise because you'll be able to differentiate x^2 - 2x + 1 almost instantly in your head and you'll

  • know that the derivative at x = 1.6 is is 1.2 by this time we'll know enough calculus to set up and solve some interesting problems then I'll introduce the second derivative and higher order derivatives and then we'll finish the rules of differentiation with these last

  • five rules I'll show this agenda again so we can keep track of our progress covering these topics we'll finish the first calculus operation differentiation after that we'll learn the second calculus operation integration so let's Dive In we'll start with the derivative

  • of a constant if we have a function f ofx equals a constant such as 3 its graph would be a horizontal line I'm going to make constants green no matter what value we choose for X on the horizontal axis the function returns

  • three and the slope is zero this is true for any constant C since there's no change to the function's value as X changes the derivative is zero we write the generalization like this d by DX of C equals 0 where C is any

  • constant it says that the derivative of a constant is zero and that's the constant rule we're not cheating or saying anything new if we were to again let two points get closer and closer to each other and apply the limit to the slope expression we would get zero we'd

  • get zero every time because we'd always get C minus C here all of these rules of differentiation are General ations of what happens to the slope as we take the limit we simply notice the pattern like we did here for constants and then use

  • the pattern instead of taking limits and that's why calculus at least differentiation is easier than algebra the next pattern or rule of differentiation is called the power rule heads up the power rule is a big part of

  • how you can take the derivative of x^2 - 2x + 1 in your head I'll the rule with some examples then I'll show how it can be visualized I'll tell you the power rule first then I'll prove it's true in a few minutes the power rule is applied

  • the powers of X like X2 X cubed x 4th and so on it says that the derivative of x the N is n * X nus1 it looks horrible but every calculus student in history just

  • remembers this about the power rule bring the exponent downstairs and subtract one so to find the derivative of x cubed we take the exponent 3 and bring it downstairs in front of X then we subtract one from the exponent and get 3 x^2 can you see how

  • that matches the power rule shortcut what's the derivative of X2 well we bring the two downstairs to get 2x to the something for the exponent we subtract one from the original exponent two 2 - 1 is 1 and X to ^ of 1

  • is just X so the derivative of x^2 is 2x can you see on your own that the derivative of x 4th is 4X cubed yes the power rule is pretty easy I'm arranging the exponents

  • in numerical order so let's go back up top for the derivative of x to the first Power bring the one downstairs and the exponent becomes zero since x to the 0 is 1 the derivative is 1 * 1 which is 1

  • so the derivative of x is 1 this one's easy to see on a graph the line representing yal X is a straight line whose slope is obviously 1 it all works out let me scooch over here to get more room I'll sketch in x to the 0o and x to

  • the first power so you can see that the pattern is kept and speaking of pattern let's go up top again to find the derivative of x to the 0 the 0er comes downstairs and the exponent becomes -1 well 0 * anything is 0o so the

  • derivative is zero and let's notice that x to the 0 power is 1 so this is a special case of the constant rule which says that the derivative of any constant such as one is zero so the power rule and constant rule give us the same

  • derivative for exponent zero pretty neat it all works together and the rules are consistent how about this one what's the derivative of the square < TK of X well remember that the < TK of X is X raised to the2 power the power rule isn't

  • limited to integer exponents we bring the 1/2 downstairs and subtract one from 1/2 to get an exponent of -2 since x^ -2 is 1 / < TK X this gives us 12 * 1 the < TK X or 1 / 2 < TK X the

  • fraction has a radical in the denominator so we can rationalize by multiplying the numerator and denominator by squ < TK of x to get < TK X over 2X and that's the derivative of the squ < TK of X using the power rule which works for all real exponents not

  • just integers well I've told you the power rule but I haven't proven that it's true now I'll prove it with limits let's take the derivative of x to the n as the limit of Delta y over Delta X like this as H approaches zero just like before we

  • have our green and red y values the most tedious part of this proof is expanding the green binomial in this video's description I put some links to videos that go into more detail on the binomial expansion in short when the green x + H

  • to the N is expanded the first green term will always be x to the n and the last green term will always be H to the N then moving towards the middle the second term is X to the n minus1 and H to the 1st prefixed with the binomial

  • coefficient which for the second term is always n none of the other coefficients are important for this proof but it's interesting how the coefficients of each green term follow a pattern revealed by Pascal's triangle but that's not what this video is about so see the links in

  • the description for more information math is so interesting and easy when you can see how it all fits together the second to last screen term will always have X and H to the N minus1 along with the binomial coefficient which is also n

  • for the second to last term all the terms in the middle denoted by The Orange Box are the remaining binomial expansion terms and will have factors of H to a power of two or greater that will be important for our proof in a moment in fact all the green terms except the

  • first two will have H factors raised to a power of two or more and there're still still the Red X to the end term we subtract at the end let's bring everything down and encapsulate the orange we'll always have positive and negative x to the N so they'll cancel

  • every time every remaining term will always have at least one H since the denominator is H we can cancel an H from each remaining term this leaves n * x n -1 plus the orange terms which initially

  • all had factors of h^2 or higher and now since we divided three by H they all have factors of H or higher when we take the limit as H approaches Z all of these terms approach zero and we're left with n * x n -1 and so we've proven the power

  • rule once more the rule comes from the slope expression and is the pattern we notice every time we take the limit so when we do calculus we don't need to take the limit we just use the pattern and the pattern for the derivative of x the N is n * X

  • nus1 let me show you a visual interpretation of the power rule that should build your intuition the power rule tells us that the derivative of x^2 is 2x let's consider the function x^2 to be the area a of an actual square with

  • sides of length x the derivative of X2 with respect to X X is the amount the area changes per change in X so if we let X Change by this differential amount DX by how much does the area of the square change well it changes by the

  • area of these two narrow strips this one has an area of its height x * its width DX so X DX this one on top also has an area of its height DX times its width X so its

  • area is also xdx for the sake of completeness let me point out this tiny corner piece whose area is dx^ s it's one of the orange terms from the binomial expansion that goes to zero as Delta X approaches zero

  • so at the limit as Delta X approaches zero the change in the blue squares area the differential of a is the differential of our function x^2 this is the added area to X DX so the derivative of x^2 the change in x^2 per change in X

  • is indeed 2x let's look at the derivative of x cubed visually the power rule tells us that its derivative is 3x^2 let's visualize the function X cubed as the volume of an actual Cube

  • whose sides have length x when we increase X by the tiny differential DX what happens to the volume of the the cube when we add DX over here we get this new volume a thin slab on this face his volume is the area of the face X2

  • time its thickness DX so the additional volume is x s DX you might see where we're going we get the same additional volume on these other two faces for a total of three x^2 DX because I've drawn DX with some

  • visible thickness you might know notice these three thin regions having volume X their length time dx^ 2 their cross-sectional area so the added volume is 3 x dx^ 2 this last tiny volume has

  • sides equal to DX so its volume is DX cubed these orange terms all go to zero at the limit but it's interesting to see that even they have a visual interpretation on the diagram so the differential change in the volume X cubed is 3 x^2 DX this

  • means the derivative of x cubed is the change in X cubed per change in X which is indeed 3x^2 as the power rule tells us to illustrate the usefulness of the power rule consider finding the derivative of x to the 4th with

  • limits as you can see the power rule is so much simpler and always gives the same answer once more when we do calculus we use these shortcut rules we don't take limits in a calculus course or textbook you'll take limits only for the first week or two to demonstrate

  • what the derivative means but once you learn the rules of differentiation you'll use them and you won't find limits anymore but I will still find limits in this video to prove the rules and illustrate some points now we'll go over ways to take

  • the derivative of combinations of functions the first is the addition rule it says that the derivative of the sum of two functions is the sum of their distinct derivatives or in terms easy to remember the derivative of the sum is

  • the sum of the derivatives here I'm using f and g as the two functions and the prime symbol to denote their derivatives an example should make this simple let's find the derivative of x^2 + x first the

  • derivative of x^2 is 2X and the derivative of x is is 1 so the derivative of x^2 + x is 2x + 1 the derivative of the sum equals the sum of the

  • derivatives let's look at the graph and see why this makes sense here are the two functions we're adding y = x^2 in white and Y = X in green and the blue curve is their sum y = x^2 + x let's

  • take two nearby X values and look look at the corresponding Delta Y's for the three curves here's Delta y for white the change in X2 over our small Delta X and here's Delta y for green the change in green y over our small Delta X and

  • finally here's Delta y for blue the change in x^2 + x over our small Delta X can you see that since blue equals y plus green that Delta y for blue equals the sum of the white and green Delta y's

  • since blue equals white plus green everywhere any difference in blue must be equal to the corresponding difference in white plus green remember as Delta X approaches zero we use the word differential to describe the changes so the differential of the sum equals the

  • sum of the differentials and that's the addition rule without elaboration I'll assert that the same relationship holds with subtraction that the derivative of the difference between two functions equals the difference of their respective derivatives so I'll write the

  • addition rule with plus or minus since it works for addition and subtraction next is the product or multiplication rule it says the derivative of the product of two functions is the first function times the derivative of the second plus the

  • second times the derivative of the first so the pattern is different than the addition rule because the derivative of the product is not the product of the derivatives like we did for the the power rule let's visualize the product rule by considering the product of the

  • two functions to be a rectangle whose area is the product f * G on this graph the axes represent the values of the functions not the independent variable X at least not directly when we increment X by its

  • differential DX F ofx increases by its own derivative DF by DX and the area of the rectangle increases slightly by this thin strip at the same time G ofx increases by its own different derivative DG by DX and

  • the area of the rectangle increases slightly by this thin strip the area of this first strip is its height G of x times its width DF by DX and the area of the second strip is its height DG by DX times its width F

  • ofx so the derivative of the product of the two functions is the addition area of the two rectangular strips and their dimensions are each function times the derivative of the other and that's a nice visual interpretation of the product

  • rule now we can look back at our sample function x^2 - 2x + 1 and consider which of these rules we'll need to use to find its derivative well it's the sum of three simpler functions so let's start with the addition rule the derivative of x^2

  • is 2X X by the power rule for the next term we need to subtract the derivative of 2x which is the product of 2 and X so we'll need the product rule we'll get back to it in a second and the derivative of one is zero by the constant rule interesting to take the

  • derivative of a simple polinomial we need all four of the rules we've covered so far now let's use the product rule to find the derivative of 2x the product rule says that the derivative of the product is the first function times the derivative of the second plus the second

  • function times the derivative of the first the first function is two and the second function is X the derivative of 2x is 2 * the derivative of X Plus x * the derivative of two the derivative of

  • x with respect to X is 1 by the power rule so the first term becomes 2 * 1 the derivative of two a constant is zero so the second term becomes x * 0 this all simplifies to two so the derivative of

  • 2x is 2 which makes the derivative of our original function x^2 - 2x + 1 = 2x - 2 of course this is the same answer we got when we took the limit well this is the function I promised you'd be able to

  • differentiate in a few seconds but using these four rules certainly took more than a few seconds let me show you a calculus super shortcut based on the product rule the derivative of any constant K * x with respect to X is

  • simply the constant K because when we use the product rule we get K * the derivative of x + x * the derivative of K the derivative of x with respect to X is always one so the first term will always be K and the derivative of K with

  • respect to X is always Zero by the constant rule so the second term will always be zero this pattern occurs every time the product rule is applied to KX so the derivative of any constant K * X is always

  • K this is the kind of pattern the rules of differentiation let us exploit now let's go back and find the derivative of x^2 - 2x + 1 at x = 1.6 by differentiating left to right 2x - 2

  • with practice you learn to ignore constants plug Again The Chosen x value of 1.6 to get 3.2 minus 2 so 1.2 and that's how with practice you can know almost immediately that the derivative

  • or slope of x^2 - 2x + 1 at x = 1.6 is 1.2 okay now for another great shortcut which is a generalization of the first one for KX this time we'll take the

  • derivative of KX to to the N so we have a power of X with some constant coefficient K so this is the product of two functions K and x to the N let's use the product rule again and see where

  • this leads us we have the first * the derivative of the second plus the second * the derivative of the first the derivative of x to the N is straight from the power rule n * X nus1 and the derivative of constant K is a of course

  • zero so the second term becomes zero this leaves the derivative as K * n x nus1 at first this new shortcut looks a little cumbersome like the power rule did but look at What it lets us do when we bring the exponent downstairs we can

  • just multiply it by whatever coefficient is already there so the derivative of 4X cubed is 12 x^2 we bring the three down stairs multiply it by the co efficient of four that's already there to get 12

  • and then we subtract one from the exponent this simple super shortcut has the product rule power rule and constant rule built in it automatically follows all the rules so knowing this super shortcut and using the addition rule we

  • can easily take the derivative of long polom we just work left to right differentiating one term at a time pols are incredibly simple to differentiate I need to finish the rules of differentiation but first we actually

  • know enough calculus to solve some interesting problems known as optimization problems they involve finding the local minimum and maximum values for a function for example suppose this curve represents the net profit our company would make by

  • manufacturing and selling X number of a particular item if we make and sell too few our profit will be limited by the low number if we make and sell too many our supply might exceed the demand and our extra cost for running more machines and hiring more people won't be offset

  • by the higher volume there's some independent variable here that will maximize the profit function how do we find it let's notice that at the maximum the slope of the function is zero lucky for us we know calculus we can take the

  • derivative of the profit function and find the equation for its slope anywhere when we set the derivative function equal to zero we can solve for x to get the exact point at which the original function is at its maximum our profit function f ofx in

  • thousands of dollars is 0.012 x^2 + 9.8 x -500 where X is the number of units we manufacture and sell to find the value for x that maximizes the function we

  • take the derivative of the function function and set it equal to Z and solve for x we know how to take the derivative of polom we have 0.024 x + 9.8 set this equal to zero and solve x =

  • 48.3 so we should make 408 units to maximize our profit if your problem statement asks you for the profit amount plug 48 into the original profit function to get the maximum profit amount F of 48 equals

  • 5.8 and we're told this is in thousands of dollars so the maximum profit is $5,800 when we make and sell 48 units let's do another problem suppose we have a rectangular sheet of metal

  • that measures 32 CM by 24 cm we want to make a box by cutting squares out of the corners and folding the resulting sides up the box won't have a lid the shapes we cut out of the corners need to be squares so that when we fold

  • the sides up they'll all have the same height what are the dimensions of the Box having the greatest volume and what is the volume okay we need to express the volume v as some function of a variable let's use the length of the square sides

  • that we cut out of the corners and call it X of course all of these distances are X the volume of the Box will be its width times its depth times its height the width is this distance which in centim is 32 minus

  • 2x the depth is 24 - 2x so when we multiply these Expressions that gives us 4X cubed - 112 x^2 + 768 x I'm skimming over the algebra so we can

  • focus on the calculus to find the x value that maximizes this function we'll take the derivative set it equal to 0 and solve for x the derivative of the polom is 12 x^2 - 224x +

  • 768 this is a quadratic equation and there are several ways to solve it I used but won't show the quadratic formula to get two possible solutions X = 14.1 cm and X = 4.53 CM we need to

  • check these numbers for feasibility the short side of the metal sheet is 24 cm so we can't cut out squares greater than 12 CM there's not enough metal on that edge so that leaves 4.53 CM as our answer for X but that's not the answer

  • to our problem we're asked for the dimensions that maximize the Box's volume and for that maximum volume so we plug in 4.53 cm for X into our width and depth formulas we get a width of 22.9 4 cm and the depth depth of

  • 14.94% so multiplying these Dimensions yields a volume of 1,552 cubic cm any other value for the square size X will result in a lower volume let's look at a different

  • function this curve has two points where the slope is zero a local maximum here and a local minimum here when we use the word local to describe a minimum or maximum we mean compared to the points nearby for example the local maximum

  • identified here isn't the function's maximum it has higher values out to the right and similarly there are lower values closer to the y- axis than the local minimum identified Here Local means higher or lower than nearby points

  • on either side anyway when we set the derivative equal to zero and solve for x we get these values but it's important to be able to tell the difference between a minimum and a maximum if our management team wanted to maximize profits and we recommended action

  • corresponding to this point that could be a disaster or if they wanted to minimize budget or time and we chose this point setting the derivative equal to zero and solving for x will give us the points where the slope is zero which could be a local maximum or minimum but

  • how can we know which let's color code the function slope green for positive here to the left of the first zero point the slope is zero at the maximum of course and then negative red between the two zero points then the slope is zero again at

  • the minimum and positive beyond the second zero point so the slope changes signs at the Minima and Maxima this makes sense if it's zero at a point it must be passing from positive to negative or from negative to positive

  • but notice that at the maximum point the slope is changing from positive to negative and at the minimum point the slope is changing from negative to positive let's plot the function's derivative of course it's zero at the two points where the function slope is

  • zero at the local Maxima the slope of the pink derivative will always be changing from positive to negative which means its slope is negative as you can see here and at local Minima the slope of the pink derivative will always be changing from negative to positive which

  • means its slope is positive as you can see here the slope of the derivative is positive at locom Minima so what do we mean by the slope of the derivative remember in calculus we're just performing operations on functions that result in different functions when we

  • differentiate a function f ofx to get its derivative fime of x frime of X is just a new function that we can in turn differentiate to get it derivative the derivative of a derivative is called the second derivative or depending on the

  • variables the second derivative of y with respect to X I'll show more notation in a moment but F Prime of X is a common way to denote the second derivative the second derivative of a function tells us the rate of change of the slope of that

  • function and as you might guess the derivative of the original function is called the first derivative here here are six examples of Curves from various functions f ofx for this first one the slope frime of X is positive since the function's value is

  • increasing and since the rate of change of the increase is not changing that is it's a steady increase the second derivative is zero in this example the first derivative fime of x is again positive since the function value is increasing

  • and since the rate of increase is itself increasing the second derivative is also positive in this example the slope is increasing but it's changing from a steep High slope to a shallow low slope so the second derivative is negative can

  • you see how these two functions have different behaviors even though they both have a positive slope for one the slope is increasing at an increasing rate for the other the slope is increasing but at a decreasing rate

  • down here the slope frime of X is negative and since the slope is constant the second derivative is zero this function has a negative slope but the slope is getting less and less negative so the second derivative is increasing

  • positive and this last curve also has a negative slope and its slope is getting more and more negative so the second derivative is decreasing negative since the first derivative can be thought of is the rate of change the second derivative is essentially the

  • rate of change of the rate of change the second derivative is useful because it helps describe the behavior of functions and it's especially useful in minimization and maximization problems to distinguish between local Minima and Maxima at points where frime of X is

  • zero X represents a minimum point where the second derivative is positive and X represents a maximum point where the second derivative is negative now for some second derivative notation

  • the derivative of the derivative is the second derivative fpre of x since the derivative is dy by DX we can write the second derivative as d by DX of Dy by DX let's move the function up to the numerator now what follows is symbolic

  • shorthand not true algebra we take the d and Dy at the top and combine them to get d^2 y because there's two D's and one y and when we take the two DXs and combine them we get dx^ 2 so the

  • symbolic representation of the second derivative of y with respect to X is d^2 y by DX squared I'm not saying it makes pure algebraic sense maybe a mathematician can tell us in the comments if there's a deeper meaning behind the symbol I'm just an engineer

  • and I don't know there are higher order derivatives of course of course the derivative of a function second derivative is the function's third derivative it's easy to extend the D by DX pattern to see third derivative as D cubed y by DX cubed fle

  • Prime is another representation of the third derivative please don't think that higher order derivatives are any more difficult or complicated than the first derivative it's the same differentiation operation following the same rules of

  • differentiation well let's get back to the remaining rules of differentiation but first let's check our progress we've covered four important rules of differentiation the constant rule the power rule the addition subtraction Rule and the product rule then we covered

  • some super shortcuts involving polom solved two problems and learned about the second and higher order derivatives now we'll cover the last five rules of differentiation in this order

  • first s and cosine here's a sine wave the plot of y equal s of theta you don't need to be an expert at trigonometry to differentiate s and cosine but if anything I'm about to say seems unfamiliar I have a YouTube

  • trigonometry course if you want to brush up Linked In the description let's draw the sign function's derivative by plotting a few points and seeing what patterns arise we'll start with a local Minima and Maxima there always easy to see so the

  • derivative will be zero and intersect the Theta axis at these blue points at these points where the sine wave crosses the Theta axis in an upwards Direction the slope is one using the expression for the slope again let

  • me demonstrate quickly and without elaboration that Delta y over Delta Theta we've made Theta our independent variable not X is very close to one when Green Delta Theta is very close to zero the slope at these points is one so

  • we'll plot the blue derivative points here at y equal 1 the y-coordinate of each Blue Point represents the slope of the red sign curve at that value of theta the slope at these points is -1 so

  • the Blue Points go down here we could plot more points but let me jump to the answer and plot the derivative of sin Theta it's this smooth curve if you're familiar with trigonometry you'll recognize this curve as cosine

  • Theta the derivative of sin Theta is cosine Theta pretty neat let me show you a proof it assumes a little trigonometry knowledge but I'll go quickly we'll consider a unit circle and focus on the first quadrant let's put angle Theta in

  • standard position since we're on the unit circle this yellow length the radius of the circle is one this horizontal length is cine Theta and this vertical length is sin Theta it's this vertical red length we're interested in as Theta changes ever so slightly by D

  • Theta what's the change to the red length D sin Theta let's find out the pink Arc has length Theta which seems strange because green Theta represents an angle the number of radians and pink Theta represents a

  • distance the number of radi but since the radius of the circle is one the numbers for Theta green GRE and pink are the same let's see what happens near this point and note that this segment of the circle circumference is very nearly a straight line as our focus of

  • attention get smaller and smaller the derivative of sin Theta is how much this vertical distance changes as Theta changes by the tiny differential of theta D Theta and since pink Theta and green Theta have the same measurement I'm going to make the D

  • Theta label green to match our formula to find the change sin Theta let's draw this right triangle and we can see that red Sin Theta changes by this amount that we can call D sin Theta so in this small triangle we have representations

  • for D sin Theta and D Theta which are the numerator and denominator of the derivative we're trying to find since the trig ratios are the ratios between the various sides of a right triangle our derivative ratio is one of the six trig functions this angle is congruent

  • to Theta I'm telling you this without proof and so D sin Theta and D Theta are the adjacent and hypotenuse of the small triangle respectively and adjacent over hypotenuse corresponds to cosine and so we've shown graphically that the

  • derivative of s is cosine be careful because the opposite is not true the derivative of cosine is not s since the blue cosine curve has the exact same shape as the sign curve it seems reasonable to deduce that the derivative

  • of cosine will also have this shape and let's note that the cosine is out of phase with s to illustrate I'll add Theta axis markers at every pi/ 2 radians and we can see that the cosine curve the derivative of s is always pi

  • over two radians to the left of s this is easiest to see by comparing peak-to Peak points where the functions have their maximum values since the derivative of s is out of phase to it by Pi / 2 does it it make sense that the derivative of cosine

  • would be out of phase to it well yes indeed it actually is but as you can see we don't have a function with these Peak values but if we flip the sign curve by taking its negative we get the curve we seek and the derivative of cosine Theta

  • is indeed negative sin Theta so it's the derivative of negative sin Theta but looking at the curve you may see what's coming next the derivative of negative sin Theta is cosine Theta and taking the derivative

  • of cosine Theta gets us back to sin Theta and this four-step cycle comprises the trig related rules of differentiation it might help to remember that the trig functions alternate that is taking the derivative of a sign yields a cosine and vice versa

  • then it's easy to remember that the derivative of s keeps the sign so the derivative of positive sign is positive cosine keep the S and the derivative of negative sin Theta is negative cosine Theta the derivative of s keeps the S on

  • the other hand the derivative of a cosine function flips the sign the derivative of positive cosine Theta is negative sin Theta and the derivative of negative cosine Theta is positive sin Theta as you may know there are four

  • more trig functions but we'll have to skip them for now and cover their derivatives later let's test our knowledge what's the derivative of x Cub * sin x well we have the product of two differentiable functions we can call f

  • and g so we'll use the product rule the derivative of the product equals the first times the derivative of the second plus the second * the derivative of the first so it's simple there's really no intermediary steps

  • just write down the components and that's the derivative of the product X cubed cine x + sin x * 3x^2 now for the chain Ru the chain rule is how we

  • differentiate composite functions a composite function is a function whose argument includes another function you can think of composite functions as embedded functions where one function is embedded in the other for example sin 2x

  • is a composite function because s is a function and its argument 2x is another function the 2x function is embedded in the sign function as its argument this is very common in math science and engineering so you'll use the chain rule

  • a lot probably more than any other rule let's see why we need the chain rule when we find the derivative of sin 2x first we know the derivative of sin x with respect to X is cosine X it's true it's one of of our rules of

  • differentiation the one we just covered but we cannot say that the derivative of sin 2x with respect to X is cosine 2X that's false it's close we'll need to adjust a bit with the chain rule to get the derivative of sin 2x but this isn't

  • right here's the pattern the derivative of s something with respect to that something equals cosine of that something all three terms need to match for the differentiation rule to apply and when we try to apply the rule to sin

  • 2x you can see that they don't match I'm illustrating this with the trig rule but the pattern applies to all the rules if we were to modify the equation to be the derivative of sin 2x with respect to 2x then the derivative would

  • be cosine 2X because all the terms would match but in calculus were not asked very often to find the derivative with respect to a function of X just with respect to X so we need to dig a Little Deeper to differentiate composite

  • functions we can write composite functions like this F of G of x g is called the inner function because it's inside the argument for function f which is the outer function the derivative we're seeking is DF by DX the derivative

  • of the outer function with respect to the argument of the inner function our independent variable X here's the key to to understanding the chain rule a differential change in X will result in a differential change to G DG by

  • DX that differential change to G in turn causes a differential change to F DF by DG and that change to function f DF that occurs as a result of the differential change to X DX is the derivative we want

  • DF by DX this is where the chain rule gets its name the differential change to X ripples out in a chain reaction to cause the differential change in the outermost function here's the chain rule for

  • differentiation the derivative of f of g ofx equals the derivative of f with respect to G times the derivative of G with respect to X it should look familiar it's the Chain Reaction we just traced from the independent variable X

  • Out to the outermost function and it makes sense algebraically because there's a clear cancellation chain that makes the chain rule a lot easier to visualize and understand so let's find the derivative of sin 2x for the first Factor DF by DG

  • we need the derivative of the outer sin 2x with respect to the inner 2x let's notice that these terms match you'll always get a match like this when you use the chain rule we can use the trig rule that the derivative is cosine of the matching term so DF by DG equal

  • cosine 2X by the way this is the answer we said was not right a moment ago to get the correct answer we need to multiply by the last term DG by DX G is 2x so we get the derivative of 2x with respect to X it doesn't get much easier

  • than this we have a super shortcut that tells us the derivative of 2x with respect to X is 2 so we use the chain rule to determine that the D derivative of sin 2x is 2 cosine 2X let's do another problem and find the

  • derivative of the sare < TK of 5x^2 + 3 the inner function is 5x^2 + 3 the outer function is the square root let's rewrite the expression using an exponent of 1/2 to represent the square root this

  • should make it clear which function is the inner function and which is the outer the first Factor we need to find find is DF by DG the derivative of the outer function with respect to the inner the outer function is 5x^2 + 3 to the 1/

  • 12 the inner function is 5x^2 + 3 when you use the chain rule you'll always have matching terms and can use the appropriate rule of differentiation in this case the power rule with exponent 1/2 with the power rule we bring the

  • exponent downstairs and subtract one from it we get 1/2 times the matching expression which turns out to be the inner function G raised to the -2 and that's the first term in the chain rule DF by DG the second Factor DG by DX is

  • simple too it's the derivative with respect to X of 5x^2 + 3 we use the power rule again for this one 10 x you can simplify the expression using algebra and we found the derivative of this composite function

  • let's do one more chain rule example this time with a composite of three functions so we want to find the derivative of f of G of H of X let's set up the chain the derivative of f with respect to G times the derivative of G

  • with respect to H times the derivative of H with respect to x three functions makes the chain concept even more obvious algebraically the dgs cancel and the DH is cancel leaving us with DF by DX the derivative of the outermost

  • function with respect to the independent variable X so let's find the derivative with respect to X of cine 2 4X let's rewrite the function as cosine of 4x^ squared because cosine squar argument means the

  • cosine of the argument squared the inner function is 4X the middle function is cosine and the outer function is power of two let me expand the derivative chain and show you again how simple this

  • is the chain always starts with the differential of the given outermost function as the numerator of the first factor for this problem the given function is cine of 4x^ 2 so D cosine 4x^

  • SAR the denominator of the first factor is DG the differential of the middle function which is cosine so D cosine forx as usual when we use the chain rule we have matching terms and the derivative with respect to something of

  • something squared is two of that something so the first term in the chain DF by DG is 2 cosine 4X the numerator of the second factor is the denominator of the first that's how the chain Works D cosine 4X the

  • denominator of the second factor is DH the differential of the inner function which is 4X so d4x again our terms match and we have the derivative of cosine of something with respect to that something the something is 4X and the derivative of

  • cosine is negative s so the second term DG by DH is NE sin 4X following the pattern the numerator of the third factor is the denominator of the second differential of 4X and finally at the end of the chain

  • is the differential of the independent variable X DX the last Factor will be a straightforward derivative the derivative of 4X with respect to X is 4 so the last Factor DH by DX is 4 rearrange the terms if you like and we

  • found the derivative of cosine 2 4X and that's the chain rule the one you'll use most often in real life and very easy with practice next is the quo rule where we'll find the derivative of one function divided by another put

  • differently we're finding how the ratio between two functions of X changes as X changes first the derivative of the ratio is not the ratio of the derivatives that might remind you of the product rule since the derivative of the product is not the product of the

  • derivatives the quotient rule says that the derivative of the ratio is the denominator time the derivative of the numerator minus the numerator times the derivative of the denominator all over the denominator squared we can prove it's true using the

  • product rule and chain rule first we rewrite the quotient as a product with a denominator raised to the -1 power so we have d by DX of f ofx * G ofx the1 so we use the product rule the

  • first * the derivative of the second plus the second * the derivative of the first the derivative has four components each straightforward except this one is a composite of a function raised to a power so we'll just need to apply the chain rule we have the derivative of

  • some function raised to the -1 so the power rule tells us that's -1 * the function raised to the -2 then to finish the chain rule we multiply by the derivative of the function G Prime of X now let's

  • simplify on the left side we have f ofx * G Prime of X all over G of x^2 then we add the right side fime of X over G

  • ofx so we're adding two fractions but their denominators don't match if the denominators matched we could add their numerators if we multiplied the right denominator by G of X then they'd both be g^ 2 of X so let's multiply the right

  • term by G of X over G ofx and that's it if we swap the left and right terms the format will match the quotient rule stated above so we've derived the quotient rule from the product rule and chain

  • rule to remember the chain rule I start with the denominator squared then the numerator expression starts with the denominator not squared then like the product rule we multiply one by the derivative of the other but unlike the product rule we subtract instead of add

  • then the right term is opposite derivative Wise from the left term frime becomes f and g becomes G Prime write it from scratch a few times and you'll know it let's find the derivative of a quotient 3x Cub - x^2 + 2 / cosine

  • X we'll start with the denominator squar cine 2qu of X then for the numerator expression we start with the denominator again not squared cine X then multiply by the derivative of the numerator by the power rule the derivative of 3 x Cub

  • - x^2 + 1 is 9 x^2 - 2x then we subtract the right expression which is the numerator 3x Cub - x^2 + 1 * the derivative of the denominator the

  • derivative of cine X is sinx that's pretty much it these negative signs undo each other and with some trig substitution you can get rid of the cosine ^ 2qu x in the denominator and that's the quotient

  • rule speaking of trig now that we know the quotient rule we can find the derivative of the other four trig functions because they can all be expressed as fractions involving s and cosine I'm using the color coding from my trigonometry series just for this

  • chart for the derivative of tangent Theta the quotient rule is the denominator time the derivative of the numerator minus the numerator * the derivative of the denominator all divided the denominator squared this simplifies to cosine 2 thet plus sin s

  • Theta which is 1 over cosine s thet which is secant squ thet since secant is 1/ cosine I'll show the derivation of the other trig functions using the quotient rule but won't step through the details

  • you might need to know these check with your instructor if you know the quotient Rule and the circle trig identities you can figure these out as you need them practice builds confidence here are the derivatives of the six trig

  • functions let's check our agenda we covered the four-part trig cycle for the derivatives of s and cosine we covered the chain rule to find the derivative of composite functions the role you're likely to use more than any other then

  • we went over the quotient Rule and actually derived it from the product rule and the chain rule we use the quotient rule to show the derivatives of the remaining trig functions since they're all ratios that include s and cosine the last rules of differentiation

  • are for exponentials and logarithms please note that all these Atomic function types can be combined and used in all of these rules that allow us to combine functions in various ways so the next rules are for exponential and

  • logarithms these rules are some of the simplest well they've all been pretty simple right but there's a lot of background to review for it all to make sense exponentials and logarithms are usually covered in Algebra 2 or pre-calculus but I'll do a thorough review of the topics needed to

  • understand the rules of differentiation exponential functions have their independent variable X up in the exponent the number on bottom is called the base I'm color coding the base green as a reminder that it's not a variable like X it's a constant such as

  • 2 don't confuse the exponential function 2 ra the power of X with the polom or power function x raed to the power of two they're different functions with different graphs and different derivatives you can remember that exponential functions have their

  • variable in the exponent and in short B to the X means multiply con base B by itself x * let's assume we have B raised to the 7th power as shown the associative

  • property of multiplication says that we can group The B's together like this and get the same result so B 7th = B 3r * B 4th in general when their bases are the same we can multiply exponentials by

  • adding their exponents let's graph some exponential when the base B is greater than one the exponential function value gets bigger and bigger as X increases the slope is always positive functions like these are used to model exponential

  • growth when the base B is one the exponential function value Y is always one because one to any exponent is one because 1 times itself any number of times is always going to be one and when the Bas is between zero and

  • one the function value gets smaller and smaller as X increases functions like this are used to model exponential decay an exponential function with base B will always be symmetrical across the y AIS to an exponential function whose

  • base is the reciprocal of B like this example of 2 and/ 12 all the graphs of y equal sum base B to the X pass through the very busy Point 0a 1 because any base B raised to

  • the zeroth power will always equal one here's an animation showing various exponential curves as the green base B changes when B is greater than one the curve is always increasing the higher the base B the faster the increase and

  • as I mentioned every curve passes through the circled point 0 comma 1 when base B is 1 the curve flattens out because 1 raised to any power x will always B1 and when B is between 0 and 1 the

  • curve is always decreasing lower base values B decrease faster so we have an exponential function y = b to the X where B is a constant and X is the independent variable so given b x and a calculator

  • we can find y but what if we know Y and B and want to find X for any function when we find x given y instead of Y given X that's called taking the inverse of the function suppose we knew Y =

  • 5.89 and wanted to find X how would we do it the inverse of the exponential function is the logarithm the logarithm answers the question what's the exponent we write and say the logarithm function like this x = log base 1.47 3 of

  • 5.89 it means X is the expon onent on 1.47 3 that results in 5.89 these equations aren't solved by hand we use a calculator and before calculators slide rules let me show you

  • this again emphasizing the inverse relationship to solve this equation for x we need to isolate X to get x equals something but X is in the exponent how do we get x out of the exponent how do we undo

  • exponentiation by taking the logarithm we'll take the logarithm of both sides making sure that the bases match to undo an exponent of Base 1.47 3 we need to take the logarithm base 1.47 3 let's

  • look at the right side of the equation remember the log function answers the question what's the exponent let's transliterate the right hand side what's the exponent on 1.47 3 that results in 1.4 473 to the X well the answer is X

  • this is rather like asking what's half of twice X the half and the twice undo each other leaving X and the logarithm base 1.47 3 undo exponentiation base 1.47 3 so we get X on the right hand

  • side which is exactly why we took the logarithm to isolate the exponent x to keep things even and balanced we need to take the logarithm of the left side too and we get log base 1.47 3 of 5.89 which

  • our calculator will tell us is 4.58 since exponentials and logarithms are inverse functions of each other their graphs are symmetrical across the line yal X the exponential of Base B is a miror

  • reflection of the logarithm base B across the dotted diagonal line Y = X all inverse function pairs share this characteristic not just exponentials and logarithms so naturally since all exponential graphs pass through the

  • point 0 comma 1 because any base raised to the 0 power is 1 all logarithmic graphs pass through the point 1 comma 0 because the exponent to any base that results in one is

  • zero the associative property of multiplication tells us that b 7x can be expressed as B 3x * B 4X let's see what happens when we take the logarithm base B of both sides log base B of 7x is

  • simply 7x like before the log base B and the exponent on B cancel out leaving just the exponent and log base B of these two terms are 3x and 4x respectively so the three terms we get

  • after taking log base B are the three exponents of B 7x 3x and 4x and to write the resulting equation we need to combine these terms by adding not multiplying that shouldn't be surprising logarithms effectively bring exponents

  • down and we already observed this property about multiplying exponentials let's go to an extreme and write B 7x as b x multiplied by itself 7even times now when we take the logarithm base B of both sides we get

  • seven distinct in log base B of B to the X terms that means that log base B of B 7x is 7 log Bas B of B to the x or in general log base B of B to the NX is n

  • logs Bas B of B to the X we can take the coefficient of x in the exponent and move it to the coefficient of the logarithm we're almost ready for the rules of differentiation but first another important property of exponential

  • functions any exponential function can be expressed as an equivalent exponential function with any other base so here's the graph of y = 2 to the X again we can get the exact same graph from an exponential equation that has

  • another base such as 3 so Y = 2 x can be expressed as y = 3 raised to the something let's find the something by setting the Expressions equal to each other 3 raised to the Something = 2

  • raised to X let's take the logarithm of both sides to isolate the red something variable we need to be careful which base to use for the logarithm we want to isolate the red something so we'll take the log base 3 of both sides since three

  • is the base whose exponent we want to isolate the left side simplifies to our red variable on the right side we take the exponent out and give us X logs base 3 of 2 and that's the answer 2 the x is the same function as 3 raised to the log

  • base 3 of 2 * X and the calculator will tell us that log base 3 of 2 is about 0.63 093 here's the pattern for switching bases the old base raised to the X power

  • equals the new base raised to the power of log base new base of old base * X so these are the same functions and the point is it's not the base that determines the shape of the exponential function but a combination of the base

  • and whatever coefficient the independent variable has in the exponent the same curve can be described by lots of exponential functions having whatever base you choose however there's a very special exponential base his

  • value is about 2.718 it's so special that it has its own symbol lowercase e I'll use green as a reminder that e is a constant like two or three not a variable it's kind of a surprise that

  • the constant e pops up in some simple formulas it's a constant of nature like pi and I'll show you in a moment why e is so useful in calculus and why it's called the natural base here's a graph

  • of the exponential function y = 2 X and here's y = 3 x since e is between 2 and 3 it shouldn't be too surprising that y = e to the x is between them it's a very

  • special Base number but its curve looks just like any other exponential curve if we have a function y = e to X we can find y given X like any other function and we can invert it to express X in terms of Y using the

  • logarithm if y = e to X then X = log base e of Y well the logarithm base e is also special and it has a special symbol and name the natural logarithm or natural log and for its symbol instead

  • of writing L base e we write Ln I know that seems backwards but it's from the Latin Ln means natural log so log base e of Y is equivalent to this expression which can be pronounced

  • as natural logarithm of Y natural log of Y Ln of Y or even Ln y so once more Ln is a mathematical shorthand for log base e the natural log also pops up

  • surprisingly in some simple formulas we'll see this limit again in a moment when printed Ln can look like one n so when handwritten you'll often C Ln written in script or cursive with a

  • loopy L like this here are some examples I found online it's not a big deal I just don't want you to be confused when you see the style and I suggest you use it just write Ln in cursive like it was a

  • word now we're ready for the differentiation rules for exponentials as usual we'll find the slope at a red Point by finding the slope between the red point and a nearby Green Point whose x coordinate is x + H

  • then we'll take the limit as H approaches zero and see what we get our function is 2 X so we plug that into our limit equation note that we have 2 raised to x + H power we can rewrite this as 2 x * 2 H

  • remember now we have 2 to the X twice in the numerator which we can factor out to get 2 x * 2 H -1 all over H remember we're taking the limit as H approaches 0 and 2 to the X won't change as H changes

  • because there's no h in it so we can pull it out of the limit now I told you earlier that this limit is the natural log of this number like this and so the derivative of 2 x is 2 x

  • * the natural logarithm of 2 and in general the derivative of B to the x is the natural log of B * B to the X and that's a differentiation rule for exponents we'll make it stronger in a

  • moment but it's good to know that the derivative of B to the x is the natural log of B times the original exponential function B to the X quick what's the derivative of 7 to the x

  • it's the natural logarithm of the base 7 times the original exponential function 7 to the X easy now what if the base were the natural base e same thing the derivative of e to the x is the natural log of e

  • times the original exponential function e to the X well what's the natural log of e Ln e means the exponent on base e remember the base of the natural logarithm Ln is always e that results in

  • E so Ln e is one because E rais power of one is e this is not a special rule for E any log base B of B that is the logarithm of any number to its own base is one because B raised to the power of

  • one is B so log base e of e is one we just have a special symbol for log base e Ln so Ln E equals 1 we substitute the natural log of e which is one into our derivative

  • and simplify to get the derivative of e to the x is e to the X the only function that's its own derivative pretty neat and that's why e is such a special exponential base now on the screen are two equations

  • or rules for derivatives of exponentials the bottom is just a special case of the top for base e since Ln e is one but there's one more variation to consider and then we'll have a single robust rule that will help us find the derivative of

  • all exponential functions often the exponent will not simply be X but some function of X this is very common in real world applications of exponentials we can't use the highlighted rule above it applies only when the exponent matches

  • the independent variable for B raised to a function of X they don't match so the first rule won't work we need to use the chain rule because we have a function f ofx embedded within an exponential since we just covered the chain Ru I hope

  • you'll excuse me if I jump straight to the conclusion here and say that we account for the daisy chained functions by multiplying by the derivative of the exponent so the derivative with respect to X of B raised to some function of X has three factors the derivative of the

  • exponent times the natural logarithm of the base B times the original exponential function and this is the differentiation rule for exponentials to know because it will work for any base e or otherwise

  • and for any exponent x or some function of X let me build a chart to show this is true we'll put the general exponential function in this cell it corresponds to any base meaning not necessarily the natural base e and a

  • function of X in the exponent as opposed to an exponent of Simply X as you'll see the other three cells are simpler cases of this one in the cell above the base isn't necessarily e and there's no function in

  • the exponent meaning the exponent is simply X this cell represents the special case where the Bas is e and the exponent is a function of X and finally this cell represents the special case where the base is e and the

  • exponent is simply X we're going to find the derivative of each of these exponentials using the differentiation rule for exponents the three Factor derivative from a moment ago I'll step through the rule for each cell and you'll see why we only need one

  • rule we'll start here with the most general form the derivative of the exponential is always the derivative of the exponent times the natural log of the base times the original exponential function and that's the three Factor

  • solution that will always work let's apply the same rule to y = b to X it's essentially the same function except the exponent is X instead of f ofx no problem we just write the three factors one at a time we start with the

  • derivative of the exponent well the derivative of x is one so we can ignore the first Factor the second factor is the natural log of the base B and the last factor is simply the original exponential function B to the

  • X so the derivative of B to the x is lnb * B to X we used the same three-part rule but the first Factor went to one since the derivative of the exponent x is one now let's find the derivative of

  • e raised to the F ofx the derivative of the exponent times the natural log of the base since the base is e Ln e is 1 so the second factor is ignored and the third factor is again the original exponential

  • function so the derivative of e to the f ofx is frime of X time e to the F ofx we Ed the same three-part rule but the second Factor went to one since L and E is 1 now let's find the derivative of e to

  • the X using the same three-part Factor the derivative of the exponent the exponent is X and the derivative of x is 1 so the first Factor goes to one the second factor is the natural log of the base the base is e and Ln e is one so

  • the second Factor also goes to one the third factor is the original exponential function e to the X so the derivative of e to the x is e to the X the only function that's its own derivative we use the same same three-part rule but

  • the first Factor went to one since the derivative of the exponent x is one and the second Factor also went to one since Ln e is one and that just left the third factor which is the original exponential function the point of this chart is that

  • exponential functions come in several varieties but you don't need to know several rules just this one it will give you the correct derivative for all exponentials as long as you know that the derivative with respect the x is one and that L and E is one one rule to ring

  • them all next is logarithms the rules for logarithms can also be derived with the chain rule but again for the sake of expediency please excuse me if I jump to

  • the rules like we did for exponentials we'll use the most general form of the logarithm function having any base B not necessarily e and the argument can be some function of X not necessarily plain X the general differentiation rule for

  • logarithms also has three factors that kind of correlate to the factors for exponentials the first factor is the derivative of the function that's the same the second factor is one over the natural log of the base this is the reciprocal of the factor for

  • exponentials and the third factor is one over the argument function f ofx the third Factor isn't really that similar to the third factor in the exponential rule but with practice you'll get it the fractions are often combined so you might see the rule like this I'll keep

  • it as three separate factors in the logarithm chart so you can see each factor clearly we'll start with the general cell again in the lower leftand corner and apply the new three Factor rule for logarithms the derivative of the logarithms argument frime of

  • x * 1 over the natural log of the base * 1 over the argument like before we'll use this rule as our pattern it'll work for all the logarithm Expressions let's apply it to Y = log

  • base B of X here the logarithms argument is X not a function of X the first factor is the derivative of the argument the derivative of x is one so we can ignore this Factor the second factor is one over the

  • natural log of the base 1 / L and B and the third factor is the reciprocal of the argument 1 /x so the derivative with respect to X of log base B of X is 1 / natural log of

  • B * X let's apply the rule to this cell and find the derivative of the natural log of some function of X the first factor is the derivative of the argument frime of X the second factor is 1 over the

  • natural log of the base the base of Ln the natural log is e and 1 / Ln e is 1 so the second Factor goes to one and the third factor is one over the argument so the derivative of the

  • natural log of some function of X is the derivative of the function divided by the function now let's apply the rule to the derivative of Ln X the first factor is the derivative of the argument X so it's

  • one and can be ignored the second factor is one over the natural log of the base the natural log of Base e is one so the second Factor can also be ignored this leaves the third Factor one over the argument so the derivative of Ln X is 1

  • /x so once again a single rule for the most General logarithm will work for any of these special cases and these are the differentiation rules for exponentials and logarithms that you should know and so finally we've covered all

  • these rules of differentiation it's a lot of material it's pretty much the entire first semester of calculus remember calculus is all about performing two operations on functions and we've just covered the first operation differentiation when we differentiate a

  • function the result is the function's derivative the other operation is called integration when we integrate a function the result is the function's integral as a preface to start learning about integration I need to introduce the

  • anti-derivative suppose we're given a function and told that it's a derivative fime of x what then is f ofx in other words what's the function whose derivative is fime of x if frime of X is the derivative of f ofx then f ofx is

  • the anti-derivative of frime of X the second calculus operation integration depends on being able to find anti-derivatives in fact the integral is the anti-derivative this is the important topic for the second half of calculus

  • because differentiation and integration are almost exact opposites of each other but let's start simply suppose fime of X = x^2 how can we find out what f ofx is just to be clear we're not trying to

  • find the derivative of X2 the power rule tells us the derivative of x^2 is 2x easy instead we need to use the power rule backwards we're looking for the function whose derivative is x^2 or the anti-derivative of

  • x^2 as a reminder here's the power rule shortcut for when X the N has a coefficient K the derivative with respect to X of K * X the N is KNN * X nus1 remember we bring the exponent

  • downstairs multiply by any coefficient that's already there and then reduce the exponent by one so imagine that we did this to some function f ofx and the result was frime of X = x^2 what function f ofx did we start

  • with let's muscle through the power rule backwards to take the derivative of a power weed reduce the exponent by one so to take the anti-derivative of a power we'll need to increase it by one so we have something X cubed let's use our

  • imaginations for a moment and see what happens when the green question mark is one that would make F ofx = to X cub and fime of X the derivative of x cubed = to 3x^2 hm 3x^2 is 3 times larger than

  • frime of X we're targeting so we need a factor factor that will reduce it by 1/3 so the green coefficient must be 1/3 it's always easy to check anti-derivatives just take its derivative and see if you get the function you started with in this case

  • the derivative of 1/3 x cubed does indeed equal x^2 so the anti-derivative of x^2 is 1/3 x cub in general the anti-derivative of k x n is x n + 1 * the coefficient k / n

  • +1 you may see this written as k x n + 1 all over n +1 same thing now there's just one glaring challenge staring right at us this formula won't work when the denominator of the fraction is zero let

  • me build a chart that shows the anti-derivatives of simple powers of x to highlight the pattern and challenge let's start with the derivative of x cubed to find the anti-derivative we add one to the exponent and then divide by that new number 1/4 x 4th in a few

  • moments we're going to make a small adjustment to this expression and the others on this chart so the anti-derivative of X cubed isn't exactly 1/4 x to 4th but you still need to know this anti-derivative formula for Powers if the derivative is x^2 then the

  • anti-derivative must be 1/3 x cubed plus the adjustment we'll cover it soon I won't mention it again until then this anti-derivative 1/3 x cubed was the example we mused through to get our anti-derivative formula next is the

  • derivative of x to the first Power which is just X following the formula the anti-derivative of X must be 12 x^2 so far so good here the derivative is X to the 0 which is 1 the anti-derivative of

  • 1 is X since the derivative of x is 1 of course using the formula yields X since 1 1 * x 1 is simply X now when the derivative is X the ne 1 then this is the same as 1 /x and here's

  • where the formula breaks down because it results in a denominator of zero so this is an undefined expression we'll come back to it but let me add a few more to the chart to show that the anti-derivative formula for Powers works for every other power positive or negative it also works for fractional

  • Powers but I don't show any on the chart it works for everything except when the exponent is -1 which corresponds to 1 /x we cannot use this formula to find the anti-derivative of 1 /x but 1 /x does have an anti-derivative

  • what is it you might remember this chart where we covered the differentiation rules for logarithms here we showed that the derivative of the natural log of x was 1 /x that must mean that the anti-derivative of 1 /x is the natural

  • log of x almost this one needs another slight adjustment in addition to this slight adjustment but we'll cover the special natural logarithm adjustment right now here's the graph of frime of X as x^ -1 or 1/x I graphed it in pink

  • because it's the slope the slope of what it's anti-derivative which is the natural log of x shown in the white curve here's where the challenge arises the natural log function is the defined only for positive X values the right half of the graph but 1 /x is defined

  • for positive and negative values but not zero so we need a white function curve on the left side of the graph that answers the anti-derivative question what function has this derivative let's note that the pink curve 1 /x is symmetrical across the

  • origin and so can be spun around 180° without changing this means that every pink Point has a twin across the origin with opposite coordinates and so the white function will have reflected points across the y AIS with the same

  • slope thus our white function the anti-derivative of 1 /x is the natural log of the absolute value of x this function is the anti-derivative that works perfectly for both positive and negative X values so here's the general

  • anti-derivative rule for Powers the top rule the bump up the exponent rule works all the time except when n the exponent on X is -1 when n is -1 then that's the anti-derivative of K overx which is K *

  • the natural log of the absolute value of x we still have this adjustment I promised so let me explain what it is and why it's needed I'll illustrate by taking the anti-derivative of a polom we're starting with pols because they're

  • easy and straightforward we'll cover the anti-derivative of other function types later the additional rule for differentiation says that the derivative of the sum is equal to the sum of the derivatives and the same rule applies to anti-derivatives the anti-derivative of

  • the sum is equal to the sum of the anti-derivatives so we can find the anti-derivative of this function term by term we'll go through these quickly the anti-derivative of 8X cued is something X 4th coefficient 8 / 4 is 2 so 2 x x 4

  • it's always easy to check by going backwards the derivative of 2x 4 is equal to 8 x Cub so we can be confident that the first term is right next term the anti-derivative of 3x^2 is something X cubed coefficient 3 over the new

  • exponent 3 is 1 so the second term is plus X cubed the term minus 6X has anti-derivative something x^2 -6 / the new exponent 2 is -3 so the third term of the anti-derivative is

  • minus 3x^2 and the last term is 1 which we can think of as 1 x to the 0 so the exponent of the anti-derivative is 1 and the coefficient is 1 over 1 or 1 so just plain X and this checks out the derivative with respect to X of X is 1

  • well it looks like we're done we know that frime of X is the derivative of F ofx and that f ofx is the anti-derivative of frime of X here's the anti-derivative we found and we can validate by taking the derivative term by

  • term perfect we nailed it but now let's consider the same function f ofx except it has + one all the derivative terms are the same and we add the derivative of one but the derivative of one is zero by the

  • constant rule so the derivative of this new f ofx is the same as the previous one and it's the same if we add two or subtract one or add or subtract any constant all of these functions have the

  • same derivative the derivative we started with 8X Cub + 3x^2 - 6X + 1 here's what's going on here's a graph of the anti-derivative we found 2 x 4 +

  • x Cub - 3x^2 + x X and here's the graph of the derivative we started with 8 x Cub + 3x^2 - 6X + 1 remember we started with this pink derivative and we backed into the white equation by taking the

  • anti-derivative the pink derivative curve looks reasonable it says the derivative is zero at these three points where the white slope is zero now let's look at the next equation up the one that ends with + one note that this simply translates the white

  • curve straight up by one unit the slopes don't change everything is just shifted up this makes sense both equations yield the same pink derivative same with the plus two version and the minus1 we can add any positive or

  • negative constant to a function without changing its derivative because adding a constant just moves the entire curve up or down without changing its slope anywhere thus each member of this family of functions has the same

  • derivative so when we find the anti-derivative of the right function which one do we choose well we designate the whole family by adding plus C where Capital C represents any constant and is called the constant of integration this

  • is true for all anti-derivatives not just the anti-derivative of powers and polinomial every function has exactly one derivative but every function has an infinite number of anti-derivatives because they can be shifted up or down by constant C and still have the same

  • derivative so we specify the whole family of functions by including the plus C constant of integration when we find anti-derivatives so the adjustment I promised is the constant of integration plus C it should always be included in anti-derivative functions

  • and so our general anti-derivative rule for Powers needs to be updated to include the constant of integration regarding anti-derivative notation when we're given a function called fime of X it seems pretty clear

  • that its anti-derivative would simply be the function name f without the prime indicator since taking the derivative adds a prime symbol taking the anti-derivative reasonably it seems removes a prime symbol but when a function doesn't have

  • a prime symbol how do we denote its anti- derivative well the convention is that we capitalize the function letter so capital F ofx is the anti-derivative of lowercase f ofx and the derivative of capital F ofx is lowercase f

  • ofx when we intend to denote the derivative of a function f ofx we're already familiar with expressing this as frime of X and as d by DX of f ofx for the anti-derivative of f ofx we can Express this as uppercase F ofx as

  • already mentioned or we can use this new calculus notation this is the integral symbol it's not a Greek letter it's an elongated s for some we'll get into the details in a few minutes the function

  • whose anti-derivative we're finding is called the integrant when I introduce the anti-derivative concept I called this function frime of x to emphasize that it's already the Der ative and that we are going backwards from it when you see an integral expression

  • the integrant won't have a prime symbol as a reminder the integral symbol means find the anti-derivative of the integrand and the differential DX denotes the variable of integration this expression has an intuitive interpretation that we'll be ready for

  • in just a moment here's our sample function and we were asked what function has this derivative we applied the power rule for anti-derivative term by term and got this function the anti-derivative we express the anti-derivative operation

  • with the integral symbol like this the integral of a function yields its anti-derivative remember to include the constant of

  • integration so the second calculus operation integration is finding the anti-derivative but it's so much more more than that and has interesting applications that make it suitable for solving lots of real world problems I want to show you another more

  • insightful interpretation of integration but I need to start in kind of a strange way I'll draw a coordinate system where the horizontal axis denotes time in seconds and the vertical axis denotes velocity in meters per

  • second suppose we have a particle physicists and Engineers use particles in thought EXP experiments like this so they don't have to worry about measuring from the front edge or back Edge it's just a dimensionless spec so they're all the same so this particle is moving at a

  • constant velocity of 2 m/s for 8 seconds what's the particle's displacement after these 8 seconds displacement is the vector form of distance so for this example you can think of displacement as distance since the particle is moving in

  • One Direction along a straight line this is a pretty easy problem 2 m/s * 8 seconds the unit seconds cancels leaving 16 M as it turns out the area under a velocity curve is always equal to the

  • displacement 2 high * 8 wide 16 now to illustrate the points I'm making I'm using displacement and velocity but there are many phenomena that fit this model for example I could have used total electrical charge and

  • electric current or population and and growth rate or energy and power but I chose displacement and velocity because people have an intuitive understanding so please don't think we're just learning how to solve

  • distance problems the Calculus Tools we're learning can be applied to many types of situations so this red area representing displacement is intuitively simple when the velocity doesn't change like in this example but what if the particle started

  • at 2 m/s and accelerated smoothly to 4 m/s not as straightforward unless you realize all you have to do is find the area then it's still simple because the velocity line is straight and you can use Simple geometry to find the

  • displacement for this graph is 24 M this area is still 16 and this triangle is 8 that's geometry not calculus okay what if the velocity over time is described by a curvy line now we've got a challenge we know the

  • function f of T it tells us the particle's velocity at any point in time and there must be some other function I'll call it capital A of T that tells us the red area up to any point in time T the a stands for area but we don't

  • know what function a is well we still want to know the area so here's one way to attack the problem we'll start by estimating the red area under F of T by dividing it into vertical rectangles it's easy to find the area of a rectangle

  • then we'll add up all the rectangular areas and that will be our estimate of the red area for the sake of convenience let's make the width of each rectangle 1 second so delta T equals 1 and we'll draw eight rectangles since the motion lasted 8 seconds for clarity and

  • consistency we'll make the height of each rectangle be the function's value at the rectangle's left Edge here's what I mean for the first rectangle its height is this distance which is f of 0 because its left Edge is at time t equal

  • 0 the width is delta T so the rectangle's area is f of 0 * delta T height * width the second rectangle will have height F of 1 its left Edge its area is f of 1 * delta T and so on for

  • the other six rectangles each rectangle is an estimate of the red area over its width delta T the height of each rectangle is the function's value F of T so the total area of the eight rectangles which is

  • our estimated area for red is the sum as T goes from 0 to 7 of f of T delta T add up all eight of the height times widths we end with seven and not eight because we started counting at zero

  • eight rectangles 0 through 7 well that might be a pretty good estimate but each rectangle fits the curve imperfectly so there's going to be some error in our estimate more narrower rectangles will more closely fit the curve and provide a better estimate so

  • we'll let delta T get smaller and smaller maybe this made you think of the method we use to estimate the slope of a curve at a point we let the distance between two points get smaller and smaller all the way down to the differential DX and that's what we'll do

  • with these rectangles we'll make the area in our estimate approach Zero by using a larger and larger number of rectangles having narrower and narrower widths until we get to the Limit as the width approaches zero the differential in this example our

  • independent variable happens to be T instead of X so the differential will be DT adding up an infinite number of things isn't easy it could take all day when we had eight rectangles corresponding to time t = 0 through 7 we

  • use this but calculus has some special notation to add up a Continuum of differentially small numbers it's the integral symbol from the anti-derivative as you'll see we treat it a lot like the summation symbol for example the summation expression above

  • includes the lower and upper bounds of the summation here and the integral symbol gets lower and upper bounds also for our example we're starting at time tal 0 and going all the way through to tal 8 this represents adding up all the

  • infinitely many differential rectangles between 0 and 8 in the summation expression we're adding up all the rectangular areas which are height time width F of T * delta T and we do the same thing in the integral expression

  • except the width is DT instead of delta T we only apply the integral operation to differential widths and this integral is equal to the function a of T the equation says the area under the curve of f of T up to tal 8 is the integral of

  • f of T DT from 0 to 8 I'm telling you this is true but I want to convince you I think this will give you a better understanding of this extremely important calculus concept let's consider our velocity curve again

  • we know the function f of T describes the particle's velocity at any time T here's our function a of T that represents the area under the curve up to T it looks like T is three but it doesn't matter it's got to be something now suppose I draw our very thin

  • rectangle here its width is DT the differential change in time T I'm drawing the rectangle kind of thick so we can see it but its width DT is approaching zero so invisibly thin its height is f of T the velocity of the

  • particle at time T and the thin rectangle's area is Da the differential change in area due to the differential change in time DT now if your attention is drifting please perk up this could be the most important minute in the entire video we

  • can write an equation relating these three variables da equals F of T DT or area of rectangle equals height * width now let's divide both sides by DT to get da by dtal F of T so we have an unknown

  • function a of T we like to know what it is but we don't however we know its derivative is f of T so if F of T is the derivative of a of T then a of T must be the anti-derivative or integral of f of

  • T we find the cumulative area under a function curve using the anti-derivative of the function and that's the second I think more insightful interpretation of integration finding the area under a function's curve let's try this out with

  • our earlier examples now I'm going to be a little sloppy because I'm anxious to show you how well this works but I'll clean up the sloppiness afterwards here's the constant velocity example F of T equals 2 since the velocity is a constant 2

  • m/s the area function a of T we just discovered is the anti-derivative of f of T So a prime of T equals F of T and we want a of T so let's take the anti-derivative of both sides and we get

  • a of tal 2T the anti-derivative of 2 remember is 2 * the independent variable T So 2T as always it's easy to check by going backwards using the power rule that the derivative with respect to T of 2T gets

  • us back to two and the derivative of a of T is a prime of T so we're all balanced so we have a function for a of T let's plug in 8 and we get 16 M which is the same answer we got earlier through algebra now let's try the

  • velocity line with the nonzero slope by inspection we can see that the function for the line is f of T = 1/4 t + 2 this is from algebra y = Mt + b the slope is rise over run or 1/4 and the Y intercept

  • is 2 this is algebra not calculus so I'm not covering the details F of T is equal to a prime of T but we want a of T so let's take the anti-derivative of both sides to get a of T = 1/8 T ^2 + 2T

  • using our power rule for anti-derivatives plug in 8 and we get 1/8 of 64 which is 8 + 16 so 24 M like before okay we should be convinced that given a function f of T it's

  • anti-derivative will yield the function denoting the area under its curve now now in my enthusiasm to show you the relationship between a function's anti-derivative and the area under the function's curve you may have noticed that I sloly skipped over two

  • important details we'd mentioned earlier first the constant C we add to the anti-derivative to show that there are a multitude of functions all having the same derivative second the lower and upper limit we added to the integral symbol to denote the range over which we were

  • summing up the anti-derivatives differential rectangles let me address the these considerations by modifying our problem slightly suppose now we're interested in the area under F of T between tal 2 and T = 8 this would represent just the

  • particle displacement that occurs between 2 and 8 seconds how can we find this new smaller red area well it's this larger red area that we've already found a of 8 minus this smaller red area a of

  • two the difference is the area we wanted to find eight is the upper bound and two is the lower bound the notation means we're going to start with a differential rectangle at tal 2 and sum up all the rectangular areas up to T = 8 and we

  • accomplish this by taking the anti-derivative of the function f of T we already did this we relabeled F of t as a prime of T to emphasize that it's anti-derivative was a of T the function that Returns the cumulative area under F of t and the anti-derivative of f of T

  • is 1/8 T ^2 + 2T + C we evaluate this anti-derivative at T = 8 and subtract the value we get at T = 2 here's how we write the expression this vertical bar is called the evaluation bar and when

  • solving an integral it means to plug the upper limit into the expression to the left of the bar then subtract the expression's value at the lower limit the expression to the left of the evaluation bar must be the anti-derivative of the integrant the function whose area we're evaluating so

  • let's find the area between tal 2 and 8 by solving this integral first we plug in t = 8 then we subtract for T = 2 the top expression is 8 + 16 + C so 24 + C

  • the bottom expression is 1 12 + 4 + C so 4 and 1/2 + C when when we subtract we get 192 please notice the constant of integration C cancels since we subtract

  • one from the other and so the answer to our question what's the red area between t = 2 and 8 is 192 which represents 19 1 12 m in the context of our velocity problem now let's put everything together and add some Precision to our

  • calculus vocabulary when an integral expression has no upper or lower bounds that's called called an indefinite integral that's easy to remember because we're indefinite about what the boundaries might be an indefinite integral is equal to the anti-derivative

  • of the specified function and includes plus C the constant of integration an indefinite integral is like the answer to a quiz question what function has f ofx as its derivative since every function has infinitely many

  • anti-derivatives we specify the entire family of functions by including the Plus C constant of integration when solving indefinite integrals when an integral expression has boundaries it's called a definite integral a definite integral is equal to

  • the anti-derivative of the specified function at the upper limit minus the anti-derivative of the function at the lower limit we can write this difference these two ways they mean the same thing so when we solve a definite integral of a function f ofx the first

  • step is to find the indefinite integral that is the anti-derivative of f ofx because we have to evaluate it at the upper and lower boundary to solve the definite integral and as we've already seen the constants of integration plus C

  • always cancel when we subtract so it's okay if you leave them off of your definite integral expression like this and so while the indefinite integral is a function with plus c a definite integral is a number the number

  • that represents the area under the curve F ofx between the lower and upper boundary and of course to find the number you need the function here's a summary chart the indefinite integral is a function a function having the integrand as its derivative it includes

  • the constant of integration the definite integral has bounds and is a number the anti-derivative evaluated at the upper bound minus the anti-derivative at the lower bound so to calculate the definite integral of a function you first need to know the indefinite integral of the

  • function which is the function's anti-derivative let's do another problem here's a function f ofx = 0.1 x^2 - 1.5x + 4 we're just using polom for now

  • because they're so easy we'll get to other types of functions later suppose we need to know the area beneath the curve between x = 2 and X = 9 when we examine the area a question immediately presents itself what happens when the function has a negative value

  • I've been saying area beneath but that's not literally the case as we'll see the integration operation will treat areas corresponding to negative function values as negative areas between the function curve and the x-axis like this

  • so the green area is positive and the red area is negative so to be precise we can say that the definite an integral yields the signed area such that areas above the x-axis are considered positive and areas below the x-axis are considered

  • negative okay let's find the signed area we need to start with the indefinite integral of f ofx its anti-derivative we call capital F ofx we use the same rule as before for each term bump up the exponent and divide any coefficient by the new bumped

  • up exponent we write the definite inte with its boundaries 2 and 9 and write the anti-derivative with the evaluation bar having the same boundaries please don't put F ofx in here and evaluate it at the boundaries

  • you've got to use the anti-derivative of f ofx to find the area under F ofx that's why the first step of any integration problem is to find the anti-derivative capital F ofx of the integrant lowercase f ofx and that's the

  • function we evaluate to find the area without the plus C I apologize if I'm overe explaining I don't want anyone to struggle with the parts of calculus that I struggled with if I repeat something it's probably because I wish it had been repeated more than once to me anyway

  • we're ready to find the area we evaluate the anti-derivative at the upper boundary 9 it's just algebra so I won't show details 0.45 next we evaluate the anti-derivative at the lower boundary two it's

  • 5.27 then subtract upper minus lower 0.45 minus 5.27 = 5.72 and that's the signed area of f ofx between 2 and 9 that we needed to find

  • this application of definite integrals that we've already seen several times is so important that it has a special name the fundamental theorem of calculus in plain English it says that the definite integral of f ofx from A to B is equal

  • to the difference between the anti-derivative of f ofx evaluated at B and the anti-derivative of f ofx evaluated at a it's interesting and insightful to see why this works here's our original function I'm making the lowercase f pink

  • to easily identify it as a pink derivative curve here's the anti-derivative we found capital F ofx and here's the graph of of the anti-derivative white well as I keep saying there are many functions having the pink derivative the one I plotted is

  • the one where the constant of integration C is zero so the pink curve is the derivative of the white curve that looks reasonable the white curve is flat here with zero slope and the pink derivative is zero in the first half of this video

  • when we found the derivative we started with white and found pink now in the second half when we find the integral we're starting with pink and finding white and calculus tells us the value of the white curve at a point represents the area under the paint curve up to

  • that point at least when the white curve crosses the origin so the area starts with 0 at x equal 0 okay let's try it out by visual inspection let's look at x = 1 capital F of 1 is about 3.28 just

  • plug one into capital F ofx to get 3 .28 let's eyeball the area under the pink curve up to x = 1 there's 1 2 we're missing a little bit of three but we have this extra up here I hope it seems

  • reasonable that the area of green is 3.28 now let's look at x = 2 capital F of 2 is about 5.27 we found this a few moments ago by plugging two into capital F ofx this

  • one's a little tricky to estimate but you can pause if you'd like to convince yourself that 5.28 is a reasonable value for the green area between x = 0 and 2 when we go up to x = 3 capital F of 3

  • = 6.15 between two and three this white value went up by a small amount 0.88 and that corresponds to this new area under the curve between x = 2 and 3 0.88

  • where the slope of capital F ofx is negative the value of pink f ofx is negative of course because the pink function is the derivative of the white function for example between x = 7 and 8 capital F ofx decreases 1.06 - 2.68 is

  • 1.62 which corresponds to the negative area between 7 and 8 this is how we were able to integrate pink F ofx between 2 and 9 by simply evaluating the anti-derivatives value at x = 2 and 9 and

  • subtracting the difference in the anti-derivatives is the definite integral of the function I confess I was confused and amazed in high school when I learned this how can evaluating a white function at only two points tell me everything that's gone on with

  • another pink function between those two points the explanation that I wish I'd understood back then is that a key property of the anti-derivative function is that it's like a running total of its derivative here's an example suppose you

  • ran your own business for a very long time and you have a business bank account whose balance increases or decreases daily here I'm illustrating a multitude of green and red rows each representing the daily change to the account balance Green for positive red

  • for negative let's imagine you need need to determine how the balance has changed between two far apart dates A and B you have to add up all the hundreds of daily changes that occurred between those two dates but you've also kept the running

  • total of your bank balance at the end of each day so with this you just need to find the two balances on the boundary days and subtract to determine the cumulative change that occurred between the two dates that's how definite integrals work and why the fundamental theorem of calculus is true

  • since the anti-derivative is a literal running total of its derivative you just need to find the anti-derivatives value at the two boundary points and their difference will be the cumulative sum or area of the original function and that brings us to the third interpretation of

  • integration adding up a lot of tiny amounts using the running total characteristic of the anti-derivative this is a lot like interpretation number two finding the area under a curve since it's adding up a lot of tiny rectangular areas but

  • adding up a lot of tiny things is a bit more General and I think if you keep this interpretation in the back of your mind you'll be well served by recognizing when calculus can be used to solve a problem you're facing I'd like to formalize our

  • progress so far and plot out the remainder of our calculus Journey here's a somewhat cramped summary of the rules of differentiation we covered in the first half I'll just note that the first five represent distinct Atomic function types the last three represent the ways

  • in which functions can be combined adding multiplying and compositing many of these differentiation roles have corresponding integration roles for example we reversed the power rule for differentiation and figured out the rule to find the integral of a power function

  • so given a power function we can find its derivative or integral this is why all of the examples so far have been Pol omals because the power function is so easy for both calculus operations the trig functions are also easy when graphing the S and cosine

  • functions the derivative of a function is the curve to that function's left so naturally the anti-derivative is the curve to the function's right just remember the constant of integration there's also a constant rule for integration it says that for a

  • constant times a function like k f ofx the integral is the constant times the integral of the function we usually remember pull the constant out of the integral and the additional rule has an application for integrals it says the

  • integral of the sum is equal to the sum of the integrals this is similar to the differentiation rule that says the derivative of the sum is the sum of the derivatives for exponentials it's easy to integrate a simple function such as B

  • to the X the integral is B to X over The Natural log of B plus the constant of integration I'd be remiss if I didn't point out that for the special case of the general rule e to X the derivative is e to the X and so the integral of e

  • to X is e to x + c e to X is its own derivative and therefore its own integral but from here integration gets much less straightforward in contrast to differentiation the truth is finding

  • derivatives is easy if you're watching this video before taking Calculus class good for you get prepared you can be an expert on derivatives before your class even starts because taking derivatives is so easy it just takes practice which you

  • won't get from this video I'm trying hard to show the fundamentals of calculus in a visual interesting memorable way but you're not going to get the practice you need for proficiency just by watching me I'll mention some practice resources at the end of this video and provide links in

  • the description so finding derivatives is easy but finding integrals isn't always easy we'll do a few more easy integration problems and then I'll show you some difficult integrals and describe some of the techniques used to solve them there's a technique called

  • integration by parts that roughly corresponds to trying to apply the product rule in reverse and another technique called U substitution that tries to apply the chain rule in reverse because so many real world engine engineering science and finance problems

  • involve function products and composits these rules are used a lot and you should become familiar with them and comfortable using them I'll cover these techniques after a few simpler problems let's solve a simple definite

  • integral the integran consists of three terms so we'll apply the addition rule to integrate each term separately each mini integral has the same limits

  • of integration as the original integral -1 to 2 the middle integrant 2x^2 has a constant so we'll apply the constant Rule and pull the coefficient out of the integral like this actually the third integral also has a constant because we

  • can consider the function 4 to be 4X to 0 but an anti-derivative shortcut you should be familiar with is to multiply a standalone constant like four by the variable of integration X so the anti-derivative of 4 with respect to X

  • is 4X let's go ahead and start with the third integral we'll evaluate 4x from -1 to 2 the middle term becomes twice the integral of x^2 which is 1/3 x cubed evaluated from -1 to

  • 2 and the anti-derivative of sin x is cine X evaluated from -1 to 2 the rest is just arithmetic but please proceed carefully and deliberately I didn't intend it when I made up this problem but there are several

  • opportunities to get confused with positive negative signs the second term is subtracted the first anti-derivative has a negative sign one of the boundaries is negative and of course when we evaluate the integral we subtract the lower value from the upper

  • so let's go slowly left to right we'll plug in the upper boundary 2 into a cosine X and get approximately 0.41 61 the cosine of two radians is actually Nega

  • 0.416 but we've got the negative sign here so the expression is positive when we plug in the lower boundary we get. 543 the cosine of -1 is approximately 543 but again we have the negative sign

  • so negative 54 three and we need to be careful because when we subtract bottom from Top subtracting a negative is the same as adding a positive so the difference is positive. 19564 to four decimal places let's go on to the second

  • integral plug in 2 and we get -2 * 1/3 2 cubed this turns out to be -2/3 of 8 which is approximately - 5.33 3 I'm carrying four digits after the decimal when we plug in -1 we get postive

  • 0.666 7 and when we subtract these terms we get -6 now for the last term 4X evaluated from -1 to 2 is 8 - -4 which is 12 to any number of

  • decimals now we just add up the three subtotals and since we've already been careful with the signs we add across to get 69564 and that's the value of the definite integral let me point out some slightly different mechanics that result

  • in the same answer instead of using the addition rule for integrals to break the problem into three distinct smaller integrals like we did each having its own expression to evaluate at the upper and lower bounds of integration we can simply add the addition rle for integrals to the terms one at a time

  • into one expression and evaluate the entire expression from the lower to the upper bound like this when evaluating an expression with multiple terms a shortcut you might see is to use square brackets around the expression and place the bounds on the right square bracket

  • and omit the valuation bar it means the same thing when we evaluate at the bounds we get the same numbers as before we just do the arithmetic in a different order it's the same answer of course we can use the same technique to

  • specify indefinite integrals remember this means no upper or lower bounds so the answer is going to be a function not a number since we won't be plugging any bounds boundary values into the anti-derivative simply find the anti-derivative of each term one at a

  • time and remember the constant of integration which is needed for every indefinite integral to finish the topic of integration we need to cover these last two integration techniques we use them for integrands for which there's no straightforward rule to apply usually

  • when the integrand is a product of functions or as a composite function these are usually more challenging integrals to solve and in the real world more commonly encountered let's look at a different problem we did earlier where we found the derivative of the square root of

  • 5x^2 + 3 using the chain rule we use the chain rule because we have a composite function a function 5x^2 + 3 within another function square root I'm rewriting the square root of 5x^2 + 3 as 5x^2 + 3 to the 1/2 power and as a

  • reminder here's the chain rule the inner function G of X is the polom the outer function f ofx is the square root we started with the derivative of the square root outer function to get 12

  • 5x^2 + 3 to the -2 this is the power rule for derivatives and the result is DF by DG then we need to multiply by the derivative of 5x^2 + 3 which is 10x this is DG by

  • DX we can combine terms and then if you like exchange the - 1/2 exponent for 1 /are < TK and that was our derivative now suppose we want to go backwards and find the integral well nothing we've covered so far comes close to helping us solve this

  • integral we know what the answer should be this function that we started with plus C as I've said finding derivatives is always easy but finding integrals can often be difficult let me show you an approach to solving difficult integrals called U substitution use substitution

  • is a good technique to consider if the integrant is a product of functions we choose an expression within the integrand and replace it with a new expression called U I'm not sure why the letter U was chosen but that's what everybody uses so we should get used to

  • it there are two expressions to choose from 5x and 5x^2 + 3 I'll mention strategies for how to choose you in a moment but for now I want to show you the mechanics of the technique and will'll use U = 5x^2 + 3 now our

  • short-term goal is to rewrite the integrant in terms of U without any references to variable X after you write down your U equal statement write the expression for du by taking the derivative of both sides with respect to X du = 10x DX then rewrite that equation

  • to isolate DX DX = du/ 10 x now let's plug what we know back into to the integral we still have 5x we haven't done anything with it yet next we multiply by U to the -2 Since U = 5x^2 +

  • 3 and in place of DX we substitute its equivalent in terms of du du over 10 x well our 5x and 10 x can reduce to 1 12 which is a constant we can pull out of the integral so we have 12 * the

  • integral of U -2 du great we don't have any more X's everything is in terms of U so we can integrate with respect to U using the power rule for integrals we bump up the exponent by one and divide by the new exponent we have 1/2 * U to

  • the 1/2 over 1/2 these 1 halfes cancel and that leaves us with u to the 1/2 now let's reverse the U substitution and plug 5x^2 + 3 back in for you we get the < TK of 5x^2 + 3 +

  • C which is indeed the function we started with adding the plus C for the indefinite integral so on the top line we use the chain rule to find the derivative of the square < TK of 5x^2 + 3 then on the second line we used U substitution to

  • integrate the derivative and as expected we got back to the function we started with plus C I'll walk through the steps for you substitution but first please notice this pattern when we differentiate using the chain rule we multiply by the

  • derivative of the inner function so the derivative of sin 2x is 2 cosine 2X remember the derivative of s something is cosine something but the chain rule reminds us that we need to also multiply by the derivative of that

  • something let's look over at the U substitution problem there's not always an inner and outer function but rather an expression we choose for U at this step where we isolate DX X will always get du ided the derivative of the U term

  • with respect to X just to help you remember differentiating with the chain Rule and integrating using U substitution are opposite operations since we multiply by a derivative with the chain rule remember that we divide by a derivative with u

  • substitution so we choose the expression for U knowing that we're going to divide by its derivative and by doing so hopefully make the function simpler let me walk through the steps for use substitution then we'll solve another problem with practice you can do some of

  • these in your head but writing them down is good for starting out and gaining confidence first choose a function in the integrand to replace with you choose a function whose derivative will help simplify the integrand when you divide by it you'll get better and develop an

  • instinct for what works with practice then differentiate the function you chose for you and isolate DX actually this step will always yield d U ided the derivative of U with respect to X this is why many calculus students

  • just remember to divide by the derivative of U when using U substitution the next step is to rewrite the integral plugging in U for its function and replacing DX with its expression in terms of du the goal is to remove X entirely from the integrant so

  • the integrant is in terms of U this should result in a simpler integration problem if you cannot get rid of all the X's then make a different choice for you please note that there's no guarantee you have substitution will work unlike differentiation where there are always

  • straightforward rules to follow integration often requires some imagination and the flare for Creative problem solving next go ahead and integrate the new integrant with respect to U if possible we started with an integral of a function of X with respect to X after

  • U substitution we have a function of U and want to integrate with respect to you it should be a simpler integral if you can't integrate then make another choice for you or perhaps the problem can't be solved with the U substitution method if you can integrate

  • the result do so and replace U with its original X function and that's the answer to the original integration problem plus C let's do another problem let's find the integral of 4X e to the x^2 interesting the exponent has an

  • exponent well let's dig in there are several choices for you that include x 4x e to x^2 or just x^2 remember that we're going to end up dividing by our choices derivative that's really what you should be thinking about when

  • choosing you when I divide by its derivative will that help me get rid of x's choosing four or 4X won't help e to the x^2 that's a composite function that will need the chain R to differentiate not impossible we'll come back to it if we need to hm X2 looks promising its

  • derivative is 2x which will cancel nicely with the 4X so we'll start by trying U = x^2 step two is to differentiate U we get du = 2x DX we do this step so that we can isolate DX because we'll need it

  • in step three DX = du/ 2x as we'll see this is why we always end up dividing the integrant by the derivative of our choice for U step three is to rewrite the integral and remove X X we have the integral of

  • 4X e to the U since we substituted U for x^2 and we'll replace DX with du over 2x from step two well we still have some x's but due to our careful choice for you and our for knowledge that we would divide by its derivative 2x the X's

  • cancel out nicely 4X over 2x is 2 so we have the integral of 2 e to the U du well this is great we don't have any X's left and the U substitution method resulted in an integral that's much easier than the one we started with that's the point of U substitution make

  • a choice for you that results in a simpler integral in terms of U so we can pull the constant 2 out of the integral and get 2 * the integral of e to the U du step four is to integrate with respect to U the integral of e to the U

  • du is e to the U + C this is a definitive property of the exponential function so we have two e the U + C good work but we're not done step five is to replace U with our chosen X function

  • which was x^2 so we end up with 2 e to x^2 + C and that's our integral the answer to our original integration problem it's easy to check our work by taking the derivative of the integral which I'll do

  • at full speed using the chain rule since the derivative with respect to U of K e to the U is k e to the U that's the same definitive property of the exponential function but in reverse the derivative of 2 e to x^2 is 2 e to

  • x^2 and by the chain rule we need to multiply by the derivative of x^2 which is 2X and the derivative of the constant C is zero so we ends up with 4 x e to x^2 in review We integrated 4X e to the

  • x^2 using U substitution then to check our work we took the derivative of the integral and got back 4X e to x^2 that we started with so we have confidence that our integral was correct you can think of U substitution as applying the

  • chain rule for derivatives in reverse the last major topic we'll cover for integration is the technique called integration by parts again the big idea is that we're going to replace an integral that's hard to integrate with

  • one that's easier to integrate you can think of integ ation by Parts is applying the product rule for derivatives in Reverse as a reminder here's the product rule for derivatives by calculus convention the function names u and v are almost

  • universally used to illustrate integration by parts I'm not exactly sure why but I'll adopt the convention so we're exposed to the norm and it's familiar when you see it elsewhere I'm also using a common shorthand where the letters u and v represent functions of X U of x and V

  • ofx and as you might expect U Prime and V Prime represent their derivatives with respect to X it's just a concise way to write equations involving functions without having to write a bunch of parenthesis x's and DXs much simpler the

  • short hand works great as long as it's clear that the equations are about functions and not about variables so the derivative of the product of the two functions u and v is u v prime plus v u prime or as as you might remember the 1 * the derivative of

  • the second plus the second * the derivative of the first we're going to manipulate this equation a bit to illustrate the equation behind the integration by parts technique first let's take the anti-derivative of both sides with respect to X this gives us functions U * V on the

  • left side because taking the anti-derivative undoes the derivative operation we have UV Prime and we'll take its integral with respect to X and the same with Vu Prime so we've taken the integral of both sides of the product rule and everything is

  • balanced let's look at this expression V Prime * DX V Prime remember is DV by DX and DV by DX * DX is just DV and on the other side U Prime is Du by DX DX

  • cancels again and we end up with du so by integrating the product rule equation we can get get for the functions u and v u * V equals the integral of U DV plus the integral of vdu it's usually written to isolate the

  • integral of udv so this is the integration by parts formula and we end up with a product of two functions U * V minus a different integral and ideally the integrand we end up with VD will be

  • easier to integrate than the one we started with udv that's what we're striving for let me show you a popular example that's often used when illustrating the integration by parts technique let's find the integral of x e to the X DX U

  • substitution won't help because our only choice for you is X and that would give us the integral of u e to the U du which is the same integral so we'll try integration by parts the first step is to choose functions for U and DV in this example

  • our integrand is a product of two functions s x and e to the X so we need to choose one to be U and the other will be DV there's the neonic to help make the choice leate l i a t the five letters

  • represent five function types in a special order logarithms inverse trig functions which I'm afraid I don't address in this video it's already so long and I just couldn't cover everything after inverse trig functions comes algebraic functions which you can

  • think think of as pols in fact there's a version of the pneumonic called lipti where the P stands for polom same thing finally trig functions and exponentials essentially the list shows the most difficult function types to integrate at the top and the easiest to

  • integrate at the bottom this is useful because when you look at the integration by parts equation the function we choose for DV will need to be integrated so that we have an expression for V this is because the right hand hand side of the integration by parts equation includes V

  • in fact it's there twice and the function we choose for U will need to be differentiated because we'll need du here so the leat neonic suggests which choices for U and DV you might try first whichever function is

  • lowest on the list is a strong choice for DV since it's easiest to integrate and the object of the integration by parts method is to get an easier integral than the one we started with so let's get back to our problem we're on step one choose U and DV we'll use

  • leat and choose the DV that's easiest to integrate our integrant is x e to X we have a polom x and an exponential e to the X the exponential is the lowest on the list so we'll let DV equal e to X

  • whichever function we choose for DV also gets the differential DX so DV is e to X DX and that leaves u = x the next step is to find du and V because they're referenced in the right hand side of the

  • integration by parts formula I think of a 2X two Grid or checklist that has the two functions from the original integral that we chose as U and DV so now we need du and V we'll find du by differentiating U and we'll find V by

  • integrating DV that should be easy using leat we intentionally chose DV to be easy to integrate Since U equal x du must be DX and DV is e to X DX so V is

  • its integral well yes we certainly chose an easy integral the integral of e to the x is e to the X and that's V we'll include the constant of integration plus C at the end of the problem we won't keep track of it here the last step is

  • to plug everything into the integration by parts formula U is X V is e to x minus the integral of V again it's

  • still e to the X and du is DX so we've used the integration by parts technique to end up with an expression for our original integral that's easier to evaluate that's the objective of integration by parts to

  • turn a harder problem into an easier problem since the integral of e to X DX is just e to x + C the solution to our original integral is x e to x minus E to x + C which we found using integration

  • by parts I'll solve another problem where the integral we come up with the integral of vdu will in turn require another iteration of integration by parts to solve and the integral from that expression May in turn require

  • another iteration the pattern can continue but I don't want to get too far ahead the point is when integration by parts works for integral each successive integral gets simpler and simpler until we get one we can solve you'll see what I mean in the next example I'll try to

  • line things up so you can see what's going on then I'll show an easy tabular way to apply integration by parts to solving integral problems we'll integrate x^2 cine 2x DX step one choose U and DV both functions

  • are easy to integrate but in the leat guide trig functions are below polom so we'll let U equal x^2 and DV = cosine 2X DX next Find Du and V du is the derivative of x^2 so 2x DX V is the

  • integral of DV we need to use U substitution to integrate cine 2x DX but we'll do it in our heads the integral of the cosine of some inner term is s of that inner term and when we use use substitution we need to divide by the

  • derivative of that inner term so V = 12 sin 2x now let's transcribe the right half of the integration by parts

  • equation it starts with U * V the way we've set set up our di tables it'll come in handy later u and v are on this diagonal we multiply and rearrange a little to get 1/2 x^2 sin 2x then according to the integration by parts

  • formula we subtract the integral of VD V and du are here on this horizontal line in our di table for reasons that will become apparent in a moment I'm not going to cancel the 1/2 and two just yet or pull them out of the integral you can

  • do this if you like and solve the problem just fine but I want to show you an interesting and important pattern so the integral we subtract is 1 12 * 2 * X sin 2x DX which is V * du here for the sake of bringing attention

  • to the pattern later let me point out that when we arrange our choices for U and DV on one line then du and V on the next like this that the integration by parts rule says that the integral of this product you B is the integral of

  • the product of these adjacent terms in the table I'm using some new colors to show how the integration by parts equation corresponds to the DI table on the right side of the equation UV is the product of this diagonal and the integral vdu is a product of these

  • adjacent terms on the same horizontal line okay as I hinted earlier we'll need to apply the integration by parts method again to this integral but let's take a second to point out that the first term 12x^2 sin 2x is part of the solution to

  • our original problem so let's not lose track of it we'll treat the integral as a new simpler problem so we need to choose U and DV again for this new integral well we still have a trig Factor sin 2X and a polom factor x although the polom factor

  • got simpler from x^2 to X so we're making progress please let's notice that on the pink box we have the exact factors that contributed to this integral VD so if you'll bear with me I'm going to use those exact terms for U and DV U

  • = 2X and DV = 12 sin 2x DX I did move the DX over to DV since we'll be integrating it now we determine du and V du is 2 DX

  • and DV is the integral of 12 sin 2x this require use substitution we'll do it in our heads again the integral of sin 2x is cosine 2X and we need to divide by the derivative of 2x which is 2 so we

  • have 12 * cosine 2X / 2 which is /4 cosine 2X now we have all four values for the second integration by parts equation so we plug them in U * V is this diagonal

  • and simplifies to 12x cosine 2X minus the integral of vdu which is this horizontal product that simplifies to - 12 cosine 2X DX these two negatives cancel and now we

  • have an even simpler integral but before we turn our attention to it let's note that we have another part of our solution here the UV part negative 12x cine 2x so we don't want to lose track of it either the last integral is easy enough

  • to do with you substitution first let's pull the constant out of the integral the integral of cosine 2X is sin 2X and we need to divide by the derivative of 2x so altoe we get 1/4 sin 2X and that's the last part of the

  • solution so we have our original problem the integral of x^2 cine 2x DX we applied the integration by parts method twice and came up with three distinct terms that will make up our solution but we need to be very careful with our positive negative signs because of this

  • subtraction in the integration by parts formula let's step through slowly and deliberately then I'll show you a tabular method that will keep track for us we began solving the problem with the integration by parts method and got this expression the positive UV term that we

  • noted was part of our solution minus a new simpler integral so 12 x^2 sin 2X next we subtracted this new simpler integral and when we used the integration by parts technique it also had a UV

  • term 12x cosine 2X since we're subtracting a negative the result for our solution expression is positive 12x cosine 2X and finally we have this last integral and that evaluated to a positive expression but remember we're

  • subtracting this entire integral so the next to last term in our solution integral is NE 1/4 sin 2x as with all indefinite integrals the very last term is plus C don't forget and so we've solved a moderately

  • complex integral using integration by parts twice now I'm going to show you the DI method for integration by parts which is especially helpful for problems that require multiple iterations of the integration by parts technique it's the same math as setting up repeated

  • integration by parts equations it's just organized into a table for us I kind of hinted at it with the color coding earlier but now I'll show the full method we start again by identifying U and DV but we write them under columns labeled D and i d stands for

  • differentiate and we'll put the value for U underneath the I stands for integrate and we'll put the value for DV underneath you can still use the lat guidelines to help you choose your candidates for U and DV next write a a plus sign to the left

  • of this row and in the next row we haven't filled it in yet put a negative sign these will help us keep track of the switching signs due to that pesky subtraction in the integration by parts formula now as you might expect we differentiate the D column the

  • derivative of x^2 is 2X and we'll integrate the I column 12 sin 2x now we saw this earlier but let me emphasize that the integration by parts formula can be read from the grid this integral of U DV equals this product U *

  • V minus this integral VD horizontal products represent integrand udv on top dvu directly beneath the diagonal product is not an integral it's just U * V it's a tabular

  • representation of the integration by parts formula since the bottom line of our table is an integral we can repeat the steps we differentiate the D column and get 2 we integrate the I column and get 1/4 cosine 2X the positive negative sign

  • for this integral switches back to positive since we're now two layers deep subtracting integrals the signs in the left column will alternate between plus and minus for however many times we iterate let's go one more time the derivative of two is 0 and the integral

  • of - 1/4 cosine 2X is -8 sin 2X X and this line gets a negative sign we can now read the answer to the original Green integral directly from the DI table the integral of x^2 cine 2x is

  • equal to this diagonal product 12 x^2 sin 2x minus this diagonal product the sign is negative because we subtract the integral in the integration of by Parts equation but one of the factors is negative so when we subtract a negative

  • the result is positive and we get Plus 12x cosine 2X then we add this diagonal product we add because we're now two layers deep into the integration by parts formula and the latest subtraction is already inside the one above it there's a factor

  • with a negative sign though so we end up subtracting 1/4 sin 2x we don't need to go any further the next product would be zero because of this zero and with plus C we're done we get the same answer as when we did integration by parts step

  • step by step please don't think this is a new different or magical way to solve integration by parts problems all the numbers are the same all the steps are the same it's just that some smart person noticed that when we put the steps in a table the results are easy to

  • read I mentioned at the beginning of the video that becoming proficient at calculus requires practice I intended for this video to provide a visually engaging graphical overview of calculus and its fundamental principles and rules and I hope it was interesting and

  • enlightening to you but if you're a calculus student or going to become one you need more in the description I've linked to several videos by Steve Chow whose main YouTube channel is called black pen red pen he's the go-to source for worked out calculus problems and in

  • particular he has long form videos where he works out 100 derivatives and two others where he works out 100 integrals each they're great videos and have millions of views you'll do yourself a favor by checking out his channels thank you very much for

  • watching we've covered a lot of material it's almost everything you'd cover in a firste calculus course I hope you found this video and its style to be helpful and informative I'm Dennis Davis take care and good luck with your studies

Get Transcripts for Any YouTube Video

YouTLDR instantly transcribes and summarizes YouTube videos in 100+ languages.

Try YouTLDR Free