Functions, Domains and Inequalities

What you will be able to do

Given a formula, the learner can identify every operation that restricts its domain, combine the resulting conditions, and express the answer in interval notation, distinguishing the domain a formula forces from the domain a situation permits.

What you will be able to do

Given a linear, absolute-value, exponential or logarithmic inequality or equation, the learner can solve it, reverse the direction when multiplying or dividing by a negative quantity, unfold an absolute-value condition into the union or intersection it denotes, and reject candidates that fall outside the original expression's domain.

Orientation

A formula is not yet a function

1 x tells you what to do with a number. It does not tell you which numbers are allowed, and that answer is not a matter of choice: division by zero is undefined, so 0 cannot be an input, and the set of permitted inputs is forced by the arithmetic itself.

That set is the domain, and it is part of the function rather than a detail attached afterwards. Two functions with the same formula and different domains are different functions, which is why x on [ 0 , ∞ ) and x on [ 4 , 9 ] answer different questions.

Finding a domain is a search for failure. Only three operations can fail on real numbers: division at a zero denominator, the square root on a negative, the logarithm at zero and below. Everything else, including polynomials, sums, products and odd roots, accepts every real input. So reading a formula for its domain means scanning for those three and writing one condition each.

The conditions then have to hold together. For x − 2 x − 5 the root requires x ≥ 2 and the denominator requires x ≠ 5 , giving [ 2 , 5 ) ∪ ( 5 , ∞ ) , a set with a hole, which is what interval notation exists to write down.

This matters beyond bookkeeping. Every question the calculus units ask (does this limit exist, is this differentiable, can this be integrated) is a question about a point in the domain, and asking it at a point outside is a category error rather than a hard problem.

Definition

Why each restriction is where it is

Why only three operations restrict. Addition, subtraction and multiplication are defined on all of R , so any polynomial is total. Division fails only at zero, since no real number times 0 gives a nonzero result. The square root fails on negatives because no real number squares to a negative, and the odd root does not fail, since ( − 2 ) 3 = − 8 gives − 8 3 = − 2 . The logarithm fails at zero and below because a y > 0 for every real y , so no exponent produces a non-positive value.

Each restriction traces to a fact about the real numbers rather than to a convention, which is why the list is exactly three items long and does not grow.

Why the conditions intersect rather than accumulate. Each operation must succeed for the formula to have a value, so an input is admissible only if it satisfies every condition. For x − 2 x − 5 , x = 1 fails the root and x = 5 fails the division; both are excluded, and the domain is the intersection { x ≥ 2 } ∩ { x ≠ 5 } .

Why ∞ always takes a parenthesis. The bracket means the endpoint is included, and ∞ is not a number that could be. Writing [ 2 , ∞ ] claims a largest real number exists.

Why a composition's domain is not an intersection. ( g ∘ f ) needs x in f 's domain and f ( x ) in g 's domain. A condition on the output, not on x directly. With f ( x ) = x − 1 , total, and g ( u ) = u , the composite x − 1 requires x ≥ 1 , a restriction neither domain contains on its own.

Why a negative multiplier reverses an inequality. Multiplying by − 1 reflects the number line through 0, and reflection exchanges left and right. From 2 < 5 , multiplying by − 1 gives − 2 > − 5 , which is visibly correct. An equation has no direction to reverse, which is why the rule appears here and not there.

Multiplying by an expression whose sign is unknown, such as x , is therefore invalid without splitting into cases, and that is why 1 x < 2 is not solved by multiplying through by x .

Why | u | < c and | u | > c unfold differently. | u | is the distance from u to 0. Being within c of 0 confines u to one interval, − c < u < c . Being further than c from 0 admits two rays, u < − c or u > c , which cannot be written as a single double inequality, attempting − c > u > c describes the empty set.

Why extraneous solutions arise from valid steps. ln ⁡ x + ln ⁡ ( x − 3 ) requires x > 3 . Rewriting it as ln ⁡ ( x ( x − 3 ) ) requires only x ( x − 3 ) > 0 , which also holds for x < 0 . The step is a correct identity where both sides are defined, and the rewritten form is defined more widely, so the new equation can have solutions the original does not. Checking candidates against the original domain is the method's last step rather than an optional caution.

Example

Domains worth recognising on sight

