A21 of 29
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A2 · Lesson 1 · Functions and their graphs

One quantity that depends on another

A capacitor's voltage depends on time. A filter's gain depends on frequency. The current through an LED depends on the voltage across it. Most of electrical engineering is one quantity depending on another, drawn as a graph. What can you read off a graph at a glance, and what does it take to answer a question like "when does the voltage reach 1 V?"

Play

  • The curve is f(x)=x3−3x. Move the x slider: the dot sits at the point (x,f(x)), and its height is the output.
  • Move the c slider to raise and lower the dashed line y=c. Every place it meets the curve is an x where f(x)=c.
  • Find a value of c where the line meets the curve three times, and one where it meets it only once.

Predict

How many values of x make x3−3x=1?

Name it

A function gives one output for each input

A function is a rule that takes an input and gives back exactly one output. Writing f(x)=x3−3x names the rule f, the input x and the output f(x), read "f of x". In electrical engineering the names usually say what the quantities are: v(t) is a voltage at time t, i(v) a current at voltage v, H(f) a gain at frequency f.

The graph of a function is every point (x,f(x)), so:

  • Evaluating f(a) means going to x=a and reading the height of the curve.
  • Solving f(x)=c means drawing the level y=c and finding where it meets the curve. There may be no solutions, one or several.
  • Zeros (or roots) are where the curve crosses the horizontal axis, the solutions of f(x)=0. Here they are x=0 and x=±3.
  • Where the curve climbs to the right, the function is increasing; where it falls, decreasing. Where it turns, it has a local maximum or minimum, like f(−1)=2 and f(1)=−2 here.

Because a function gives only one output for each input, any vertical line meets its graph at most once. A circle fails that test, so y isn't a function of x on a circle, though each half of it is.

The domain is the set of inputs the rule accepts, and the range is the set of outputs it can give. x accepts only x≥0 and gives only outputs ≥0. A function with a physical meaning often has a narrower domain than the formula: time after a switch closes starts at 0.

Functions can be chained: f(g(x)) means apply g first, then feed its output into f. With f(x)=2x+1 and g(x)=x2, f(g(3))=f(9)=19, while g(f(3))=g(7)=49. The order matters.

The average rate of change between two inputs is how much the output changed divided by how much the input changed:

f(b)−f(a)b−a

It's the slope of the straight line joining the two points on the graph, and it's where calculus starts.

Worked example

For f(x)=x3−3x, find f(2), then every x with f(x)=2.

Show the solution
  1. Evaluate f(2). f(2)=8−6=2 so x=2 is one solution of x3−3x=2.
  2. Rearrange. x3−3x−2=0
  3. Factor out the known root. Knowing the root x=2 gives the factor (x−2): x3−3x−2=(x−2)(x2+2x+1)=(x−2)(x+1)2 so the solutions are x=2 and x=−1.
  4. Check on the graph. The level y=2 crosses the curve at x=2 and just touches it at its local maximum, (−1,2).

Answer f(2)=2, and f(x)=2 at x=2 and at x=−1.

Worked example

A Pt100 temperature sensor has resistance R(T)=100(1+0.00385T) Ω, with T in °C. An oven warms as T(t)=20+3t, with t in minutes. What does the sensor read after 10 minutes?

Show the solution
  1. Spot the composition. This is R(T(t)): find the temperature first, then the resistance.
  2. Temperature after 10 minutes. T(10)=20+30=50°C
  3. Resistance at 50 °C. R(50)=100(1+0.1925)=119.25Ω
  4. Check with a single function of time. R(T(t))=100(1+0.00385(20+3t))=107.7+1.155tΩ which also gives 119.25 Ω at t=10.

Answer after 10 minutes the oven is at 50 °C, and the sensor reads 119.25 Ω.

Worked example

A temperature sensor puts out V(T)=0.5+0.01T volts, with T in °C. A 12-bit converter turns a voltage into a code N(V)=4095V/3.3, rounded. What code does 25 °C give, and what temperature does code 2000 mean?

Show the solution
  1. Voltage at 25 °C. The code is the composition N(V(T)), so find the voltage first: V=0.5+0.25=0.75V
  2. Code for that voltage. N=4095×0.753.3=930.7 which rounds to 931.
  3. Undo the converter. Going backward, code 2000 means V=2000×3.34095=1.612V
  4. Undo the sensor. 0.5+0.01T=1.612 gives T=111.2 °C. Each function is undone in turn, the last one first.

Answer 25 °C gives code 931, and code 2000 means 111.2 °C.

Check

f(x)=3x2−1. What is f(2)?

Check

f(x)=3x+1. For which x is f(x)=24?

Check

f(x)=2x+1 and g(x)=x2. Write f(g(x)).

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Which of these is y as a function of x?

Check

For f(x)=x3−3x, what is the average rate of change from x=−1 to x=3?

Check

Let f(x)=1x2+2 and g(x)=x−2.

(a)

What is f(g(5))?

(b)

What is g(f(5))?

Check

With f(x)=ax+b and g(x)=x2, build both compositions.

Step 1

Write f(g(x)).

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Explain what the graph of a function shows, and how you'd use it to solve f(x)=5.

Practice

Keep practicing

11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.