Find the domain of sqrt(ax+b), ln(ax+b) or 1/(ax+b): get the boundary value, the restriction inequality and the domain interval, with the steps shown.

Domain Function Calculator

Domain questions are really three restriction rules — this tool applies the right one and shows the inequality, sign flip and interval.

Free to use 3 restriction families Sign flip handled Interval shown

Enter your values

Fill in the fields below — the result appears with every step shown.

Shown on the printed, PDF and PNG copies of your result. Leave blank to stay anonymous.

Enter a valid value for function form.

sqrt: f(x) = sqrt(a x + b). log: f(x) = ln(a x + b). rational: f(x) = 1 / (a x + b).

Enter a valid value for coefficient a of x.

Coefficient of x inside the function; cannot be 0.

Enter a valid value for constant b.

Constant added inside the function.

Local browser calculation

Review your inputs and the tool’s supported scope before using the result.

Calculator loading… If this message stays, this view is not running the calculator's script — open this file in a full browser tab, then press Calculate.

Your result will appear here

Enter your values above, then press Calculate — or press Enter in any field.
TinyExe Domain Function Calculator tinyexe.comFree online calculators

TinyExe · Domain Function Result

Calculated locally in your browser

Calculated on
—

–
—

Name

—

Function form

—

Coefficient a of x

—

Constant b

—