A polynomial, f ( x ) = x 2 − 4 x + 7 . Domain ( − ∞ , ∞ ) . Nothing can fail. Its range is another matter: completing the square gives ( x − 2 ) 2 + 3 , so the minimum is 3 at x = 2 and the range is [ 3 , ∞ ) . Checking f at 0 , 1 , 2 , 3 , 4 gives 7 , 4 , 3 , 4 , 7 , and a scan of 200,000 random inputs found nothing below.

Domain and range are different questions: the first asks what may go in, the second what comes out.

A rational function, 1 x − 3 . One division, so one condition: x ≠ 3 . The domain is ( − ∞ , 3 ) ∪ ( 3 , ∞ ) . At x = 2.5 the value is − 2 ; at x = 3 the computation raises an error rather than producing a large number.

A square root, x − 2 . Domain [ 2 , ∞ ) , with the bracket at 2 because 0 = 0 is perfectly defined. The restriction is ≥ , not > . A distinction the bracket records.

A logarithm, ln ⁡ x . Domain ( 0 , ∞ ) , parenthesis at 0 because ln ⁡ 0 is undefined. Here the restriction is strict where the square root's was not, which is why the two cannot be treated as the same kind of condition.

Both at once, x − 2 x − 5 . The root gives x ≥ 2 , the denominator gives x ≠ 5 , and the domain is [ 2 , 5 ) ∪ ( 5 , ∞ ) . Testing: 1.9 is out, 2 is in, 4.9 is in, 5 is out, 5.1 is in.

A root in a denominator, 1 4 − x 2 . Two conditions collapse into one strict inequality: the root needs 4 − x 2 ≥ 0 and the division needs it ≠ 0 , so 4 − x 2 > 0 , giving ( − 2 , 2 ) . Both endpoints are excluded, and computing at x = 2.5 , 3 or 5 raises an error.

A composition, x − 1 from f ( x ) = x − 1 and g ( u ) = u . f is total and g needs a non-negative input, so the composite needs x ≥ 1 . At x = 0.5 the computation fails; at x = 1 it gives 0. The restriction belongs to neither original domain.

Three operations, each contributing one condition, and the only complication is how they combine. An intersection for a formula, an output condition for a composition. The bracket in the written answer is not decoration: it records whether the endpoint survived.

Non-example

Answers that look right and are not

Reporting a domain as a single interval when it has a hole. For x − 2 x − 5 , writing [ 2 , ∞ ) satisfies the root and forgets the denominator. The correct answer is [ 2 , 5 ) ∪ ( 5 , ∞ ) , and the union is not a stylistic preference, x = 5 genuinely produces division by zero.

Using the wrong bracket. x − 2 has domain [ 2 , ∞ ) with a closed bracket, since 0 = 0 is defined. ln ⁡ x has domain ( 0 , ∞ ) with an open one, since ln ⁡ 0 is not. Treating the two restrictions as the same kind loses a point in one case and admits an undefined one in the other.

Keeping the direction when dividing by a negative. From − 2 x > 6 , dividing by − 2 gives x < − 3 , not x > − 3 . Testing x = 0 : − 2 ( 0 ) = 0 , which is not greater than 6, so 0 must be excluded, and x > − 3 wrongly includes it. A single test point settles the direction whenever it is in doubt.

Multiplying by an expression of unknown sign. Solving 1 x < 2 by multiplying through by x assumes x > 0 . For x = − 1 the original reads − 1 < 2 , true, while the multiplied form gives 1 < − 2 , false. The correct treatment splits into cases by the sign of x .

Writing | u | > c as a double inequality. | 2 x − 6 | > 4 is 2 x − 6 < − 4 or 2 x − 6 > 4 , giving ( − ∞ , 1 ) ∪ ( 5 , ∞ ) . Writing − 4 > 2 x − 6 > 4 asserts a number is simultaneously below − 4 and above 4. The empty set.

The companion case is different in kind: | 2 x − 6 | < 4 is a double inequality, − 4 < 2 x − 6 < 4 , giving ( 1 , 5 ) . Checking the boundaries: at x = 1 and x = 5 the expression equals exactly 4, so neither endpoint belongs.

Reporting an extraneous solution. ln ⁡ x + ln ⁡ ( x − 3 ) = ln ⁡ 10 leads to x 2 − 3 x − 10 = 0 , whose roots are 5 and − 2 . But the original requires x > 3 , and ln ⁡ ( − 2 ) does not exist. Only x = 5 is a solution, confirmed by ln ⁡ 5 + ln ⁡ 2 = 2.3025850930 = ln ⁡ 10 .

