Lesson 11 of 42 · Algebra

Expressing one quantity as a function of others

Turn a description into a formula in one variable, eliminate the extra unknowns with the constraints, state the domain, and rearrange formulas.

About 20 minutes

In this lesson

  • Translate a verbal or geometric situation into a formula for the requested quantity in terms of a chosen variable.
  • Use a constraint to eliminate a second variable, and state the domain the context allows.
  • Rearrange a formula to make another variable the subject, noting the values where it fails.

The idea

What the question is asking

A question of this type describes a situation and asks for one quantity as a function of another: "express the area as a function of the width", "write the profit in terms of the number of items sold". The answer is a formula with exactly one variable in it, the one named, plus fixed numbers. If your formula still contains a second letter, you are not finished.

A four-step method

  1. Name the variables. Write down what each letter means, with units: "xx = width in metres".
  2. Write the target quantity in whatever variables are natural: area =x⋅y= x \cdot y, profit == revenue −- cost.
  3. Use the constraint the problem gives (a fixed perimeter, a fixed total, a geometric relation) to write the extra variable in terms of the chosen one, and substitute.
  4. State the domain. Lengths are positive, counts are whole numbers, a square root needs a non-negative argument, and a denominator cannot be zero. The domain is part of the answer, and it often decides which option is right.

Common patterns

Situation Typical formula
Fixed charge plus a rate C(x)=F+rxC(x) = F + rx (a straight line)
Price falls as quantity rises revenue R(x)=x⋅p(x)R(x) = x \cdot p(x), often a quadratic
Profit P(x)=R(x)−C(x)P(x) = R(x) - C(x)
Rectangle with fixed perimeter 2s2s width xx, length s−xs - x, area x(s−x)x(s - x)
Rectangle with fixed area SS width xx, length Sx\frac{S}{x}, perimeter 2x+2Sx2x + \frac{2S}{x}
Right triangle with hypotenuse hh legs xx and h2−x2\sqrt{h^2 - x^2}
Time for a distance at a speed t=dvt = \frac{d}{v}

Two quantities are directly proportional when one is a fixed multiple of the other (y=kxy = kx), and inversely proportional when their product is fixed (y=kxy = \frac{k}{x}). Doubling a rectangle's width at fixed area halves its length: inverse proportion.

Units

Check that every term has the same unit before adding. A taxi fare with a per-kilometre rate cannot have the distance in metres, and a speed in kilometres per hour needs a time in hours: 20 minutes is 13\frac{1}{3} hour, not 0.20.2.

Rearranging a formula

Making another variable the subject is the same skill run backwards. Treat the other letters as fixed numbers and undo the operations in reverse order. When the variable you want appears in more than one place, collect all its terms on one side and factor it out:

y=3x+2x−1  ⇒  y(x−1)=3x+2  ⇒  xy−3x=y+2  ⇒  x(y−3)=y+2  ⇒  x=y+2y−3.y = \frac{3x + 2}{x - 1} \;\Rightarrow\; y(x - 1) = 3x + 2 \;\Rightarrow\; xy - 3x = y + 2 \;\Rightarrow\; x(y - 3) = y + 2 \;\Rightarrow\; x = \frac{y + 2}{y - 3}.

The new formula has its own restriction (y≠3y \ne 3), because you divided by y−3y - 3. Check the rearrangement with one number: x=2x = 2 gives y=8y = 8, and 8+28−3=2\frac{8 + 2}{8 - 3} = 2.

Why the check matters

Pick one simple value of the variable, compute the quantity directly from the story, and compare it with your formula. A wrong formula often differs from the right one by a factor of 2, a sign, or a missing term, and one substitution tells them apart.

Worked examples

Example 1: Area at a fixed perimeter

