Turn an equation into a function when possible
Quick review (2 minutes)
Picture a bill with two amounts mixed together.
Choose the input and output. An explicit rule gives the output alone in terms of the input.
An implicit rule keeps them mixed in an equation. Function status requires exactly one output for each allowed input.
Name the input letter and the requested output letter.
Undo addition or subtraction around the output, doing the same operation to both sides.
Divide every remaining term by the output's nonzero coefficient.
For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
Write the output alone as f(input) when possible, and check a pair in the equation you started with.
If the equation stays mixed, remember that an awkward formula alone does not disprove a function.
Write x − 64 = 0 as y = f(x). Then find y when x = −8.
y = f(x) =
At x = −8, y = −.
Discarding the negative square-root solution when the original equation permits it. A root expression chooses one branch; a squared equation may include both.
Name the input letter and the requested output letter.
Undo addition or subtraction around the output, doing the same operation to both sides.
Divide every remaining term by the output's nonzero coefficient.
For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
Write the output alone as f(input) when possible, and check a pair in the equation you started with.
If the equation stays mixed, remember that an awkward formula alone does not disprove a function.
Relation
A set of ordered pairs that connects inputs with outputs. It can have conflicting outputs and need not be a function.
Variable
A letter that represents a number or another chosen value.
Function
A relation assigning exactly one output to every input in its domain.
Input
A value chosen for a function. The definition decides which values are allowed.
Output
The result a function assigns to a particular input.
Domain
The set of all inputs accepted by the defined relation or function.
Equation
A statement that two expressions are equal, shown with an equals sign.
Formula
A mathematical instruction connecting quantities, often written as an equation.
Solve
Find every allowed input that satisfies a stated equation or produces a specified output.
Algebraic form
A formula giving the output directly in terms of the input. Here it is also called an explicit rule or explicit formula.
Implicit rule
An equation relating input and output without isolating the output. It defines a function only if each accepted input determines one output.
Graph
A picture of ordered pairs at their coordinate locations. A graph of a function contains every pair (x, f(x)) for its allowed inputs.
Reciprocal
One divided by a nonzero number. A number times its reciprocal equals 1.
Square root
The nonnegative number whose square equals the given nonnegative input.
Principal square root
The nonnegative root chosen by the symbol √. Solving a squared equation can require both signs.
Cube root
The unique real number whose cube equals the input.
Factor
A quantity multiplied by another quantity in a product.
Numerator
The top of a fraction, showing the quantity being divided.
Denominator
The bottom of a fraction, showing the divisor or number of equal pieces in one whole. It cannot be zero.
Power
A quantity written with a base and exponent. Positive whole-number exponents count multiplied copies; zero and negative exponents extend that pattern.
Interval notation
A way to write stretches of the number line. Brackets include finite endpoints; parentheses exclude them or accompany infinity.
Even
An integer divisible by 2 into an integer result.
Coefficient
A number multiplying a variable term.
Parabola
The graph shape of a quadratic function, appearing as a rounded U or an upside-down U when y depends quadratically on x.
Nonnegative
Zero or positive; written x ≥ 0.
Circle
The set of points at one fixed positive distance from a center.
Exponent
The raised number telling how many copies of a base are multiplied for a positive integer power.
A symbol packing both a positive and a negative choice into one line. The choices differ unless the quantity is zero.
Difference
The result of a subtraction. For a change, subtract the old value from the new value.
Polynomial
A sum of constant multiples of whole-number powers of a variable. Its variable is not inside a root or denominator.
Term
One added or subtracted piece of an expression. Keep its sign with that piece.
1 In plain words
Picture a bill with two amounts mixed together. You know one amount and want the other. In 2n + 6p = 12, n is the input you choose, and p is the output you want. Writing p = f(n) means get p alone on the left, with only n on the right. First remove 2n from the total, then divide the remainder into six equal groups. A formula that gives the output directly is an explicit rule. A mixed equation is an implicit rule. Either one represents a function only when each allowed input has exactly one output.
2 Picture it
Isolate p: p = 2 −
At x = 0: y = 1 or y = −1
A cube root gives one real output
One output for each allowed input
Reminder
Reminder: Balance operations, Reducing fractions, Solving a squared equation, Interval notation
- Balance operations. Subtracting 2n from both sides of 2n + 6p = 12 gives 6p = 12 − 2n.
- Reducing fractions. = because the common nonzero factor 2 cancels.
- Solving a squared equation. = 1 gives y = 1 and y = −1, while alone means 1.
- Interval notation. [−1, 1] includes both endpoints; here −1 and 1 are allowed circle inputs.
3 Why
Doing the same operation to both sides keeps the equality true. After n is chosen, 2n is a known amount. Subtracting it leaves 6p, and dividing every remaining term by 6 leaves p alone. That produces a direct rule. A squared output needs extra care: = 1 allows y = 1 and y = −1. Those are two different outputs at one input. A cubed output instead has one real cube root, including for a negative input.
4 The rule
Choose the input and output.
An explicit rule gives the output alone in terms of the input.
An implicit rule keeps them mixed in an equation. Function status requires exactly one output for each allowed input.
The same idea, five ways
p is a function of n
Choose n, and the rule determines one p.
- 2n + 6p = 12
- (n, p)
A bill lets you recover one remaining amount after the known share is removed.
The same idea, other ways
In n + p = 8, choose input n = 3. The known share is 3, so the other share must be p = 5. Writing p = 8 − n does this same subtraction for every n.
At x = 0, + = 1 becomes = 1. Both 1 and −1 work. The full circle therefore fails the one-output promise, even though choosing only its top half would give one output per input.
Part 1: An explicit linear formula
Picture a total made of two contributions. If you choose n, the amount 2n is already known, and the remaining total tells you 6p. Remove the known contribution, then divide the remainder into six equal groups to find p. That is what isolating the output means: p stands alone on one side of the equation. The other side uses the input n, so the formula gives the output directly without needing to solve a new equation each time.
- With n as input and p as output, 2n + 6p = 12 becomes p = = 2 − n.
- Write p = f(n) = 2 − n. This is an explicit rule, also called an explicit formula. It gives the function in algebraic form.
- There are no root or variable-denominator restrictions here, so every real n is allowed.
Reminder
Reminder: Dividing a sum, Fraction multiplication
- Dividing a sum. = − ; every numerator term is divided by 6.
- Fraction multiplication.
The same idea, five ways
p equals f of n
p is the output determined by input n.
- 2n + 6p = 12
Remove the known share from a bill, then split what remains into six equal shares.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Name the input and output before rearranging. Put the requested output alone on the left in the final answer.
- After n is chosen, subtract its contribution 2n from 12. Six equal shares make 6p, so dividing that remainder by 6 finds one p.
- equals − . The first fraction is 2; canceling the common factor 2 in the second gives . Therefore p = 2 − n.
- As an everyday comparison: Picture a total made of two contributions. If you choose n, the amount 2n is already known, and the remaining total tells you 6p. Remove the known contribution, then divide the remainder into six equal groups to find p. That is what isolating the output means: p stands alone on one side of the equation. The other side uses the input n, so the formula gives the output directly without needing to solve a new equation each time.
- With the worked values: For n = 0 and p = 2, the original left side is 0 + 12 = 12. For n = and p = , it is 3 + 9 = 12. Both pairs satisfy the original equation.
Part 2: A circle gives two heights at one input
Imagine a round hoop centered at the crossing of two number lines. Fix a position left or right, and there may be two points on the hoop, one above and one below. The equation + = 1 describes this circle. At many inputs x, its two output heights y are opposites. The square root symbol selects a nonnegative number, but solving a squared equation must consider both signs. Choosing only the upper half makes a different relation with one output for each allowed input.
- Subtract to get = 1 − . The symbol ± is read plus or minus: y = ± includes both signs of the root. At x = 0, it gives y = 1 or y = −1.
- At x = 0, the outputs 1 and −1 are different, so the whole circle does not define y as a function of x.
- At x = −1 or x = 1, both signs give 0. One output at those two inputs does not repair the failures elsewhere.
- The upper branch y = alone is a function with domain [−1, 1]. The lower branch y = − alone is also a function.
- Only −1 ≤ x ≤ 1 can work. If x is farther than 1 from zero, exceeds 1 and = 1 − would be negative. For example, x = 2 gives = −3, and no real square is negative.
Reminder
Reminder: Principal square root, Real square roots
- Principal square root. = 2, while solving = 4 gives y = 2 and y = −2.
- Real square roots. A real square is nonnegative, so 1 − must be at least 0 for a real circle height.
The same idea, five ways
y equals plus or minus the square root of the whole difference one minus x squared
The full circle can have a top height and a bottom height at the same input.
- (0, 1) and (0, −1)
One left-right position on a hoop can have two heights.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Distinguish evaluating a square root from solving a squared equation. Look for two different outputs, not only a ± symbol.
- At the center's horizontal position x = 0, the hoop has a top point and a bottom point. Their heights are 1 and −1. The one-output definition fails at this single input, which is enough to reject the whole circle as a function in this direction.
- Both and (−1 equal 1. The equation = 1 cannot select between them. The expression , in contrast, names the nonnegative root 1 by convention. It selects one branch rather than all circle points.
- As an everyday comparison: Imagine a round hoop centered at the crossing of two number lines. Fix a position left or right, and there may be two points on the hoop, one above and one below. The equation + = 1 describes this circle. At many inputs x, its two output heights y are opposites. The square root symbol selects a nonnegative number, but solving a squared equation must consider both signs. Choosing only the upper half makes a different relation with one output for each allowed input.
- With the worked values: For both fractional outputs, + = + = 1. For both center outputs, + (±1 = 1. The original equation accepts both signs, so the second output is real rather than an algebra error.
Part 3: A cube root isolates a cubed output
Imagine knowing how many blocks fill a cube and working backward to its side. A cube root undoes three copies multiplied together. For x − 64 = 0, choose x as the input and y as the output. First move 64 to the other side, then divide by 64. Taking the cube root gives one y, including when x is negative. A cube root has no plus-or-minus choice because opposite numbers have opposite cubes.
- x − 64 = 0 gives 64 = x, then = .
- y = ∛() = , because = 64. Cubing gives .
- Every real x has one real cube root, so this defines y = f(x) = .
- For comparison, x − = 0 gives = x. At x = 9 it permits y = 3 and y = −3, so that squared relation is not a function of x.
Reminder
Reminder: Signed cubes
- Signed cubes.
The same idea, five ways
y equals the cube root of x, divided by four
Each real x gives one real output y.
Recover a cube's side by undoing three-factor multiplication.
Worked example
Isolate a cubed output and check a negative input
Write x − 64 = 0 as y = f(x). Then find y when x = −8.
What it asks. Find a direct rule for output y, then use it at one negative input.
Show the steps and the answer
The plan. Move the cubed term, divide by 64, take its single cube root, and check in the first equation.
x = 64, so = .
- Plan. Move the cubed term, divide by 64, take its single cube root, and check in the first equation.
- Add 64 to both sides.
- 64 is , so its cube root is 4.
- Cube roots of negative inputs are negative.
- , so .Adding 64 isolates the output term, then equal division by 64 isolates the cube.
- .A cube root undoes cubing, and = 64.
- .(−2 = −8, then reduce the fraction.
- .Substitution confirms that the isolated rule satisfies the original equation.
- At x = −8, y = −.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- A square can lose the sign; a cube keeps it. Check a proposed cube root by multiplying three copies.
- For x = 8, the positive output is . For x = −8, the negative output is −.
- As an everyday comparison: Imagine knowing how many blocks fill a cube and working backward to its side. A cube root undoes three copies multiplied together. For x − 64 = 0, choose x as the input and y as the output. First move 64 to the other side, then divide by 64. Taking the cube root gives one y, including when x is negative. A cube root has no plus-or-minus choice because opposite numbers have opposite cubes.
- With the worked values: Cube the output: (− = −. Multiplying by 64 gives −8, exactly the chosen input.
Part 4: Good to know: an implicit rule
A recipe may identify one result while leaving the ingredients mixed together. In x = y + , y is mixed into both pieces on the right, so the output is not isolated. Read this as an example of an implicit rule, not a formula you need to memorize or learn to solve here.
- The symbol is a power with base 2. At the values used here, = 4 and 2¹ = 2. Decreasing the exponent by one divides the total by 2: 4 ÷ 2 = 2, then 2 ÷ 2 = 1. Continuing that same pattern gives 2⁰ = 1. Thus the correct check 2 ÷ 2 = = 2⁰ = 1 follows the descending pattern rather than requiring a new exponent rule. More generally, a nonzero number to power 0 is 1; descending one step from its first power divides it by itself.
- A negative exponent means a reciprocal, not a negative result: = and = . Multiplying by 2 once moves to , then to 1, then to 2. This extends the same doubling pattern to negative exponents.
- If y = 0, x = 0 + 1 = 1. If y = 1, x = 1 + 2 = 3. If y = 2, x = 2 + 4 = 6.
- As y grows, both y and grow, so their total cannot give the same x twice. This proves at most one y for a given x. There are also no gaps in the totals: both pieces change without jumping over any in-between value as y changes. Far to the left, shrinks toward zero while y becomes as negative as needed; far to the right, y and grow without bound. The totals therefore pass through every real x. Existence, meaning an answer is reached, together with uniqueness, meaning it is the only answer, gives exactly one y for each x. The algebra taught here does not provide a short formula with y alone.
- You can have a function without having its output written as an explicit formula. The one-output promise decides.
The same idea, five ways
x equals y plus two to the power y
The equation identifies y without writing a direct formula for it.
- (1, 0), (3, 1), (6, 2)
A clue can identify one answer without handing you a finished recipe.
The output y is not isolated
One output per input still matters
Worked example
See three outputs of an implicit rule
For x = y + , use y = 0, 1 and 2 to find three (x, y) pairs.
What it asks. Verify three pairs rather than learn to solve the equation for arbitrary inputs.
Show the steps and the answer
The plan. Use the three power values stated above, add y, and place input x first in each pair.
At y = 0, x = 0 + 1 = 1, giving (1, 0).
At y = 1, x = 1 + 2 = 3, giving (3, 1).
At y = 2, x = 2 + 4 = 6, giving (6, 2).
- Plan. Use the three power values stated above, add y, and place input x first in each pair.
- 2⁰ = 1, 2¹ = 2, and = 4.
- The requested pair is (x, y), even though you calculate x from y here.
- At , giving (1, 0).Use 2⁰ = 1 and put the input x first.
- At , giving (3, 1).Use 2¹ = 2.
- At , giving (6, 2).Use = 4.
- (1, 0)
- (3, 1)
- (6, 2)
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Implicit means implied by an equation. Explicit means stated directly.
- Keep the one-output definition in view; you do not need to memorize this equation.
- As an everyday comparison: A recipe may identify one result while leaving the ingredients mixed together. In x = y + , y is mixed into both pieces on the right, so the output is not isolated. Read this as an example of an implicit rule, not a formula you need to memorize or learn to solve here.
- With the worked values: Substituting the three pairs gives 1 = 0 + 1, 3 = 1 + 2, and 6 = 2 + 4. Samples illustrate the rule; the growing-total explanation supplies the reason it does not repeat an input x.
Part 5: Optional: why a mixed polynomial equation still has one output
An equation can identify one answer without handing you a direct recipe. In + y = x, choose input x and look for the output y that makes the total match. As y grows, its cube grows and y itself grows, so their sum cannot give the same x twice. The examples below first show exact matches. The final comparison is an optional way to locate an unfamiliar output between two tested values. You can read it after the main function skills; it is a further explanation, not a formula to memorize.
- The equation + y = x defines y as a function of x even while y remains mixed into the equation.
- Cubing keeps the order for all real inputs. Larger positive inputs have larger positive cubes. Among negative inputs, the one farther left has a larger positive magnitude; cubing that magnitude and restoring the minus makes a smaller cube. A negative cube, zero and a positive cube cannot agree.
- Adding y to its cube keeps the total increasing: a larger y raises both pieces, so two different y values cannot give the same total x.
- There are no gaps in the totals: addition and multiplication vary without jumps, and the sum goes indefinitely negative and indefinitely positive. Every real x has a matching y.
- This is an implicit description. A function does not have to arrive with a short explicit formula using the algebra skills taught here.
- As y grows, grows and y grows. Adding two growing quantities keeps the total growing. A fixed total x can therefore be reached only once.
- For input x = 1, y = produces total , which is too small, while y = 1 produces 2, which is too large. The matching y lies between them. You can keep testing values inside the interval to locate it more closely without isolating y first.
Reminder
Reminder: Signed cubes, Adding fractions
- Signed cubes.
- Adding fractions.
The same idea, five ways
y cubed plus y equals x
The input x identifies one output y even though y is not isolated.
- f(2) = 1
A growing total passes each amount once.
Worked example
Exact outputs and a bracket for an unfamiliar input
Define f(x) to be the y satisfying + y = x. Find f(2) and f(−10). Then locate f(1) between and 1. Locate means show that the answer lies between those two numbers, not give a rounded decimal.
What it asks. Verify two exact outputs. Optionally, place a third output between two trial values.
Show the steps and the answer
The plan. Substitute the basic proposed outputs first. Then compare totals at y = and y = 1 with target input 1.
- Plan. Substitute the basic proposed outputs first. Then compare totals at y = and y = 1 with target input 1.
- The equation is + y = x, with x as input and y as output.
- At y = , the total is + = , below 1.
- At y = 1, the total is 2, above 1. Increasing totals put the matching y between them.
- For x = 2, test y = 1: .A matching total makes the proposed output satisfy the equation.
- .The total + y increases with y, so no other y can give total 2.
- For x = −10, test y = −2: .Cubing multiplies three copies of the signed input, and a negative cube is negative.
- .The matching total is unique for the same increasing-total reason.
- At .Cube the fraction, then add with a common denominator to see that this candidate's total is too small.
- At .This candidate's total is too large.
- .The total increases without gaps, so it reaches 1 exactly once between these two tested outputs.
- f(2) = 1
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Separate two questions: does an output exist for every allowed input, and can there be more than one output? An explicit formula is one way to answer them, not a requirement.
- As an everyday comparison: An equation can identify one answer without handing you a direct recipe. In + y = x, choose input x and look for the output y that makes the total match. As y grows, its cube grows and y itself grows, so their sum cannot give the same x twice. The examples below first show exact matches. The final comparison is an optional way to locate an unfamiliar output between two tested values. You can read it after the main function skills; it is a further explanation, not a formula to memorize.
- With the worked values: Substitution gave totals 2 and −10 for the two exact outputs. For the interval, the endpoint totals and 2 sit on opposite sides of 1; increasing totals ensure both a matching value and no second matching value.
5 How
- Name the input letter and the requested output letter.
- Undo addition or subtraction around the output, doing the same operation to both sides.
- Divide every remaining term by the output's nonzero coefficient.
- For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
- Write the output alone as f(input) when possible, and check a pair in the equation you started with.
- If the equation stays mixed, remember that an awkward formula alone does not disprove a function.
Get the requested output alone
- Name the input letter and the requested output letter.
- Undo addition or subtraction around the output, doing the same operation to both sides.
- Divide every remaining term by the output's nonzero coefficient.
- For a cubed output, take its unique real cube root. For a squared output, keep both signs and test an input where they differ.
- Write the output alone as f(input) when possible, and check a pair in the equation you started with.
- If the equation stays mixed, remember that an awkward formula alone does not disprove a function.
6 Worked example
Worked example
Solving - 4y = 12 for y, then for x
The equation - 4y = 12 relates two real variables, x and y. The figure shows its graph, a parabola whose lowest point is (0, -3) and which passes through the points (-4, 1), (2, -2) and (4, 1).
(a) Use x as the input and y as the output. Solve the equation for y, write the result as f(x), and check one pair in the original equation.
(b) Now use y as the input and x as the output. Solve the equation for x and decide whether x is a function of y. Use the points (-4, 1) and (4, 1) to support your answer.
Show the steps and the answer
- Part (a). Name the input and the output. The input is x and the requested output is y. The rule is implicit, because x and y are mixed on the same side.The question asks for y in terms of x, so y must end up alone. Isolating it turns the implicit rule into an explicit one.
- Undo the addition around the output term. The left side is added to the output term , so subtract from both sides. gives .Doing the same operation to both sides keeps the equation true, and it leaves only the output term on the left.
- Divide every remaining term by the coefficient . , so .The coefficient of y is -4. It is not zero, so dividing by it is allowed. Both the 12 and the must be divided, and dividing by a negative number changes the sign of each term.
- Check the power on the output. y appears only to the first power and is not squared or cubed, so no root step is needed.Squaring x, dividing by 4 and subtracting 3 each produce exactly one number, so every real x gives exactly one y.
- Write the output alone as a function. , for every real x. Check the pair . , and in the starting equation .An explicit rule with exactly one output for each allowed input is a function, so y is a function of x. Checking (2, -2) in the original equation, not in our own rearrangement, catches any sign or division slip.
- Part (b). Swap the roles. The input is now y and the requested output is x.The same equation can be read in either direction. Whether it gives a function depends on which letter is the output.
- Undo the subtraction around the output term. 4y is subtracted from , so add 4y to both sides. gives . The coefficient of is 1, so dividing by it changes nothing.Adding 4y to both sides keeps the equation balanced and leaves the output term alone on the left. Dividing every term by 1 leaves each term unchanged.
- The output is squared, so keep both signs. or , which can be written . Real outputs need , so the allowed inputs are .A number and its opposite have the same square, so both signs satisfy = 4y + 12. Keeping only one sign would quietly drop solutions of the original equation.
- Test an input where the two signs differ. will not work, because and both signs give . Use instead. , so or .The two formulas give different outputs only when the number under the root is positive, so the test input must make 4y + 12 greater than 0.
- Check both pairs in the starting equation. and , so both (4, 1) and are genuine solutions.The test only counts if both outputs really satisfy the original equation, not just the rearranged one.
- Conclude. The allowed input has two outputs, and , so x is not a function of y and no single f(y) gives x. On the graph, the horizontal line meets the parabola at and (4, 1).A function needs exactly one output for each allowed input, so one input with two checked outputs is enough to fail. The verdict rests on these two outputs, not on the two-sign formula merely looking awkward.
Work to write
- Part (a): input x, output y
- f(x) = - 3, for every real x
- Check (2, -2): - 4(-2) = 4 + 8 = 12
- Part (b): input y, output x, so = 4y + 12
- x = or x = -
- y = 1: x = 4 or x = -4, and - 4(1) = 12, (-4 - 4(1) = 12
- y = 1 has two outputs, so x is not a function of y
Ladder: from easy to exam-hard
Try each rung before you open its steps.
Rung 2 of 4
Remove several copies of the input
Write 3n + p = 11 as p = f(n).
What it asks. Isolate p after removing three copies of n.
Show the steps and the answer
The plan. Subtract the entire known contribution 3n.
3n + p − 3n = 11 − 3n, so p = 11 − 3n.
- Plan. Subtract the entire known contribution 3n.
- 3n is one complete term.
- Subtract 3n from each side.
- , so .Subtracting the same known contribution preserves equality and leaves p alone.
Rung 3 of 4
Divide every remaining term
Write 5n + 2p = 14 as p = f(n).
What it asks. Find one p after removing the input's share and splitting the remainder into two.
Show the steps and the answer
The plan. Subtract 5n, then divide both numerator terms by 2.
- Plan. Subtract 5n, then divide both numerator terms by 2.
- First leave 2p on its own.
- .Equal subtraction isolates the output term.
- .Equal division by 2 reaches every term, including 5n.
Rung 4 of 4
Divide by a negative coefficient
Write 6n − 3p = 18 as p = f(n).
What it asks. Isolate p when its multiplier is negative.
Show the steps and the answer
The plan. Subtract 6n, then divide every term by −3.
- Plan. Subtract 6n, then divide every term by −3.
- .Subtracting 6n isolates the output term.
- .Division by −3 changes the sign of both numerator terms.
Counterexamples
What it is not, and the tempting wrong moves.
Tips and tricks
- Choose and label the direction before manipulating the equation.
- An explicit formula makes the output visible. A mixed equation can also give one output, as the short implicit-rule note explains.
- One input with two different outputs is enough to disprove a function. One input with one output is not enough to prove the whole relation is a function.
7 The trap
Discarding the negative square-root solution when the original equation permits it. A root expression chooses one branch; a squared equation may include both.
Comes back in
Problems marked OpenStax come from Precalculus 2e by Jay Abramson, published by OpenStax, under the CC BY-NC-SA 4.0 licence. Access for free at https://openstax.org/books/precalculus-2e/pages/1-introduction-to-functions.