Nothing went wrong in the algebra. Combining the logarithms enlarged the domain, so the quadratic has a root the original equation never admitted, which is why the check is part of the method.

Confusing domain with range. For f ( x ) = x 2 − 4 x + 7 the domain is all reals while the range is [ 3 , ∞ ) . Answering "what values can f take" with "all reals" confuses what goes in with what comes out.

Procedure

Finding a domain, solving an inequality

To find a natural domain.

  1. Scan for the three restricting operations. Division, even roots, logarithms. Nothing else in an elementary formula can fail.
  2. Write one condition per occurrence.
SeenCondition
⋅ g ( x ) g ( x ) ≠ 0
g ( x ) g ( x ) ≥ 0
ln ⁡ g ( x ) g ( x ) > 0
  1. Solve each condition for x separately.
  2. Intersect them. An input must satisfy every condition at once.
  3. Write the result in interval notation, with a union where the set has gaps.

Watch for conditions that collapse. A root inside a denominator, 1 g , needs g ≥ 0 and g ≠ 0 together, which is simply g > 0 .

To find the domain of a composition g ( f ( x ) ) . Require x in f 's domain and f ( x ) in g 's domain. The second is a condition on the output, so solve f ( x ) ∈ dom ⁡ g as an inequality in x . The result may be smaller than either domain.

To solve a linear inequality. Proceed as for an equation, with one exception: reverse the direction whenever multiplying or dividing by a negative number. Never multiply by an expression whose sign is unknown, split into cases instead.

To solve an absolute-value inequality. The two forms unfold differently:

  • | u | < c becomes the double inequality − c < u < c . One interval.
  • | u | > c becomes u < − c or u > c . A union of two rays.

If c < 0 , the first has no solutions and the second has all of them, since | u | ≥ 0 always.

To solve an exponential equation. Write both sides as powers of a common base and equate the exponents: 3 2 x = 81 = 3 4 gives 2 x = 4 . Where no common base is available, apply a logarithm to both sides.

To solve a logarithmic equation.

  1. State the domain first, from the arguments of every logarithm.
  2. Combine logarithms using log ⁡ u + log ⁡ v = log ⁡ ( u v ) .
  3. Convert to exponential form and solve.
  4. Check every candidate against the domain from step 1, discarding those outside it.

Skipping step 4 reports a domain the formula does not have. Combining logarithms enlarges the domain, so the algebra can produce roots the original equation never admitted.

Checks. Substitute a test point from each interval of the claimed solution set, and one from outside it. The first should satisfy the inequality and the second should not. For a domain, try a value just inside and just outside each endpoint; the second should fail the arithmetic rather than merely look wrong.

Worked example

Five problems, each with its check

1. A domain with a gap: f ( x ) = x − 2 x − 5 .

Two restricting operations, so two conditions:

  • the square root needs x − 2 ≥ 0 , so x ≥ 2 ;
  • the denominator needs x − 5 ≠ 0 , so x ≠ 5 .

Both must hold, giving

dom ⁡ f = [ 2 , 5 ) ∪ ( 5 , ∞ ) .

Check by testing: x = 1.9 fails the root; x = 2 is admitted, with f ( 2 ) = 0 ; x = 4.9 is admitted; x = 5 divides by zero; x = 5.1 is admitted.

The closed bracket at 2 is correct because 0 = 0 is defined; the parentheses at 5 mark a genuine exclusion.

2. A collapsing pair of conditions: g ( x ) = 1 4 − x 2 .

The root needs 4 − x 2 ≥ 0 ; the denominator needs 4 − x 2 ≠ 0 , which means 4 − x 2 ≠ 0 . Together these are the single strict condition 4 − x 2 > 0 , that is x 2 < 4 :

dom ⁡ g = ( − 2 , 2 ) .

Check: at x = 2.5 , 3 and 5 the computation fails, since 4 − x 2 is negative. Both endpoints are excluded even though the root alone would have admitted them.

3. Domain and range are different questions: h ( x ) = x 2 − 4 x + 7 .

Nothing can fail, so dom ⁡ h = ( − ∞ , ∞ ) .

For the range, complete the square:

