Some functions are defined by different equations for various parts for their domains.
Those functions are called piecewise-defined functions.
To solve the piecewise-defined function for an input, we will determine that which part of the domain it belongs to and use the appropriate formula for that part of the domain.
Consider the provided function,
The function provided is defined in multiple equations.
Therefore, to determine g(6) identify in which equation 6 will lie.
6 lies in the interval . Therefore, to determine the value of g(6), will be used.
Substitute into the equation .
Hence, the value of g(6) is 18.