Cont and Diffi
Cont and Diffi
Solution to Example 1
For x = -1
f(-1) = 2(-1) 2 + b = 2 + b
The graph of f is shown below and it is clear that the function is continuous at x = -1.
Example 2
: Find a and b such that both g(x) given below and its first derivative are continuous?
Solution to Example 3
Continuity of function g
let
For continuity of g at x = 2, we need to have
L1 = L2 = g(2)
Which gives
4 a + b = -2
Continuity of the derivative g'
For x > 2, g '(x) = 2 a x is a polynomial function and therefore continuous.
For x < 2, g '(x) = -2 is a constant function and therefore continuous.
Let
Function g(x) is graphed below and it is clear that both the function and its derivative (slope) are
continuous at x = 2.
Derivative Rules
The Derivative tells us the slope of a function at any point.
For example:
Here are useful rules to help you work out the derivatives of many functions (with examples
below). Note: the little mark ’ means "Derivative of", and f and g are functions.
Examples
Example: what is the derivative of sin(x) ?
sin(x) = cos(x)
Or:
sin(x)’ = cos(x)
Power Rule
Example: What is x3 ?
xn = nxn−1
x3 = 3x3−1 = 3x2
xn = nxn−1
x−1 = −1x−1−1
= −x−2
= −1x2
Multiplication by constant
x3 = 3x3−1 = 3x2
So:
the derivative of f + g = f’ + g’
So we can work out each derivative separately and then add them.
x2 = 2x
x3 = 3x2
And so:
Difference Rule
the derivative of f − g = f’ − g’
So we can work out each derivative separately and then subtract them.
v3 = 3v2
v4 = 4v3
And so:
z2 = 2z
z3 = 3z2
z4 = 4z3
And so:
Product Rule
the derivative of fg = f g’ + f’ g
In our case:
f = cos
g = sin
cos(x) = −sin(x)
sin(x) = cos(x)
So:
= cos2(x) − sin2(x)
Quotient Rule
"Low High minus High Low, over the line and square the Low"
In our case:
f = cos
g=x
f' = −sin(x)
g' = 1
So:
the derivative of cos(x)x = Low dHigh minus High dLowover the line and square the Low
= x(−sin(x)) − cos(x)(1)x2
= −xsin(x) + cos(x)x2
Reciprocal Rule
So:
Chain Rule
f(g) = sin(g)
g(x) = x2
f'(g) = cos(g)
g'(x) = 2x
So:
= 2x cos(x2)
dy dx = dy du du dx
d dx sin(x2) = d du sin(u) d dx x2
Differentiate each:
d dx sin(x2) = 2x cos(x2)
Same result as before (thank goodness!)
f(g) = 1/g
g(x) = cos(x)
f'(g) = −1/(g2)
g'(x) = −sin(x)
So:
= sin(x)/cos2(x)
f(g) = g3
g(x) = 5x−2
So: