3.1 Tangents and The Derivative at A Point: X F y X F X P
3.1 Tangents and The Derivative at A Point: X F y X F X P
3.1 Tangents and The Derivative at A Point: X F y X F X P
limit exists, we call it the slope of the curve at P and define the tangent at P
to be the line through P having this slope.
Definition
The slope of the curve y = f (x ) at the point P(x0 , f (x0 )) is the number
f (x0 + h ) − f (x0 )
m = lim (provided the limit exists)
h →0 h
The tangent line to the curve at P is the line through P with this slope.
Example 1 :
Find the slope of the curve y = 1 / x at any point x = a ≠ 0 .
1- what is the slope at the point x = −1 ?
2- Where dose the slope equal − 1 / 4 ?
Solution
1- here f (x ) = 1 / x . The slope at (a, 1/a) is
1 1
−
f (a + h ) − f (a ) 1 a − (a + h )
lim = lim a + h a = lim
h →0 h h → 0 h h → 0 h a(a + h )
−h −1 1
= lim = lim =− 2
h →0 ha (a + h ) h →0 a (a + h ) a
−1
When x = −1 , the slope is = −1
(− 1)2
1 1 1
2- the slope of y = 1 / x at the point where − 2
is − 2 .it will be −
a a 4
provided that
ﻣﺪرس اﻟﻤﺎدة 1
1 1
− 2
=−
a 4
This equation is equivalent to a 2 = 4 , so a = 2 or a = −2 . the curve has slope
Definition
The derivative of a function f at a point x0 , denoted f ′(x0 ) , is
f (x0 + h ) − f (x0 )
f ′( x0 ) = lim
h →0 h
Provided this limit exists.
f ′( x ) = y ′ = f (x )
dy df d
= =
dx dx dx
ﻣﺪرس اﻟﻤﺎدة 2
Example 2 :
Differentiate f (x ) =
x
x −1
Solution
f (x + h ) − f (x )
We use the definition of the derivative f ′( x ) = lim
h →0 h
f (x ) =
x
and f (x + h ) =
(x + h ) , so
x −1 (x + h ) − 1
f (x + h ) − f (x )
f ′( x ) = lim
h →0 h
(x + h ) − x
= lim
(x + h − 1) x − 1
h →0 h
1 ( x + h )( x − 1) − x( x + h − 1) a c ad − cb
= lim ⋅ − =
h →0 h (x + h − 1)(x − 1) b d bd
1 −h
= lim ⋅
h →0 h ( x + h − 1)( x − 1)
−1 −1
= lim =
h →0 ( x + h − 1)( x − 1) (x − 1)2
Example 3 :
a- find the derivative of f (x ) = x for x > 0 .
b- find the tangent line to the curve y = x at x = 4 .
Solution
a- we use the alternative formula to calculate f ′ :
f (z ) − f (x )
f ′( x ) = lim
z→x z−x
z− x
= lim
z→x z−x
= lim
( z− x )
z→x ( )(
z− x ⋅ z+ x )
1 1
= lim =
z→x ( z+ x ) 2 x
ﻣﺪرس اﻟﻤﺎدة 3
f ′(4 ) =
1 1
=
2 4 4
The tangent is the line through the point (4,2 ) with slope (1 / 4 )
y = 2+
1
(x − 4)
4
1
y= x +1
4
Example 4 :
Show that the function y = x is differentiable on (− ∞,0) and (0, ∞ ) but has no
derivative at x = 0 .
Solution
The derivative of function y = x to the right of the origin (positive x )
d
( x ) = d (x ) = d (1 ⋅ x ) = 1
dx dx dx
And to the left of the origin (negative x )
d
( x ) = d (− x ) = d (− 1 ⋅ x ) = −1
dx dx dx
There is no derivative at the origin because the one-sided derivatives differ
there:
0+h − 0 h
= lim+ = lim+
h →0 h h →0 h
h
Right-hand derivative of x at zero = lim +
h →0 h
= lim+ (1) = 1
h →0
0+h − 0 h
= lim− = lim−
h →0 h h →0 h
−h
left-hand derivative of x at zero = lim −
h →0 h
= lim− (− 1) = −1
h →0
ﻣﺪرس اﻟﻤﺎدة 4
= lim
(
(z − x ) ⋅ z n−1 + z n−2 x + ........ + zx n−2 + x n−1 )
z→x (z − x )
= n ⋅ x n −1
The power rule is actually valid for all real numbers n (positive or negative).
For ex.
d 1 d −1
=
dx x dx
( )
x = − x −2
d
dx
( x ) = dxd (x ) = 12 x
1/ 2 −1 / 2
ﻣﺪرس اﻟﻤﺎدة 5
Example 5 :
Differentiate the following powers of x .
1
(a) x 3 (b) x 2 / 3 (c) x 2
(d) (e) x −4 / 3 (f) x 2 +π
x4
Solution
(a)
d 3
dx
( )
x = 3 ⋅ x 3−1 = 3 x 2 (b)
d 2/3
dx
x ( )
= (2 / 3) ⋅ x (2 / 3 )−1 = (2 / 3) ⋅ x −1 / 3
(c)
d
dx
x ( )=2
2⋅x 2 −1
(d)
d 1 d −4
4=
dx x dx
( )
x
4
x = −4 ⋅ x − 4−1 = −4 ⋅ x −5 = − 5 ( )
(e) (
d −4 / 3
dx
x )
= −(4 / 3) ⋅ x −(4 / 3 )−1 = −(4 / 3) ⋅ x −(7 / 3 )
(f)
d
dx
( x ) = dxd (x
2 +π 1+ (π / 2 )
) = 1 + π2 ⋅ (x
1+ (π / 2 )−1
) = 12 ⋅ (2 + π ) ⋅ (x ( ) ) = 12 ⋅ (2 + π ) ⋅ (
π /2
xπ )
Proof
cu ( x + h ) − cu ( x )
d
(cu ) = lim
→
dx h 0 h
u (x + h ) − u (x )
= c ⋅ lim
h →0 h
du
= c⋅
dx
ﻣﺪرس اﻟﻤﺎدة 6
Example 6 :
(a) the derivative formula 3x 2 is
d
dx
( )
3 x 2 = (3 ⋅ 2 ) ⋅ x = 6 x
Example 7 :
Find the derivative of the polynomial y = x 3 + (4 / 3)x 2 − 5 x + 1
ﻣﺪرس اﻟﻤﺎدة 7
Solution
dy d 3
=
dx dx
( )
x + ((4 / 3)x ) − (5 x ) + (1)
d
dx
d
dx
d
dx
= 3 x 2 + (4 / 3) ⋅ (2 x ) − 5 + 0 = 3 x 2 + (8 / 3) ⋅ x − 5
dy
dx
Example 8 :
Find the derivative of y = (x 2 + 1) ⋅ (x 3 + 3)
Solution
From the product Rule with u = (x 2 + 1) and v = (x 3 + 3), we find
d 2
dx
( )( ) (
x + 1 ⋅ x3 + 3 = x2 + 1
d 3
dx
) ( ) ( ) (
x + 3 + x3 + 3
d 2
dx
x +1 )
( )( ) ( )
= x 2 + 1 ⋅ 3 x 2 + x 3 + 3 ⋅ (2 x )
= 3x 4 + 3x 2 + 2 x 4 + 6 x
= 5 x 4 + 3x 2 + 6 x
Example 9 :
ﻣﺪرس اﻟﻤﺎدة 8
Solution
dy
(t 3
+1 ) dxd (t 2
) (
−1 − t 2 −1 ) dxd (t 3
+1 )
=
dx (t + 1) 3 2
=
(t + 1)⋅ (2t ) − (t − 1)⋅ (3t )
3 2 2
(t + 1) 3 2
=
(2t + 2t − 3t + 3t )
4 4 2
(t + 1) 3 2
=
(− t + 3t + 2t )
4 2
(t + 1) 3 2
Example 10 :
Find the first four derivatives of y = x 3 − 3x 2 + 2 are
first derivative: y ′ = 3x 2 − 6 x
second derivative: y ′′ = 6 x − 6
third derivative: y ′′′ = 6
fourth derivative: y (4 ) = 0
ﻣﺪرس اﻟﻤﺎدة 9
sin ( x ) = cos( x )
d
dx
Example 11 :
Find the derivatives of the sine function involving differences, products, and
sin ( x )
quotients: (a) y = x 2 − sin (x ) (b) y = x 2 ⋅ sin (x ) (c) y =
x
Solution
ﻣﺪرس اﻟﻤﺎدة 10
cos( x ) = − sin ( x )
d
dx
Example 12 :
Find the derivatives of the cosine function in combinations with other
cos( x )
functions: (a) y = 5 x + cos(x ) (b) y = sin (x ) ⋅ cos(x ) (c) y =
1 − sin ( x )
Solution
ﻣﺪرس اﻟﻤﺎدة 11
dy
(1 − sin (x )) ⋅ d
cos( x ) − cos( x ) ⋅ (1 − sin ( x ))
d
= dx dx
dx (1 − sin (x )) 2
=
(1 − sin (x )) ⋅ (− sin (x )) − cos(x ) ⋅ (0 − cos(x ))
cos( x ) (1 − sin (x ))2
(c) y = :
1 − sin ( x )
=
(− sin (x ) + sin 2 (x )) + cos 2 (x )
(1 − sin (x ))2
=
(1 − sin (x )) = 1
[cos 2
(x ) + sin 2 (x ) = 1]
(1 − sin (x )) (1 − sin (x ))
2
tan ( x )
d
Example 13 : Find
dx
Solution
cos( x ) ⋅ sin ( x ) − sin ( x ) ⋅ cos( x )
d d
d sin ( x )
tan ( x ) =
d dx dx
=
dx dx cos( x ) cos ( x )
2
cos( x ) ⋅ cos( x ) − sin (x ) ⋅ (− sin (x ))
=
cos 2
( x )
cos 2 ( x ) + sin 2 ( x )
= sec 2 ( x )
1
= =
cos ( x )
2
cos 2 ( x )
ﻣﺪرس اﻟﻤﺎدة 12
Solution
y ′ = sec( x ) ⋅ tan ( x )
y ′′ =
d
(sec(x ) ⋅ tan (x ))
dx
= sec( x ) ⋅ tan ( x ) + tan ( x ) ⋅ sec( x )
d d
dx dx
= sec( x ) ⋅ sec ( x ) + tan ( x ) ⋅ (sec( x ) tan ( x ))
2
( f g )′ (x ) = f ′(g (x )) ⋅ g ′(x )
In Leibniz's notation, if y = f (u ) and u = g (x ) , then
dy dy du
= ⋅
dx du dx
is evaluated at u = g (x ) .
dy
Where
du
Solution
The function here is composite of y = f (u ) = u 2 and u = g (x ) = 3x 2 + 1 ,
= f ′(u ) = 2u and = g ′( x ) = 6 x
dy du
therefore,
du dx
dy dy du
= ⋅
dx du dx
= 2u ⋅ 6 x = 2 ⋅ 3 x 2 + 1 ⋅ 6 x( ) = 36 x 2 + 12 x
ﻣﺪرس اﻟﻤﺎدة 13
Example 16 : An object moves along the x-axis so that its position at any
time t ≥ 0 is given by x(t ) = cos(t 2 + 1) . Find the velocity of the object as a
2
function of t .
Solution
dx
We know that the velocity is . In this instance, x is a composite function:
dt
x = cos(u ) and u = t 2 + 1 , we have
= − sin (u ) and
dx du
= 2t
du dt
g ′(t ) =
d
[tan (5 − sin (2t ))]
dt
= sec 2 (5 − sin (2t )) ⋅ (5 − sin (2t ))
d
dt
= sec 2 (5 − sin (2t )) ⋅ 0 − cos(2t ) ⋅ (2t )
d
dt
= sec 2 (5 − sin (2t )) ⋅ (− cos(2t )) ⋅ (2 )
= (− 2 cos(2t )) ⋅ sec 2 (5 − sin (2t ))
ﻣﺪرس اﻟﻤﺎدة 14
dy dy du
= ⋅
dx du dx
Leads to the formula
f (u ) = f ′(u )
d du
dx dx
If n is any real number and f is a power function, f (u ) = u n , the power rule
tells us that f ′(u ) = nu n −1 . if u is a differentiable function of x , then we can
use the chain rule to extend this to the Power Chain Rule.
d n
dx
( )
u = n ⋅ u n −1
du
dx
Example 19 : Find the derivative of a power of an expressions follows:
(a)
d
dx
(
5x 3 − x 4 ) 7
(b)
d 1
dx 3 x − 2
(c)
d
dx
( )
sin 5 ( x )
Solution
d
dx
(
5x 3 − x 4 )7
(
= 7 ⋅ 5x 3 − x 4 ) ⋅ dxd (5x − x )
6 3 4
(a) = 7 ⋅ (5 x 3
− x ) ⋅ (5 ⋅ 3 x − 4 x )
4 6 2 3
= 7 ⋅ (5 x 3
− x ) ⋅ (15 x − 4 x )
4 6 2 3
d 1 d
= (3x − 2)−1
dx 3 x − 2 dx
= −1 ⋅ (3 x − 2 ) ⋅ (3x − 2)
d
−2
(b) dx
= −1 ⋅ (3 x − 2 ) ⋅ (3)
−2
3
=−
(3x − 2)2
ﻣﺪرس اﻟﻤﺎدة 15
(c)
d
dx
( )
sin 5 ( x ) = 5 ⋅ sin 4 ( x ) ⋅ sin ( x )
d
dx
= 5 ⋅ sin ( x ) ⋅ cos( x )
4
Example 20 : show that the slope of every line tangent to the curve
1
y = is positive.
3
(1 − 2 x )
Solution
we find the derivative:
dy d
=
dx dx
(
(1 − 2 x )−3 )
(
= − 3 ⋅ (1 − 2 x ) )⋅ dxd (1 − 2 x )
−4
= (− 3 ⋅ (1 − 2 x ) )⋅ (− 2 )
−4
6
=
(1 − 2 x )4
At any point (x, y ) on the curve, x ≠ 1 / 2 and the slope of the tangent line is
dy 6
=
dx (1 − 2 x )4
dy dy
2. collect the terms with on one side of the equation and solve for
dx dx
dy
Example 21 : find if y 2 = x .
dx
Solution
The equation y 2 = x defines two differentiable functions of x that we can
actually find, namely y1 = x and y 2 = − x , then
dy1 1
=
dx 2 x
dy 2 1
=−
dx 2 x
dy
By other way to find , we simply differentiable both sides of the equation
dx
y 2 = x with respect to x , treating y = f ( x ) as a differentiable function of x :
This one formula gives the derivative we calculated for both explicit
solutions y1 = x and y 2 = − x :
dy1 1 1
= =
dx 2 y1 2 x
dy 2 1 1 1
= = =−
dx 2 y 2 2 − x (2 x )
ﻣﺪرس اﻟﻤﺎدة 17
dy 2 − 2x −6 −6 6 3
=− =− =− = =
dx x =3 2 25 − x 2 x =3
2 25 − 9 2 16 8 4
We can solve this problem more easily by differentiable the given equation
of the circle implicitly with respect to x :
d 2
dx
( )
x +
d 2
dx
y =
d
dx
( )
(25)
dy
2x + 2 y =0
dx
dy x
=−
dx y
x 3 3
The slope at (3,-4) is − =− =
y (3, −4 ) −4 4
if y 2 = x 2 + sin (xy ) .
dy
Example 23 : find
dx
Solution
We differentiate the equation implicitly
y 2 = x 2 + sin ( xy )
d 2
dx
( )
y =
d 2
dx
d
( )
x + (sin ( xy ))
dx
= 2 x + (cos( xy )) ⋅ ( xy )
d d
2y
dx dx
dy
= 2 x + (cos( xy )) ⋅ y + x
d
2y
dx dx
ﻣﺪرس اﻟﻤﺎدة 18
dy
− (cos( xy )) ⋅ x = 2 x + y cos(xy )
dy
2y
dx dx
x2
We substitute y ′ = to express y ′′ in terms of x and y.
y
2x x 2 x 2 2x x 4
y ′′ = − ⋅ = − when y≠0
y y2 y y y3
ﻣﺪرس اﻟﻤﺎدة 19
Solution
The point (2, 4) lies on the curve because its coordinates satisfy the equation
given for the curve : 2 3 + 4 3 − 9 ⋅ (2) ⋅ (4) = 8 + 64 − 72 = 0 .
To find the slope of the curve at (2, 4), we first use implicit differentiation to
dy
find a formula for :
dx
x 3 + y 3 − 9 xy = 0
d 3
dx
( )
x +
d
dx
y3 −( )d
dx
(9 xy ) = d (0)
dx
dy dy dx
3x 2 + 3 y 2 − 9 x +y =0
dx dx dx
(3 y 2 − 9x
dy
dx
)
+ 3x 2 − 9 y = 0
(
3 y 2 − 3x
dy
dx
) (
= 3 3y − x2 )
dy
= 2
(
3y − x2 )
dx (
y − 3x )
We then evaluate the derivative at (x, y)= (2, 4):
dy
=
(3 y − x )
2
=
(3 ⋅ (4) − 2 ) = (12 − 4) = 8 = 4
2
dx (2, 4 ) (y − 3x ) (
2
2, 4 )
(4 − 3 ⋅ (2)) (16 − 6) 10 5
2
The tangent at (2, 4) is the line through (2, 4) with slope (4/5) :
y − y0 4
=
x − x0 5
( y − 4) = 4 4
⇒ ( y − 4) = ⋅ (x − 2)
(x − 2) 5 5
4
y = 4 + ⋅ (x − 2)
4 12
⇒ y = x+
5 5 5
ﻣﺪرس اﻟﻤﺎدة 20