How this was calculated

    What to do next

      TinyExe · tinyexe.com — Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.

      Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.

      Embed this tool

      Add this Domain Function Calculator to your own page — copy the code below and paste it where you want the tool to appear.

      The embed loads the live calculator in a frame, so it stays up to date automatically. Choose a width, check the code, then copy it. When you publish on WordPress, keep the src pointing at your live tool URL.

      Works in WordPress (Custom HTML block), HTML pages, and most site builders.

      The short answer

      To find a function's domain, exclude inputs that break a rule: a square root needs its inside to be at least zero, a logarithm needs its inside above zero, and a denominator must not equal zero. For the square root of 2x minus 6, solving 2x minus 6 at least zero gives the domain x at least 3.

      • sqrt: inside >= 0
      • ln: inside > 0 (strict)
      • Denominator: inside != 0
      • Dividing an inequality by a negative flips its sign
      • Polynomials have domain = all real numbers

      The three classic domain restrictions

      Reference values for this calculator.

      SituationRestrictionExample boundary
      Square root of an expressionInside >= 0sqrt(x-3): x >= 3
      Logarithm of an expressionInside > 0ln(x+5): x > -5
      Expression in a denominatorDenominator != 01/(x-2): x != 2
      Even root in a denominator>= 0 and != 0 combine: inside > 01/sqrt(x-1): x > 1
      Polynomial (no root/log/fraction)No restrictionx^2 + 3x: all real numbers

      The formula

      The exact formula this calculator uses — every variable in it is explained in the card below.

      The formula

      For f built on (a x + b): boundary x0 = -b/a. sqrt needs a x + b >= 0; ln needs a x + b > 0; 1/(a x + b) needs a x + b != 0 (flip the inequality when a < 0)

      Honest scoping + ideas enhancement: the domain of an arbitrary typed function needs a symbolic parser, so this tool does the three restriction families that cover most school and college questions — square root, logarithm and denominator — for the linear inside (a x + b), and it shows the inequality, the sign flip for negative a, and the resulting interval, not just a final answer.

      Worked examples

      Worked examples with the full working shown — try them in the calculator to check.

      Example 1

      Square root domain

      Find the domain of sqrt(2x - 6): a = 2, b = -6, mode sqrt

      CalculationSteps
      Restriction: 2x - 6 >= 0. Boundary x0 = 6/2 = 3. Since a is positive there is no flip, and the root allows the endpoint, so the domain is x >= 3.Domain [3, infinity), boundary value 3.

      Result

      Example 2

      Logarithm domain

      Find the domain of ln(x + 5): a = 1, b = 5, mode log

      CalculationSteps
      Restriction: x + 5 > 0 (strict, because log(0) is undefined). Boundary x0 = -5/1 = -5. Domain is x > -5.Domain (-5, infinity), boundary value -5.

      Result

      Example 3

      Rational domain with negative a

      Find the domain of 1/(-4x + 8): a = -4, b = 8, mode rational

      CalculationSteps
      Restriction: -4x + 8 != 0. Boundary x0 = -8 / -4 = 2. Only that single point is excluded.Domain: all real x except x = 2.

      Result

      How to use this calculator

      Step 1

      Choose the function form: square root, natural log, or 1 over the expression.

      Step 2

      Enter a, the coefficient of x, and b, the constant inside the function.

      Step 3

      Read the boundary value and the domain interval in the result card.

      Step 4

      Check the steps for the sign flip if a is negative — that is the step most often missed by hand.

      Step 5

      State the domain in interval notation, e.g. [3, infinity) for x >= 3.

      In short: The domain of a function is the complete set of input values for which the function is defined and returns a real number.

      Frequently asked questions

      What is the domain of a function?

      The domain is the set of all input (x) values for which the function produces a real output. Restrictions come from operations that are undefined for some inputs: even roots of negatives, logarithms of zero or negatives, and division by zero.

      What is the domain of sqrt(2x - 6)?

      The inside must satisfy 2x - 6 >= 0, so 2x >= 6 and x >= 3. In interval notation the domain is [3, infinity), and 3 is the boundary value this calculator returns.

      Why is the log domain strict (>) but the root domain not (>=)?

      sqrt(0) = 0 is perfectly defined, so zero is allowed inside a square root. But log(0) is undefined (no power of e gives 0), so the inside of a logarithm must be strictly greater than zero.

      Why does the inequality flip when a is negative?

      Dividing or multiplying an inequality by a negative number reverses its direction. For sqrt(-2x + 6): -2x + 6 >= 0 gives -2x >= -6, and dividing by -2 flips it to x <= 3.

      What is the domain of a plain polynomial like x^2 + 3x - 5?

      All real numbers, (-infinity, infinity). Polynomials contain no roots, logs or denominators, so nothing restricts x. This calculator covers the restricted families; if your function is a polynomial, that is the answer.

      About this calculator

      A domain function calculator finds every x value a function can legally accept. This one handles the three families that generate almost all textbook domain questions — a linear expression under a square root, inside a natural logarithm, or in a denominator — returning the boundary value where the restriction bites and the full domain interval built around it.

      Every domain restriction in school algebra comes from an operation that refuses some inputs. Square roots of negative numbers are not real, so the radicand must be non-negative. Logarithms are only defined for positive arguments — log(0) and log of a negative do not exist in the reals. Division by zero is undefined, so any x that zeroes a denominator is excluded. Identify which of these your function contains and the domain problem reduces to one inequality or one equation.

      The boundary value x0 = -b/a is where the inside expression a x + b crosses zero, and the domain is always described relative to it. The subtle step is the sign of a: solving -2x + 6 >= 0 means subtracting 6 and then dividing by -2, and dividing an inequality by a negative flips >= into <=, giving x <= 3. Forgetting that flip is the single commonest domain error, which is why the calculator calls it out as its own step whenever a is negative.

      Endpoints decide whether brackets are round or square. A square-root boundary is included (sqrt(0) works), so x >= 3 is written [3, infinity). A log boundary is excluded, so x > 3 is (3, infinity). A rational function excludes a single point, written as (-infinity, 2) union (2, infinity) for 'all x except 2'. The value this tool returns is that boundary; the details line gives the interval in words so you can convert it to whichever notation your course uses.

      Use it for algebra homework on domain and range, for checking a domain before graphing or differentiating, or whenever a function contains a root, a log or a fraction and you need the excluded values before doing anything else with it.

      How to calculate it yourself

      Step 1

      Identify the restriction: root (inside >= 0), log (inside > 0) or denominator (inside != 0).

      Step 2

      Set the inside expression a x + b against that condition.

      Step 3

      Solve for the boundary: a x = -b, so x0 = -b / a.

      Step 4

      If a is negative and you solved an inequality, flip the inequality sign.

      Step 5

      Write the domain as all x on the allowed side of x0, with the endpoint included only for the square-root case.

      Real-life examples

      Setting up a physics formula

      A student models the period of a pendulum variant with a term sqrt(3t - 12) for time t in seconds and must state for which times the model is even defined.

      Restriction 3t - 12 >= 0 gives boundary t = 4, so the model only makes sense for t >= 4 seconds — before that the formula would need the root of a negative number, signalling the model's assumptions start at t = 4.

      Domain t >= 4 seconds, found before any graphing was attempted.

      A spreadsheet that keeps breaking

      An analyst's sheet computes ln(2x - 10) over a column of inputs and returns errors for the first several rows; she wants to know exactly which inputs are illegal.

      Restriction 2x - 10 > 0 gives boundary x = 5, so every input of 5 or below breaks the formula — exactly the early rows, whose values were 3, 4 and 5.

      Inputs must exceed 5; the 'broken' rows were a domain issue, not a data error.

      Ideas & use cases

      • Endpoint quiz: run the same a and b in all three modes and compare — the boundary never moves, only its inclusion does; that contrast fixes the >= versus > distinction in memory.
      • Flip hunting: choose a negative a in sqrt mode and follow the extra step; then solve by hand and check whether you remembered to reverse the inequality.
      • Build a combined problem: a function like 1/sqrt(x - 1) needs both the root rule and the denominator rule, so its domain is x > 1 — use this tool for each rule separately and combine them yourself.

      Limitations & sources

      • Covers functions whose restriction comes from a linear inside (a x + b) under a square root, a natural log, or in a denominator. Quadratic insides, combinations of restrictions, trigonometric and piecewise functions need the same rules applied step by step by hand or a symbolic solver.

      Sources: OpenStax College Algebra, 'Domain and Range' — restriction rules for radicals, logarithms and rational functions (openstax.org)

      Domain Function Calculator · TinyExe calculator suite Free to use · No sign-up · Instant results