1.
Given the piecewise function below:
−𝑥 2 − 𝑥 + 4, − 2 ≤ 𝑥 < 0
f(x) = { 0, 𝑥 = 0
2
𝑥 − 𝑥, 0 < 𝑥 ≤ 2
Determine if 𝑓 𝑖𝑠 differentiable at 0. 𝑁𝑜 𝑔𝑟𝑎𝑝ℎ𝑠!
−
𝑓(ℎ) − 𝑓(0) ℎ2 − ℎ
𝑓′(0 ) = lim− = lim− = lim− ℎ − 1 = − 1
ℎ→0 ℎ ℎ→0 ℎ ℎ→0
+
𝑓(ℎ) − 𝑓(0) −ℎ2 − ℎ + 4 4
𝑓′(0 ) = lim+ = lim+ = lim+ −ℎ − 1 + = +∞
ℎ→0 ℎ ℎ→0 ℎ ℎ→0 ℎ
Therefore, since the left and right derivatives do not match at 0, the function 𝑓 is not
differentiable at 0.
2. Determine the values of a and b for witch the function below is differentiable at -1
𝑎𝑥 + 𝑏, 𝑥 ≤ −1
𝑓(𝑥) = { 3
𝑎𝑥 + 𝑥 + 2𝑏, 𝑥 > −1
First, we need to ensure that f(x) is continuous at x = -1. Since f(x) is defined piecewise,
we need to check the left and right limits:
lim 𝑎𝑥 + 𝑏 = −𝑎 + 𝑏
𝑥→−1−
lim 𝑎𝑥 3 + 𝑥 + 2𝑏 = − 𝑎 + 2𝑏 − 1
𝑥→−1+
For f(x) to be continuous at x = -1, the left and right limits must be equal. Therefore, we
have:
−𝑎 + 2𝑏 − 1 = −𝑎 + 𝑏, => 𝑏 = 1
Next, we need to find the value of a such that f(x) has a unique tangent line at x = -1.
This requires the left and right derivatives to be equal at x = -1.
𝑓 ′ (𝑥) = 𝑎, 𝑥 ≤ −1
𝑓 ′ (−1) = 𝑎, 𝑥 ≤ −1
𝑓 ′ (𝑥) = 3𝑎𝑥 2 + 1, 𝑥 > −1
𝑓 ′ (−1) = 3𝑎 + 1, 𝑥 > −1
For f(x) to have a unique tangent line at x = -1, the left and right derivatives must be
equal. Therefore, we have:
1
𝑎 = 3𝑎 + 1, => 𝑎 = −
2
Therefore, the values of a and b for which the function f(x) is differentiable at x = -1 are
1
𝑏 = 1, 𝑎 = −
2
3. Find the derivative for the following: Differentiate only. Do not simplify your answers.
a) y = tan √𝑥 2 + 1
𝑥
𝑦′ =
√𝑥 2 + 1cos(√𝑥 2 + 1)
2𝑥 − 1
𝑏) 𝑦 =
3𝑥 + 2
2(3𝑥 + 2) − 3(2𝑥 − 1) 6𝑥 + 4 − 6𝑥 + 3 7
𝑦′ = = =
(3𝑥 + 2)2 (3𝑥 + 2)2 (3𝑥 + 2)2
𝑐) 𝑦 = 3−𝑥 ln(𝑥 + 3)
1 1
𝑦 ′ = −3−𝑥 ln(3) ln(𝑥 + 3) + 3−𝑥 = 3−𝑥 ( − ln(3) ln(𝑥 + 3))
𝑥+3 𝑥+3
𝑑) 𝑦 = 𝑐𝑜𝑠 −1 (𝑒 5𝑥 )
𝑦 ′ = 5𝑒 5𝑥 tan(𝑒 5𝑥 ) sec(𝑒 5𝑥 )
4. 𝐺𝑖𝑣𝑒𝑛 𝑦2 − 2𝑥𝑦 = 1
a) Find 𝑦′
𝑑 2 𝑑
(y − 2𝑥𝑦) = (1)
𝑑𝑥 𝑑𝑥
𝑑𝑦 𝑑𝑦
2𝑦 − 2 (𝑥 + 𝑦) = 0 => 2(𝑦𝑦 ′ − 𝑥𝑦 ′ − 𝑦) = 0
𝑑𝑥 𝑑𝑥
𝑦
2 ≠ 0, 𝑡ℎ𝑒𝑛 𝑦𝑦 ′ − 𝑥𝑦 ′ − 𝑦 = 0 => 𝑦 ′ (𝑦 − 𝑥) = 𝑦 => 𝑦 ′ =
𝑦−𝑥
b) 𝐹𝑖𝑛𝑑 𝑦′′ and make sure your answer 𝑦′′ 𝑖𝑠 𝑖𝑛 𝑡𝑒𝑟𝑚𝑠 𝑜𝑓 𝑥 𝑎𝑛𝑑 𝑦 𝑜𝑛𝑙𝑦.
𝑑 𝑑
𝑑 𝑦 (𝑦 − 𝑥) 𝑦 − 𝑦 (𝑦 − 𝑥) (𝑦 − 𝑥)𝑦′ − 𝑦(𝑦′ − 1)
𝑦 ′′ = ( )= 𝑑𝑥 𝑑𝑥 =
𝑑𝑥 𝑦 − 𝑥 (𝑦 − 𝑥)2 (𝑦 − 𝑥)2
𝑦𝑦 ′ − 𝑥𝑦 ′ − 𝑦𝑦 ′ + 𝑦 𝑦 − 𝑥𝑦 ′
= =
(𝑦 − 𝑥)2 (𝑦 − 𝑥)2
Substituting y' = y/ (y - x), we get:
𝑥𝑦
𝑦−
′′ 𝑦 − 𝑥 𝑦 2 − 𝑥𝑦 − 𝑥𝑦 𝑦 2 − 2𝑥𝑦
𝑦 = = =
(𝑦 − 𝑥)2 (𝑦 − 𝑥)3 (𝑦 − 𝑥)3
5. Given the function 𝑓(𝑥) = |𝑥 − 1| + |𝑥 + 2|.
Find a piecewise function (formula) for 𝑓′(𝑥). No graphs!
Case 1: 𝑥 < -2
In this case, both the terms inside the absolute value bars are negative. So, we can
write:
𝑓(𝑥) = −(𝑥 − 1) − (𝑥 + 2) = −2𝑥 − 1
The derivative of 𝑓(𝑥) in this case is:
𝑓 ′ (𝑥) = −2
Case 2: −2 ≤𝑥 < 1
In this case, both the terms inside the absolute value bars are negative. So, we can
write:
𝑓(𝑥) = −(𝑥 − 1) + (𝑥 + 2) = 1
The derivative of 𝑓(𝑥) in this case is:
𝑓 ′ (𝑥) = 0
Case 3: 𝑥 ≥ 1
In this case, both the terms inside the absolute value bars are negative. So, we can
write:
𝑓(𝑥) = (𝑥 − 1) + (𝑥 + 2) = 2𝑥 + 1
The derivative of 𝑓(𝑥) in this case is:
𝑓 ′ (𝑥) = 2
Therefore, the piecewise function for 𝑓′(𝑥) is:
−2 𝑓𝑜𝑟 x < −2
′ (𝑥)
𝑓 = {0 𝑓𝑜𝑟 − 2 ≤ x < 1
2 𝑓𝑜𝑟 x ≥ 1