Graphs
YouTube lecture recording from October 2020
The following YouTube video was recorded for the 2020 iteration of the course.
The material is still very similar:
Basics
Terminology:
- or is the dependent variable, sometimes called the ordinate marked on the vertical axis
- or is the independent variable, sometimes called the abscissa marked on the horizontal axis
- The dependent variable is said to be graphed against the independent variable
Essential Features:
- Title
- Axis labels (and units if appropriate)
Equation of a straight line
Defined by a gradient, , and a -axis intercept, :
Interpretation:
- The intercept of this line on the axis is given by , since at ,
- The gradient of this line (also called its "slope") is given by ("change in divided by change in ")
- The intercept of this line on the axis is given by , since at we must have
Graphs of Polynomials
An expression involving higher powers of is called a polynomial in .
Example
In general
The graph of a polynomial of degree has at most bends in it.
Transforming from non-linear to linear
If we wish to test visually whether some data fit a particular relationship, we can transform the data to plot something which should be linear if the relationship holds.
e.g. Test for parabolic shape for data in : i.e.
- We can plot against where we let and .
First plot the original data
There's a definite curve, and we may suspect the trend is quadratic
Now plot the data nonlinearly
If the parabolic relationship holds, plotting against should result in a straight line.
Calculate the gradient and the intercept
We next add a trendline through these points which we can use to determine the gradient and intercept.
- We find lie along a straight line with slope 5 and Y-intercept 87.
- This means that
- So, and can be modelled by the polynomial equation .
Example from biosciences
The rate at which a given enzyme can catalyse a reaction can be dependent upon the substrate concentration:
where is the rate of the reaction, is the substrate concentration and
and are constants.
- We can derive a straight line graph from the above formula by plotting against
- It will have gradient and ordinate intercept
First, plot the original data which is observations of given varying :
Now plot the data nonlinearly
If the hypothesised relationship holds, plotting against should result in a straight line.
Calculate the gradient and the intercept
We next add a trendline through these points which we can use to determine the gradient and intercept.
- We find lie along a straight line with slope 3 and Y-intercept 5.
- This means that
- So, and can be modelled by the equation .
Introductory problems
Introductory problems 1
Sketch the following graphs.
First, use pen & paper, then use Python to check your answers.
The notation after each equation indicates the range of values that can take.
# hint import numpy as np from matplotlib import pyplot as plt x = np.linspace(0, 10, 100) y = 3 * x + 5 plt.plot(x, y)
Introductory problems 2
For which values of are the following functions positive? Negative? Zero?
Main problems
Text relevant to these problems: Croft and Davison, 5 Edition, Chapters 17 & 18.
Main problems 1
The Lennard-Jones potential energy between two non-polar atoms may be given by the equation:
where and are positive constants, is the potential energy, measured in Joules, and is the internuclear distance measured in .
- For which values of is positive? Negative? Zero?
- Sketch a graph (on paper) showing the potential energy between the two atoms as a function of given that and .
- What is the potential energy between the two atoms at infinite separation?
- What would happen to the two atoms if they were brought very close together?
- What is the physical interpretation of the sign of , and of its slope?
- What are the dimensions ([Length], [Mass], [Time]) and units of the constants and ?
- Use Python to plot the graph of versus for and . Remember to add relevant axis labels. Plot on the same graph the line of , so you can verify your answers in 1. and 2.
Main problems 2
How should these equations be rearranged to allow the plotting of a suitable linear graph, assuming that the constant parameters and are unknown, and we wish to use the graph to find them?
Write down expressions for the gradient, -intercept and -intercept of each rearranged equation:
Main problems 3
The osmotic pressure of a solution of a protein is related to the concentration of that protein by the equation:
where is the osmotic pressure in kPa, is the temperature in Kelvin, is the gas constant () and is the molarity of the protein (mol. solute per dm solution).
Plot a suitable graph to determine, as accurately as possible, the molecular mass (take care with units!) of the protein given the following data taken at room temperature (usually taken as 21C):
Protein Concentration (in g dm | 7.3 | 18.4 | 27.6 | 42.1 | 57.4 |
Osmotic Pressure (in kPa) | 0.211 | 0.533 | 0.804 | 1.236 | 1.701 |
Hint: compare the function with the equation of a straight line, , and think about the relationship between concentration, molar concentration and molecular weight).
Use Python to plot the graph and confirm your pen & paper solution.
Extension problems
Extension problems 1
The rate at which a given enzyme catalyses a reaction is dependent upon the substrate concentration:
where is the rate of the reaction, is the substrate concentration and and are unknown constants.
How can we transform and to derive a straight line graph relating them?
What will be the gradient and the ordinate intercepts?