x 2 − 4 x + 7 = ( x − 2 ) 2 + 3 .

Since ( x − 2 ) 2 ≥ 0 , the smallest value is 3, attained at x = 2 , and every larger value is attained. So the range is [ 3 , ∞ ) .

Check: h at 0 , 1 , 2 , 3 , 4 gives 7 , 4 , 3 , 4 , 7 , and a scan of 200,000 random inputs produced a minimum of 3.0000005 , never below 3.

4. An absolute-value inequality: | 2 x − 6 | < 4 .

The form is | u | < c , so it unfolds to a double inequality:

− 4 < 2 x − 6 < 4 .

Add 6 throughout: 2 < 2 x < 10 . Divide by 2, positive, so no reversal: 1 < x < 5 , that is ( 1 , 5 ) .

Check at the boundaries: at x = 1 and x = 5 the expression equals exactly 4, which is not less than 4, so neither endpoint belongs. At x = 3 it is 0, and at x = 0.9 and x = 5.1 it is 4.2 , outside, as required.

Had the inequality been | 2 x − 6 | > 4 , the answer would be the union ( − ∞ , 1 ) ∪ ( 5 , ∞ ) instead.

5. A logarithmic equation with an extraneous root: ln ⁡ x + ln ⁡ ( x − 3 ) = ln ⁡ 10 .

Domain first. ln ⁡ x needs x > 0 and ln ⁡ ( x − 3 ) needs x > 3 . Together: x > 3 .

Combine and solve.

ln ⁡ ( x ( x − 3 ) ) = ln ⁡ 10   ⟹   x 2 − 3 x = 10   ⟹   x 2 − 3 x − 10 = 0 ,

which factors as ( x − 5 ) ( x + 2 ) = 0 , giving x = 5 and x = − 2 .

Check against the domain. x = 5 > 3 . x = − 2 is outside, ln ⁡ ( − 2 ) does not exist, so it is discarded.

Verify the survivor: ln ⁡ 5 + ln ⁡ 2 = 2.3025850930 and ln ⁡ 10 = 2.3025850930 .

The algebra was correct throughout. Combining the logarithms widened the domain, so the quadratic acquired a root the original equation never had.

Warning

The negative multiplier

An inequality is manipulated like an equation with one exception, and the exception is the source of most wrong answers in this material.

The rule. Multiplying or dividing both sides by a negative number reverses the direction.

− 2 x > 6 ⟹ x < − 3 (not  x > − 3 )

Why. Multiplying by − 1 reflects the number line through 0, and reflection exchanges left and right. From 2 < 5 , multiplying by − 1 gives − 2 > − 5 , which is plainly right, since − 2 lies to the right of − 5 . An equation has no direction to preserve, which is why the rule appears only here.

The check that costs nothing. Substitute a value that the claimed answer admits. For − 2 x > 6 with the wrong answer x > − 3 , test x = 0 : the left side is 0 , which is not greater than 6, so 0 cannot belong, and x > − 3 wrongly includes it. Test x = − 4 against the correct answer: − 2 ( − 4 ) = 8 > 6 .

One test point settles the direction whenever it is in doubt, and it takes a few seconds.

The harder case: an unknown sign. Solving 1 x < 2 by multiplying through by x assumes x > 0 without saying so. Checking x = − 1 : the original reads − 1 < 2 , true, while the multiplied form gives 1 < − 2 , false. The two are not equivalent.

The sound treatment splits into cases. For x > 0 , multiplying preserves the direction and gives 1 < 2 x , so x > 1 2 . For x < 0 , the direction reverses and gives 1 > 2 x , which every negative x satisfies. The solution is therefore ( − ∞ , 0 ) ∪ ( 1 2 , ∞ ) . A union that the single-step method misses entirely.

A related error: squaring. Squaring both sides is not reversible either, since a < b does not imply a 2 < b 2 when signs differ: − 3 < 2 but 9 > 4 . Squaring is safe only when both sides are known non-negative, and otherwise introduces solutions that must be checked and discarded.

The habit worth forming. After solving any inequality, pick one number from inside the claimed solution set and one from outside, and test both against the original. The first should satisfy it and the second should not. That single check catches reversed directions, lost cases and extraneous roots alike.

Extra support (1)

Contrast

Pairs that differ by one symbol

x − 2 against ln ⁡ ( x − 2 ) .

