SIT787 Assignment 1
SIT787 Assignment 1
Assignment 1
Solution
𝑥
The domain of 𝑓(𝑥) consists of all values of x such that ≥ 0, because the square root of a
log1 (𝑥)
2
negative number is not defined (as a real umber).
𝑥
Find roots of all the factors for :
log1 (𝑥)
2
x=0
log 1 (𝑥) = 0 → x=1
2
𝑥
From the sign table, we identify > 0 on the interval (0, 1).
log1 (𝑥)
2
The function is not defined on the interval (-∞, 0], since log 1 (𝑥) has domain (0, +∞).
2
𝑥
The function is not defined at x = 1, since log 1 (1) = 0 and the denominator of can not be
2 log1 (𝑥)
2
zero.
1
Solution
𝑥 2 −3𝑥+2
→ To solve ln( )=0
𝑥−1
𝑥 2 −3𝑥+2
→ =1
𝑥−1
→ 𝑥 2 − 3𝑥 + 2 = 𝑥 − 1
→ 𝑥 2 − 4𝑥 + 3 = 0
→ (𝑥 − 3)(𝑥 − 1) = 0
→ 𝑥 = 3 ,𝑥 = 1
Solution
The function has no undefined points or domain constraints, since the denominator 𝑥 2 + 1 ≠
0 for 𝑥 ∈ 𝑅.
2
Solution
Solution
𝑥+2
if 𝑥 ≥ 0
𝑥2 + 1
𝑓(𝑥) =
−𝑥 + 2
if 𝑥 < 0
{ 𝑥2 + 1
Solution
To find stationary points, we need to find the first derivative of the piecewise-defined function, then
we check when the derivative is zero or doesn’t exist.
𝐈𝐟 𝒙 > 𝟎
𝑑 𝑑
(𝑥 2 + 1) (𝑥 + 2) − (𝑥 + 2) (𝑥 2 + 1) (𝑥 2 + 1) − 2𝑥(𝑥 + 2) −𝑥 2 − 4𝑥 + 1
𝑓 ′ (𝑥)
= 𝑑𝑥 𝑑𝑥 = = (I)
(𝑥 2 + 1)2 (𝑥 2 + 1)2 (𝑥 2 + 1)2
−𝑥 2 −4𝑥+1
Solve 𝑓 ′ (𝑥) = (𝑥 2 +1)2
= 0
3
Thus 𝑥 = √5 − 2, since 𝑥 > 0
(√5−2)+2 √5 √5 √5 √5 (5+2√5) √5+2
𝑓(√5 − 2) = 2 = 4+5−4√5+1 = = 2(5−2√5) = 2(5−2√5) =
(√5−2) +1 10−4√5 (5+2√5) 2
𝐈𝐟 𝒙 < 𝟎
𝑑 𝑑
(𝑥 2 + 1) (−𝑥 + 2) − (−𝑥 + 2) (𝑥 2 + 1) −(𝑥 2 + 1) − 2𝑥(−𝑥 + 2) 𝑥 2 − 4𝑥 − 1
𝑓 ′ (𝑥)
= 𝑑𝑥 𝑑𝑥 = = (II)
(𝑥 2 + 1)2 (𝑥 2 + 1)2 (𝑥 2 + 1)2
𝑥 2 −4𝑥−1
Solve 𝑓 ′ (𝑥) = (𝑥 2 +1)2
= 0
𝐀𝐭 𝒙 = 𝟎
−02 −4(0)+1
From the rule (I), 𝑓 ′ (0) = (02 +1)2
= 1
02 −4(0)−1
From the rule (II), 𝑓 ′ (0) = (02 +1)2
= −1
(0, 2) 𝑖𝑓 𝑥 = 0
√5+2
( 2 − √5 , ) ≈ ( −0.24 , 2.12) 𝑖𝑓 𝑥 < 0
2
Solution
𝐈𝐟 𝒙 > 𝟎
4
𝑑 𝑑
(𝑥 2 + 1)2 (−𝑥 2 − 4𝑥 + 1) − (−𝑥 2 − 4𝑥 + 1) (𝑥 2 + 1)2
𝑓 ′′ (𝑥)
= 𝑑𝑥 𝑑𝑥
((𝑥 2 + 1)2 )2
𝐈𝐟 𝒙 < 𝟎
𝑑 2 𝑑
(𝑥 2 + 1)2 (𝑥 − 4𝑥 − 1) − (𝑥 2 − 4𝑥 − 1) (𝑥 2 + 1)2
𝑓 ′′ (𝑥)
= 𝑑𝑥 𝑑𝑥
((𝑥 2 + 1)2 )2
−2𝑥 3 + 12𝑥 2 + 6𝑥 − 4
=
(𝑥 2 + 1)3
−2(−0.24)3 +12(0.24)2 +6(0.24)−4
At x = −0.24, 𝑓 ′′ (−0.24) = ((−0.24)2 +1)3
= - 4.01 < 0
Solution
We use the sign table of the first derivative to see when the first derivative is positive or negative,
which means the function is increasing or decreasing.
5
−𝑥 2 − 4𝑥 + 1
if 𝑥 > 0
(𝑥 2 + 1)2
𝑓′(𝑥) =
𝑥 2 − 4𝑥 − 1
if 𝑥 < 0
{ (𝑥 2 + 1)2
Based on the sign table, the function is increasing on interval (0, √5 − 2 ) and (−∞, 2 − √5), and
the function is decreasing on interval (√5 − 2 , +∞) and (2 − √5, 0).
Solution
2𝑥 3 + 12𝑥 2 − 6𝑥 − 4
if 𝑥 > 0
(𝑥 2 + 1)3
𝑓′′(𝑥) =
−2𝑥3 + 12𝑥2 + 6𝑥 − 4
if 𝑥 < 0
{ ( 𝑥 2 + 1) 3
We solve for 𝑓′′(𝑥) = 0 and draw sign tables to find inflection points.
6
𝐈𝐟 𝒙 > 𝟎
2𝑥 3 +12𝑥 2 −6𝑥−4
Solve 𝑓 ′ ′(𝑥) = (𝑥 2 +1)3
= 0
→ 𝑥 ≈ 0.81
𝑥 3 +6𝑥 2 −3𝑥−2
≈ 𝑥 2 + 6.81𝑥 + 2.52
𝑥−0.81
0.81 + 2
𝑓(0.81) = ≈ 1.70
(0.81)2 + 1
𝐈𝐟 𝒙 < 𝟎
7
→ Solve −2𝑥 3 + 12𝑥 2 + 6𝑥 − 4 = 0, since (𝑥 2 + 1)3 ≠ 0
→ Solve −𝑥3 + 6𝑥2 + 3𝑥 − 2 = 0 using trial and error method
x −𝑥 3 + 6𝑥 2 + 3𝑥 − 2
-1.00 2.00
-0.95 1.42
-0.90 0.89
-0.85 0.40
-0.83 0.17
-0.81 0.00
→ 𝑥 ≈ − 0.81
−𝑥 3 +6𝑥 2 +3𝑥−2
≈ −𝑥 2 + 6.81𝑥 − 2.52
𝑥+0.81
0.81 + 2
𝑓(−0.81) = ≈ 1.70
(−0.81)2 + 1
The inflection point is (-0.81, 1.70) if 𝑥 < 0
Based on the sign table, the function is concave on interval (0, 0.81) and (−0.81, 0) , and the
function is convex on interval (0.81, +∞) and (−∞, −0.81).
8
Solution
Information for sketching the function based on step (i) to (vii) as follows:
Domain: (-∞, +∞).
y-intercept: (0,2); no x-intercept
Local maximum points: (−0.24 , 2.12) , (0.24 , 2.12)
Local minimum point: (0,2)
Inflection points: (-0.81, 1.70), (0.81, 1.70)
The function increases on interval (0,0.24 ) and (−∞, −0.24), and decreases on interval
(0.24 , +∞) and (−0.24,0).
The function is concave on interval (0, 0.81) and (−0.81, 0), and convex on interval (0.81, +∞)
and (−∞, −0.81).
Answer
9
Functions are widely utilized in AI to categorize information, detect patterns and make
predictions (Jeevanandam, 2023). For example, machine learning adopts linear regression function;
neural networks consist of many interconnected functions.
Many AI tasks can be transformed as optimization problems. Optimization techniques are often used
for efficient training, fine-tuning and improvement of AI models. A commonly-used optimization
algorithm is gradient descent, which minimizes errors between predicted and actual results to train
machine learning models (IBM, 2024). Optimization also enables other important AI techniques such
as backpropagation, optimal control and regularization.
References:
Jeevanandam, N. (2023, December 22). Mathematics and its essential role in AI. INDIAai.
https://indiaai.gov.in/article/mathematics-and-its-essential-role-in-ai
10