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 . Move the x slider: the dot sits at the point , and its height is the output.
- Move the c slider to raise and lower the dashed line . Every place it meets the curve is an x where .
- 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 ?
Three. Set c to 1 and the dashed line crosses the curve three times: once near , once near and once near . The curve rises, turns down at , turns up again at , and that switchback lets a single level be reached three times. Above or below the line misses both turns and meets the curve only once.
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 names the rule , the input and the output , read "f of x". In electrical engineering the names usually say what the quantities are: is a voltage at time , a current at voltage , a gain at frequency .
The graph of a function is every point , so:
- Evaluating means going to and reading the height of the curve.
- Solving means drawing the level 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 . Here they are and .
- 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 and 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 isn't a function of 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. accepts only and gives only outputs . 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: means apply first, then feed its output into . With and , , while . The order matters.
The average rate of change between two inputs is how much the output changed divided by how much the input changed:
It's the slope of the straight line joining the two points on the graph, and it's where calculus starts.
Worked example
For , find , then every with .
Show the solution
- Evaluate f(2). so is one solution of .
- Rearrange.
- Factor out the known root. Knowing the root gives the factor : so the solutions are and .
- Check on the graph. The level crosses the curve at and just touches it at its local maximum, .
Answer , and at and at .
Worked example
A Pt100 temperature sensor has resistance Ω, with in °C. An oven warms as , with in minutes. What does the sensor read after 10 minutes?
Show the solution
- Spot the composition. This is : find the temperature first, then the resistance.
- Temperature after 10 minutes.
- Resistance at 50 °C.
- Check with a single function of time. which also gives 119.25 Ω at .
Answer after 10 minutes the oven is at 50 °C, and the sensor reads 119.25 Ω.
Worked example
A temperature sensor puts out volts, with in °C. A 12-bit converter turns a voltage into a code , rounded. What code does 25 °C give, and what temperature does code 2000 mean?
Show the solution
- Voltage at 25 °C. The code is the composition , so find the voltage first:
- Code for that voltage. which rounds to 931.
- Undo the converter. Going backward, code 2000 means
- Undo the sensor. gives °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
. What is ?
Check
. For which is ?
Check
and . Write .
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 as a function of ?
Check
For , what is the average rate of change from to ?
Check
Let and .
(a)
What is ?
(b)
What is ?
Check
With and , build both compositions.
Step 1
Write .
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°.
Step 2
Write .
Step 3
Multiply out .
Explain why
Explain what the graph of a function shows, and how you'd use it to solve .
The graph is every point whose height is the function's output at that input, so the curve's height above any x is . To solve , draw the horizontal line at height 5 and find where it meets the curve. Each meeting point is an x whose output is 5. There can be none, one or several, depending on how the curve rises and falls.
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.