x − 2 ln ⁡ ( x − 2 )
condition x − 2 ≥ 0 x − 2 > 0
domain [ 2 , ∞ ) ( 2 , ∞ )
at x = 2 0 , definedundefined

One symbol apart in the condition, one bracket apart in the answer. The root accepts its boundary because 0 = 0 ; the logarithm rejects its own because no exponent produces 0. Treating the two restrictions as interchangeable loses or gains exactly one point.

| 2 x − 6 | < 4 against | 2 x − 6 | > 4 .

< 4 > 4
unfolds to − 4 < 2 x − 6 < 4 2 x − 6 < − 4 or 2 x − 6 > 4
shapeone intervalunion of two rays
answer ( 1 , 5 ) ( − ∞ , 1 ) ∪ ( 5 , ∞ )

The two sets are complementary apart from the endpoints, where the expression equals exactly 4 and neither strict inequality holds. Writing the second as a double inequality yields the empty set, a difference in kind rather than in arithmetic.

1 4 − x 2 against 4 − x 2 .

The root alone has domain [ − 2 , 2 ] , closed, since 0 is fine. Put it in a denominator and the endpoints leave: ( − 2 , 2 ) . The added division converts ≥ into > , which is the collapse two conditions undergo when one sits inside the other.

Domain against range, for x 2 − 4 x + 7 .

Domain ( − ∞ , ∞ ) , since every input works. Range [ 3 , ∞ ) , since not every output occurs. The two questions run in opposite directions, and the answers here share no structure: one is everything, the other is bounded below at the vertex value 3.

A solution that survives against one that does not. For ln ⁡ x + ln ⁡ ( x − 3 ) = ln ⁡ 10 the quadratic gives x = 5 and x = − 2 . They are equally valid roots of the quadratic and unequally valid solutions of the equation: the domain x > 3 admits the first and excludes the second. The difference is not in the algebra but in which question each root answers.

Each differs by a single feature, whether a strictness, a direction, a division or a direction of inquiry, and each difference changes the answer's shape rather than merely its value. That is why reading the formula carefully precedes solving it.

Optional enrichment (1)

Application

Where the domain is the answer

Feasible regions in optimisation. A linear program's constraints are inequalities, and the feasible region is their intersection, exactly the operation this unit performs on domain conditions. The operational research units solve for a best point within that region, and a program whose constraints intersect in the empty set is infeasible, which is the same failure as a formula whose conditions cannot hold together.

Confidence intervals and tolerance bands. A statement that a parameter lies in [ a , b ] is interval notation doing exactly the work described here, and the bracket convention matters: a tolerance specified as < 4 excludes its boundary while ≤ 4 includes it. In an engineering specification that distinction decides whether a part at exactly the limit passes.

Where a model is valid. A regression fitted on incomes between \$20{,}000 and \$200{,}000 has that interval as its domain of applicability. Evaluating it at \$5{,}000{,}000 is arithmetically possible and substantively meaningless. The formula extends where the model does not, which is the modelling counterpart of a natural domain being narrower than a formula's syntax suggests.

Guarding a computation. Any code evaluating 1 x − 3 , g ( x ) or ln ⁡ g ( x ) needs a check before the operation, because the failure is an exception rather than a wrong number. The three conditions in this unit are precisely the three guards, and a domain analysis is what tells a programmer which inputs to reject at the boundary rather than debug later.

Solving for time in growth models. Continuous growth P ( t ) = P 0 e r t inverts to t = 1 r ln ⁡ P P 0 . An exponential equation solved by logarithm, with the domain requirement P / P 0 > 0 automatically satisfied for positive populations. Half-life and doubling-time calculations are the same manoeuvre, and the answer's units come from r .

In the calculus units. Every limit question asks about behaviour near a point, and the removable discontinuity of x 2 − 4 x − 2 at x = 2 is a hole in the natural domain. The function has a limit where it has no value. Differentiability is likewise a property at a point of the domain, and the one-sided derivative at an interval's endpoint exists precisely because the domain stops there.

The through-line. Asking where a rule applies is not preliminary to using it; in each case above it is a substantive part of the answer. A domain records which inputs the arithmetic admits, a feasible region which decisions the constraints admit, a validity range which predictions the model admits. The same question in three settings.

Next step

Practice Functions, Domains and Inequalities

Practice this

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.