[Solution] Function Pre.
Domain and Range of a Function¶
✅ Simple Definition (Not Bookish)¶
A function takes an input, does something to it, and gives you an output.
- The domain is all the possible values you are allowed to give as input.
- The range is all the values you get back as output.
You can think of a function like a vending machine.
- The buttons you can press (like A1, B2, C3) — that’s the domain.
- The snacks that come out — that’s the range.
🎯 Formal But Simple Definition:¶
- Domain of a function is the complete set of all possible input values (x) for which the function is defined.
- Range of a function is the complete set of all possible output values (f(x)) that the function can give.
🧠 Example:¶
Let’s say we have a function:
f(x) = x²
Step 1: Domain¶
You can put any real number into x (positive, negative, or zero), and you will get a valid result.
✅ So, the domain is: All real numbers
In symbols: x ∈ ℝ
Step 2: Range¶
No matter what number you put, the output will always be zero or positive (because square of any real number is ≥ 0).
✅ So, the range is: All real numbers greater than or equal to 0
In symbols: f(x) ≥ 0 or f(x) ∈ [0, ∞)
Example 2:¶
Given the function:
Find the domain and range of the function.
✅ Domain of f(x):¶
The function \(f(x) = 3x^2 + x + 2\) is a polynomial function.
Polynomial functions are defined for all real numbers.
So,
✅ Range of f(x):¶
Let,
Now, rearrange (1) to form a quadratic in \(x\):
This is a quadratic equation in \(x\).
For real values of \(x\), the discriminant must be ≥ 0.
Discriminant formula:
In our case:
- \(a = 3\),
- \(b = 1\),
- \(c = 2 - y\)
So,
To get real \(x\), we need:
✅ Range:¶
So, the range of the function is:
📌 Final Answer:¶
- Domain: \(\mathbb{R}\)
- Range: \(\left[ \frac{23}{12}, \infty \right)\)
✅ Step 1: Understand the Function's Behavior¶
This function is the sum of two square roots, and their domains are opposite in nature:
- \(\sqrt{x - 1}\) increases as \(x\) increases.
- \(\sqrt{5 - x}\) decreases as \(x\) increases.
So when \(x = 1\), the first term is minimum and the second term is maximum.
When \(x = 5\), the first term is maximum and the second term is minimum.
✅ Step 2: Find Minimum and Maximum Values¶
👉 At \(x = 1\):¶
👉 At \(x = 5\):¶
👉 At \(x = 3\) (Midpoint for symmetry):¶
This is the maximum value.
✅ Step 3: Final Answer¶
- Minimum value: 2
- Maximum value: \(2\sqrt{2} \approx 2.828\)