

Complex Derivatives
The Product RuleIf a function is of the form f(x) = u(x)*v(x) then you cannot take a straight derivative. An example is y = (x^{2})*(e^{x}). We only know how to take the derivative of u(x), and the derivative of v(x), but the combined function is a new entity, and uses a formula based on the derivatives of u and v. The way to do this is with the Product Rule. This is: f = uv Consider your equation as two equations multiplied by each other. Call one u and the other v, and uv = y, making (uv)' = y'. You then plug into the four parts of the equation above their respective items, and solve algebraically for y'. Watch: y = x^{2}e^{x} I first determine what u and v are, and then what u' and v' are. The next step is to simply plug these four units into the equation above, which you will have to memorize. It's not that hard, really. u
= x^{2} v = e^{x} u' =
2x v' = e^{x} y = 3x^{4}ln 7 y’ = 12x^{3}ln 7 + 3x^{4 }* 0 = 12 * x^{3} * ln 7 The derivative of ln 7 is 0, because ln 7 is just a number. (1.946) So the second half is 0, and can be ignored. The other way of doing it is by grouping ln 7 with the 3 in front, because they are all numbers, and they can act as a coefficient. I will transform it in the next equation. y = (3 ln 7)x^{4} y' = (3 ln 7)4x^{3} = 12 * ln 7 * x^{3} y = 2xx^{2} u = 2x, v = x^{2}, y' = (2)(x^{2}) + (2x)(2x) = 2x^{2} + 4x^{2} = 6x^{2} A simpler way of doing that last one would be to shorten the original equation to 2x^{3} and then the derivative is a simple 6x^{2}. y = 3^{x}x^{5} u = 3^{x}, v = x^{5}, y' = (3^{x}ln 3)(x^{5}) + (3^{x})(5x^{4}) = 3^{x}x^{4}(xln 3 + 5) y = x^{2}ln x u = x^{2}, v = ln x, y' = (2xln x) + (x^{2} * 1/x) = x(2 ln x + 1)
The Quotient RuleThe quotient rule is very similar to the product rule in its purpose and implementation. It deals with a function that is too complex to take a simple derivative, only this time the function is of the form f(x) = u(x)/v(x). An example is y = (x^{2})/(e^{x}). The only way to take it is by the Quotient Rule. This is: (u/v)’ = (u’v – uv’)/(v^{2}) Be careful not to mix up the u and the v here. They are two different things – the u is the numerator and the v is the denominator, of the original equation. y = x^{2}/e^{x} y’ = (2xe^{x} – x^{2}e^{x})/e^{2x} Firstly, you remember that the derivative of e^{x} is e^{x}. Secondly, as explained in the Intro page, when a function is set to a power, that exponent should be multiplied with its current exp, so (e^{x})^{2} = e^{x*2} = e^{2x} Another way of figuring that out is by realizing what (e^{x})^{2} is. It’s e^{x} * e^{x} and when multiplying the same number to exponents, just add the exponents. x + x = 2x. Third – this equation can be factored out. It’s a bit difficult to see written the way it is, but you can pull an e^{x} out of every term, and cancel the top and bottom, getting x(2 – x)/e^{x}. y = (ln x)/x u = ln x, v = x, y' = [(1/x)(x)  (ln x)(1)]/x^{2} = (1  ln x)/x^{2}
The Chain RuleThis is a bit more complicated than the previous two rules. You have to realize what is on the inside and what is on the outside. The method for solving every chain rule problem will be by locating the outside and inside function. The only way to teach this is by representing functions with u's and v's, so you must make an effort to know what I mean by each letter. I will structure all problems as such: v = outside function u = inside function y' = v'u' (the derivative equals the product of the derivatives of the two functions) There are the four general types of outer functions found in chain rules. These are the outside (overall) functions. The u in each represents an inside function, whatever it is. v = u^{2} v = e^{u} v = ln u v = sin u y = (2x)^{2} One way to solve this would be to make it 4x^{2}, using algebra, and the derivative is obviously 8x. But I’m going to make it complicated. I want to take the derivative using the Chain Rule. The Chain Rule says that in order to take the derivative you must multiply the derivative of the outside function by the derivative of the inside function. Step 1 – Find the inside function. Notice the four function types I showed. One is v = u^{2} In this case, the inside function is u = 2x. Remember to set the inside to u. Step 2 – Find the outside function. If u is 2x, then the right side goes from (2x)^{2} to u^{2} . The outside function is now v = u^{2}. Remember to set the outside to v. Step 3 – Multiply the derivative of the outside by the derivative of the inside. v’ = 2u and u’ = 2 so 2*2u = 4u. Step 4 – Replace u with its original value (the inside function). Here that was 2x, so the answer is 4(2x) = 8x The idea of a chain rule is always to strip down the function into a useable one. Here are other places you may find replacing the inside function useful. Try to put any of these through the four steps I just outlined. y = e^{3x + 2} = e^{u} (and u = 3x + 2) y’ = e^{u}(3) = 3e^{3x + 2} y = ln (x^{3} – e^{x}) = ln u (and u = x^{3} – e^{x}) y’ = (1/u)(3x^{2} – e^{x}) = (3x^{2} – e^{x})/(x^{3} – e^{x}) y = sin (3x) = sin u (and u = 3x) y’ = (cos u)(3) = 3cos 3x I haven’t explained much about trig functions yet, but I will get to it in the next topic. ln [(7x + 2)^{3}] This one requires a chain rule inside a chain rule. [1/(7x + 2)^{3}] * 3(7x + 2)^{2} * 7 = 21/(7x + 2) Nasty Cross BreedsThese are usually a pain. Some equations use two, or even three, rules together. With experience, though, they become natural. I’ll give a few, but I’m really not in the mood of making complex equations, and I think I put some in the problem sets anyway. It’s too stuffy in here. y = e^{xlnx} = e^{u} (and u = xlnx) This seems like the others at first, but realize that you have to take the derivative of the outside, and the derivative of the inside. The derivative of the outside’s easy: e^{u}. However, to find the derivative of the inside you must use the product rule. It becomes 1(ln x) + x (1/x) = ln x + x/x = ln x + 1. So the final answer is (ln x + 1)(e^{xlnx}) because I replaced the u back with a (xln x). y = (e^{x}3x + 2)^{4} = u^{4} (and u = e^{x}3x + 2) y' = 4u^{3}(3e^{x} + e^{x}3x) = 4(e^{x}3x + 2)^{3}(3e^{x} + e^{x}3x) That one was a bit complicated. The inside function was clear, but to find the derivative, once again, you needed to use the product rule. y = sin^{3} 4x = (sin 4x)^{3} = u^{3} u = sin w, w = 4x, y' = 3u^{2} * cos w * 4 = 12(sin^{2} 4x)(cos 4x) This equation used a chain rule inside a chain rule. The outside function was u^{3}, the inside was sin 4x. We know how to do the derivative of the outside function, but to do the inside we need yet another chain rule, which I marked w. Then I multiplied all 3, but an easier way may be to first figure out the derivative of sin 4x individually using its own chain, and then plugging that in to the regular function when you have to put in the derivative of the outside times the derivative of the inside. Another way to solve a chain inside a chain, one which I prefer by far, is just to multiply the derivative of all three links. Or four, if the innermost function has a chain inside it. For the problem ln (x^{2} + 4x)^{5} you see three functions: ln u, w^{5}, and x^{2} + 4x. Multiply the derivatives of these three functions, and replace back the u and w, and the answer is y' = (2x + 4)5(x^{2} + 4x)^{4}/(x^{2} + 4x)^{5} = (10x + 20)/(x^{2} + 4x).
Tangent LinesA tangent Line means the line that will brush against the curve at the point you designate. The formula for this is extraordinarily simple, yet some people just can't figure it out. By the way, I'm really sorry about the drawing, I'm not exactly a pro at that.
I will now explain each piece of this formula and how to get it. y remains as y. This y is the y that remains as the y in the equation in the tangent line. Similarly, the x remains as an x. The y_{1} and the x_{1} are replaced with their respective coordinates from the point you are trying to get the tangent line for. For the coordinate (3, 4) the x_{1} is replaced with 3 and the y_{1} is replaced with 4. The last part of the formula, the slope, is found using derivatives. What you must do is take the derivative of the equation, and plug in the point of x from your coordinate. In (3, 4) you will take the derivative and plug 3 into x, and solve. The answer will be the slope. Plug it in, and isolate y. You're done. Let me illustrate.What is the tangent line to the equation y = x^{2} + 2 at the point x = 2? Step 1  Find the full coordinate and plug it in. to the formula. y = x^{2} + 2 y = 4 + 2 y = 6 So the coordinate is (2, 6). I will now plug it in to (y – y_{1}) = slope * (x – x_{1}). (y  6) = slope * (x  2) Step 2  Find the derivative of the original function. y = x^{2} + 2 y' = 2x Step 3  Find the slope at your coordinate by plugging in x, and plug that slope into the tangent line equation. y' = 2x = 4 (y  6) = slope (x  2) becomes (y  6) = 4 (x  2) Step 4  Isolate y in the tangent equation. (y  6) = 4 (x  2) y  6 = 4x  8 y = 4x  2 And that is your final answer. Easy as pie. What is the tangent line of the equation y = 2x^{3}  x + 5 when x = 1? Coordinates: y = 2  1 + 5 = 6 Coordinates are (1, 6) Derivative: y' = 6x^{2}  1 When x = 1, 6x^{2}  1 = 6  1 = 5 Equation for tangent line: (y  6) = 5(x  1) y = 5x + 1 Find a tangent line(s) to the curve y= x^{2} that passes through the point (1,4). This is a problem which is rather difficult, and I believe that most teachers won't ask it. If you don't understand what I'm doing, ignore it. Given: y=x^{2} and y'=2x For any point (a,b) on the graph, the formula for tangent is then (yb) = 2a(xa). Because our curve is y=x^{2}, b is a^{2}, so that becomes We now have a tangent line for point (a, a^{2}). This works for every 'a' on the 4 = 2*a*1  a^{2} a^{2}  2a  4 = 0 You can see that this has two possible solutions of a. That means that there are two tangent lines to the curve (from two points, obviously) that pass through the point (1,4). Using quadratic formula, you get 1+/√5. It works. I tried 1+√5 by plugging this value for 'a' into the equation for our tangent line. It does create a line which is clearly both tangent to the graph at the point (1+√5, 6+2√5), and goes through (1,4), which you can see by plugging it all in. In case you're having trouble with the tedious work, the final tangent line equation I got was: y = (2 + 2√5)x  6  2√5 Plug x=1 into this equation, and y is 4.

