Question
Question: Find the sum and product of identity function and the modulus function....
Find the sum and product of identity function and the modulus function.
Solution
Identity function refers to function which returns the same value when that number was used as its argument, for f being the identity, the equality f(y)=y for all y whereas argument of a function refers to the value that is provided to obtain result. Here, y is the argument. Modulus function refers to the function which gives absolute value of variables and numbers.
Modulus of a number gives the magnitude of that number represented as f(y)=∣y∣ , here if the number is non-negative the magnitude will also be non-negative and if the number is negative then it returns the number f(−y)=−y where ∣−y∣=y is considered as a positive number. A modulus function always returns a positive number whether the input is positive or negative.
Complete step by step answer:
Write an identity function which returns the same value used in the argument as:
f(x)=x
and a modulus function which gives the magnitude of that input
f(x)=∣x∣
Hence the sum of the identity function and the modulus function will be:
f(x)=x+∣x∣
Which will be equal to 2x if input is positive at x>0, and 0 if the input is negative x⩽0