Functions, Domains and Inequalities

A function is a rule with a stated domain. The domain is found from the operations that would otherwise fail, and it is written in interval notation. The unit also solves the inequalities and exponential equations that describe such sets, with a domain check that discards roots introduced by the algebra.

Definition

A function assigns to each element of a set D , the domain, exactly one element of a set called the codomain. The range is the set of values actually attained. A function is not a formula: the same formula with two different domains is two different functions, and the domain is part of the specification rather than an afterthought.

Natural domain. When a formula is given without a stated domain, the convention is the largest set of real numbers on which every operation is defined. Three operations restrict it:

OperationRequires
1 g ( x ) g ( x ) ≠ 0
g ( x ) g ( x ) ≥ 0
ln ⁡ g ( x ) g ( x ) > 0

Each restriction is a condition on x ; the domain is where all of them hold at once.

Interval notation. A square bracket includes the endpoint, a parenthesis excludes it, and ∞ always takes a parenthesis since it is not a number to include. Unions join disjoint pieces: the domain of x − 2 x − 5 is [ 2 , 5 ) ∪ ( 5 , ∞ ) .

Composition. ( g ∘ f ) ( x ) = g ( f ( x ) ) is defined where x is in f 's domain and f ( x ) is in g 's domain. The second condition can restrict the result even when f is defined everywhere: f ( x ) = x − 1 is total, yet f ( x ) requires x ≥ 1 .

Inequalities. Solving an inequality produces a set. The rules match those for equations with one exception: multiplying or dividing by a negative number reverses the direction. An absolute-value inequality | u | < c with c > 0 unfolds to the double inequality − c < u < c ; | u | > c unfolds to u < − c or u > c , a union rather than an intersection.

Exponential and logarithmic equations. The exponential and logarithm are inverse, so a x = b gives x = log a ⁡ b and log a ⁡ x = b gives x = a b . Two facts make most such equations tractable: writing both sides to a common base allows exponents to be equated, and log ⁡ u + log ⁡ v = log ⁡ ( u v ) collapses a sum of logarithms into one.

Extraneous solutions. Combining logarithms can enlarge the domain, so an algebraic solution may fall outside the original equation's domain. Every candidate must be checked against the domain before it is reported: ln ⁡ x + ln ⁡ ( x − 3 ) = ln ⁡ 10 leads to x = 5 and x = − 2 , and only x = 5 lies in the domain x > 3 .

Assumptions and scope

  • The domain is part of a function's definition. The same formula on two domains is two functions, and 'the domain' of a bare formula means the natural domain by convention, not by necessity.

  • Only division, even roots and logarithms restrict a real-valued elementary formula. Polynomials, sums, products and odd roots are defined for every real input.

  • Multiplying or dividing an inequality by a negative quantity reverses its direction. Multiplying by an expression of unknown sign is invalid without splitting into cases.

  • | u | < c is an intersection and | u | > c is a union. Writing the second as a double inequality produces the empty set instead of two rays.

  • Combining logarithms can enlarge the domain, so every candidate solution must be checked against the original equation's domain. Extraneous solutions are produced by a valid step, not by an error.

  • A composition's domain is not the intersection of the two domains: it is where x lies in the inner domain and the inner output lies in the outer domain.

Worked material

Example

Common domains

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

Common errors with domains and inequalities

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. When the direction is in doubt, a single test point fixes it.

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.

Contrast

Pairs of problems 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 algebra is the same; the difference is 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.

Common errors

Common misconception

An inequality is manipulated exactly like an equation, so multiplying or dividing both sides by a negative number leaves the direction unchanged.

Common misconception

A function's domain is found by reading the conditions its named operations impose, so x − 2 ln ⁡ ( 5 − x ) requires only x ≥ 2 and x < 5 ; that the logarithm sits in a denominator imposes nothing further.

Related units

Connected

Learn this topic

Used in

Sources

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

Layout

Simple is one plain column with nothing that moves or redraws, for older or slower devices. Auto uses it on Firefox 143 and earlier. Changing it reloads the page.

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.