A rectangle has perimeter 40 cm. Express its area AA as a function of its width xx, and give the domain. Which width gives the largest area?

  1. The perimeter is 2x+2y=402x + 2y = 40, where yy is the length, so y=20−xy = 20 - x.

  2. Area: A=xy=x(20−x)=20x−x2A = xy = x(20 - x) = 20x - x^2.

  3. Domain: both sides must be positive, x>0x > 0 and 20−x>020 - x > 0, so 0<x<200 < x < 20.

  4. The parabola A=−x2+20xA = -x^2 + 20x opens downwards with roots 00 and 2020; its top is midway, at x=10x = 10, where A=100A = 100 (a square).

  5. Check with x=5x = 5: the length is 15, the perimeter 2(5+15)=402(5 + 15) = 40, and A=75=20(5)−25A = 75 = 20(5) - 25.

Answer

A(x)=x(20−x)A(x) = x(20 - x) for 0<x<200 < x < 20, largest at x=10x = 10 cm with A=100A = 100 cm². Writing the length as 40−x40 - x uses the whole perimeter for one width and one length, instead of half of it.

Example 2: A geometric constraint

A right triangle has hypotenuse 10. Express its area as a function of one leg xx.

  1. Call the other leg yy. By Pythagoras, x2+y2=100x^2 + y^2 = 100, so y=100−x2y = \sqrt{100 - x^2} (positive, as a length).

  2. The legs are perpendicular, so the area is half their product: A=12x100−x2A = \frac{1}{2}x\sqrt{100 - x^2}.

  3. Domain: x>0x > 0 and y>0y > 0, so 0<x<100 < x < 10.

  4. Check with x=6x = 6: y=64=8y = \sqrt{64} = 8 and A=12⋅6⋅8=24A = \frac{1}{2} \cdot 6 \cdot 8 = 24.

Answer

A(x)=x2100−x2A(x) = \frac{x}{2}\sqrt{100 - x^2} for 0<x<100 < x < 10. Writing y=10−xy = 10 - x is the trap: the legs do not add up to the hypotenuse.

Example 3: A linear cost and its inverse

A taxi charges €3.50 plus €1.20 per kilometre. Write the fare CC as a function of the distance dd in km, then express dd as a function of CC, and find the distance for a fare of €15.50.

  1. Fixed charge plus rate: C(d)=3.5+1.2dC(d) = 3.5 + 1.2d, for d≥0d \ge 0.

  2. Rearrange: C−3.5=1.2dC - 3.5 = 1.2d, so d=C−3.51.2d = \frac{C - 3.5}{1.2}, for C≥3.5C \ge 3.5.

  3. For C=15.5C = 15.5: d=121.2=10d = \frac{12}{1.2} = 10 km. Check: 3.5+1.2×10=15.53.5 + 1.2 \times 10 = 15.5.

Answer

C=3.5+1.2dC = 3.5 + 1.2d and d=C−3.51.2d = \frac{C - 3.5}{1.2}; a fare of €15.50 covers 10 km. Dividing the whole fare by the rate (15.51.2≈12.9\frac{15.5}{1.2} \approx 12.9 km) forgets the fixed charge.

Common traps

  • Leaving a second variable in the answer

    "Area as a function of xx" means no yy may remain. If a letter other than the named one is left, use the constraint to eliminate it.

  • Ignoring the domain

    A width cannot be negative and a leg cannot exceed the hypotenuse. A formula may be defined for more values than the situation allows; state the domain the situation gives.

  • Using the whole perimeter for one side

    With perimeter PP, width plus length is P2\frac{P}{2}, not PP. The same slip with a fixed area is forgetting to double the length when writing the perimeter.

  • Mixing units

    Convert before you build the formula: minutes to hours, metres to kilometres, cents to euros. A formula with mixed units is wrong even when its shape is right.

Check yourself

Answer each question before you open its answer.

Question 1: Perimeter at a fixed area

Algebra: expressing quantities

A rectangle has area 36. Which expression gives its perimeter PP as a function of its width ww (with w>0w > 0)?

  1. A.w+36ww + \frac{36}{w}
  2. B.2w+36w2w + \frac{36}{w}
  3. C.2w+72w2w + \frac{72}{w}
  4. D.2w+722w + 72
Show the answer

Answer: C. 2w+72w2w + \frac{72}{w}

Working

The length is 36w\frac{36}{w}, since width times length is 36. The perimeter is 2w+2⋅36w=2w+72w2w + 2 \cdot \frac{36}{w} = 2w + \frac{72}{w}. Check with w=4w = 4: the length is 9 and the perimeter is 2(4+9)=262(4 + 9) = 26, while 8+18=268 + 18 = 26.

