---
title: "George Li Tutoring: domain rules by function type"
url: "https://georgelitutoring.com/learn/function-mastery-explained.md"
canonical_url: "https://georgelitutoring.com/learn/function-mastery-explained"
last_updated: "2026-11-25"
type: "guide"
summary: "A rule for the domain of each kind of function, from polynomials to tangent, and how domains combine when you add, divide or compose two functions."
related: ["https://georgelitutoring.com/tutoring/ap-and-high-school.md", "https://georgelitutoring.com/packages.md", "https://georgelitutoring.com/learn/function-domain-exercises-solved.md"]
---

# Domain rules by function type

> **For AI agents:** the complete index of George Li Tutoring pages is [llms.txt](https://georgelitutoring.com/llms.txt). Every page is also served as markdown at its URL plus .md.

A rule for the domain of each kind of function, from polynomials to tangent, and how domains combine when you add, divide or compose two functions.

A function's domain collects every input for which its rule produces an output. Each family of functions has one standard restriction, so finding a domain is mostly a matter of recognizing the family and applying its rule. This page lists the rule for each family, then shows how domains combine when functions are added, divided or composed.

| Family | Example | Domain rule | Domain of the example |
| --- | --- | --- | --- |
| Polynomial | x cubed - 4x | none, any real input works | all real numbers |
| Rational | (x + 1) / (x - 5) | exclude zeros of the denominator | all reals except 5 |
| Square or other even root | square root of (x - 2) | the radicand is 0 or more | [2, infinity) |
| Cube or other odd root | cube root of (x - 2) | the radicand's own domain | all real numbers |
| Logarithm | ln(x + 4) | the argument is above 0 | (-4, infinity) |
| Exponential | 3 to the power x | the exponent's own domain | all real numbers |
| Exponential with a fraction in the exponent | 3 to the power 1/x | the exponent's own domain | all reals except 0 |
| Sine and cosine | sin x | none | all real numbers |
| Tangent and secant | tan x | exclude pi/2 + k x pi | all reals except odd multiples of pi/2 |
| Cotangent and cosecant | cot x | exclude k x pi | all reals except multiples of pi |

## Why do these rules exist?

Each rule matches an operation that has no answer for some inputs. You cannot divide by zero, so rational functions lose the zeros of the denominator. No real number squared is negative, so an even root loses inputs that make the radicand negative. No power of a positive base is zero or negative, so a logarithm needs a positive argument. Tangent is sine over cosine, and cosine is zero at every odd multiple of pi/2, so tangent loses exactly those points. Cotangent is cosine over sine and sine is zero at every multiple of pi, so cotangent loses those.

## What is the three-step method?

1. Identify every operation in the formula that has a restriction: a denominator, an even root, a logarithm, or a trigonometric quotient.
2. Write one condition for each restriction: denominator not 0, radicand at least 0, argument above 0.
3. Solve the conditions together and write the set of inputs that satisfy all of them, usually in interval notation.

## How do domains combine when functions are combined?

The inputs of a combined function must work for every piece.

**The domain of a combined function**

| Combination | Domain |
| --- | --- |
| f + g, f - g, f x g | inputs in the domain of f and in the domain of g |
| f / g | inputs in both domains, and also g(x) not 0 |
| f of g (f composed with g) | inputs x in the domain of g where g(x) lies in the domain of f |

Source: Standard results from the open textbook cited above, restated by us. The domain of f + g, f - g and f times g is the same rule: inputs that both functions accept.

**Worked example: Domains of a quotient and of two compositions**

Let f(x) = square root of x and g(x) = x - 4. Find the domain of f of g, the domain of g of f, and the domain of h(x) = square root of (x + 1) divided by (x squared - 4).

1. For f of g, the formula is square root of (x - 4). The radicand must be at least 0, so x is at least 4. The domain is [4, infinity).
2. For g of f, the formula is (square root of x) - 4. The input must be in the domain of f first, so x is at least 0. The domain is [0, infinity).
3. The two compositions have different domains, which shows that the order of composition matters.
4. For h, the root needs x + 1 at least 0, so x is at least -1. The denominator x squared - 4 is zero at x = 2 and x = -2, but -2 is already outside [-1, infinity), so only x = 2 is removed.

Answer: [4, infinity); [0, infinity); [-1, 2) and (2, infinity).

Source: Original example by George Li Tutoring; each domain was checked by evaluating both functions at test points.

## Which questions confuse students most?

The first is whether to simplify before finding a domain. Do not. Find the domain from the original formula, because (x squared - 1) / (x - 1) simplifies to x + 1 but still excludes x = 1. The second is mixing up domain and range. The domain lists the allowed inputs, and the range lists the outputs the function actually reaches. The third is leaving out a restriction hidden in a nested piece, such as a root inside a denominator.

For practice with the same rules on ten problems, see [finding the domain of a function](https://georgelitutoring.com/learn/function-domain-exercises-solved.md). For help moving from these rules to inverses and composition, see [high school course tutoring](https://georgelitutoring.com/tutoring/ap-and-high-school.md) or [book a first session](https://georgelitutoring.com/book/first-session).

### What does the domain of a function mean?

Every input for which the function produces a real-number output.

### Which inputs does a polynomial accept?

All real numbers, because a polynomial can be evaluated at any input.

### Which inputs does tangent accept?

All real numbers except odd multiples of pi/2, where the cosine in the denominator is zero.

### Do you simplify before finding the domain?

No. Find the domain from the original expression. Simplifying can hide an excluded input.

## Related

- [Online AP® exam and course tutor](https://georgelitutoring.com/tutoring/ap-and-high-school.md)
- [Tutoring prices: $150 to $200 an hour](https://georgelitutoring.com/packages.md)
- [George Li Tutoring: finding the domain of a function](https://georgelitutoring.com/learn/function-domain-exercises-solved.md)