Why the other options are wrong

  • A. This is width plus length, half the perimeter. The perimeter counts each side twice.
  • B. This doubles the width but not the length 36w\frac{36}{w}.
  • D. This takes the length as 36, the area, instead of 36w\frac{36}{w}.

What carries over

Use the constraint to write the second side in terms of the first, then build the target quantity.

Question 2: Profit as a function of quantity

Algebra: expressing quantities

A firm sells xx units at a price of 50−2x50 - 2x euros each. Its total cost of producing xx units is 10x+3010x + 30 euros. Which expression gives the profit as a function of xx?

  1. A.−2x2+40x−30-2x^2 + 40x - 30
  2. B.−2x2+40x+30-2x^2 + 40x + 30
  3. C.−2x2+60x−30-2x^2 + 60x - 30
  4. D.20−12x20 - 12x
Show the answer

Answer: A. −2x2+40x−30-2x^2 + 40x - 30

Working

Revenue is units times price: x(50−2x)=50x−2x2x(50 - 2x) = 50x - 2x^2. Profit is revenue minus cost: 50x−2x2−(10x+30)=−2x2+40x−3050x - 2x^2 - (10x + 30) = -2x^2 + 40x - 30. Check with x=5x = 5: the price is 40, revenue 200, cost 80, profit 120; the formula gives −50+200−30=120-50 + 200 - 30 = 120.

Why the other options are wrong

  • B. The fixed cost 30 has been added instead of subtracted: subtracting 10x+3010x + 30 subtracts both terms.
  • C. This adds the variable cost 10x10x to the revenue instead of subtracting it.
  • D. This subtracts the cost from the price of one unit, (50−2x)−(10x+30)(50 - 2x) - (10x + 30), without multiplying the price by the number of units sold.

What carries over

Revenue is quantity times price; profit is revenue minus the whole cost.

Question 3: Making x the subject

Algebra: expressing quantities

If y=3x+2x−1y = \frac{3x + 2}{x - 1} (with x≠1x \ne 1), which expression gives xx in terms of yy?

  1. A.y−13y+2\frac{y - 1}{3y + 2}
  2. B.y−2y−3\frac{y - 2}{y - 3}
  3. C.y+23−y\frac{y + 2}{3 - y}
  4. D.y+2y−3\frac{y + 2}{y - 3}
Show the answer

Answer: D. y+2y−3\frac{y + 2}{y - 3}

Working

Multiply by x−1x - 1: xy−y=3x+2xy - y = 3x + 2. Collect the xx terms: xy−3x=y+2xy - 3x = y + 2. Factor: x(y−3)=y+2x(y - 3) = y + 2, so x=y+2y−3x = \frac{y + 2}{y - 3} for y≠3y \ne 3. Check: x=2x = 2 gives y=81=8y = \frac{8}{1} = 8, and 8+28−3=2\frac{8 + 2}{8 - 3} = 2.

Why the other options are wrong

  • A. This turns the fraction upside down. Undoing a formula is not taking its reciprocal: with y=8y = 8 it gives 726\frac{7}{26}, not x=2x = 2.
  • B. The 2 changed sign when it moved across: from xy−y=3x+2xy - y = 3x + 2 the right side after collecting xx terms is y+2y + 2.
  • C. This collects the xx terms as 3x−xy3x - xy on one side without changing the sign of the other side. With y=8y = 8 it gives −2-2, not 22.

What carries over

When the variable appears twice, collect its terms on one side and factor it out; then check with one number.

Key points

  • A function of x has only x as a variable: use the constraint to eliminate every other unknown.

  • State the domain the situation allows: positive lengths, non-negative square-root arguments, non-zero denominators.

  • Revenue is quantity times price; profit is revenue minus all of the cost.

  • To rearrange, collect the wanted variable on one side, factor it out, divide, and check with one value.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Esercitati su questo argomento

Domande nuove su questa abilità, con spiegazioni svolte. L’esercitazione richiede un Single Exam Pass o Plus.