// StartMathJax Script window.MathJax = {loader: {load: [ 'input/asciimath', 'ui/lazy', 'output/chtml', 'ui/menu']} }; (function() { var script = document.createElement('script'); script.src = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/startup.js"; script.async = true; document.head.appendChild(script); })(); ---------- (Different files) ---------- // UpdateTypeset Script config = { attributes: true, childList: true, subtree: true }; // Callback function to execute when mutations are observed callback = (mutationList, observer) => { for (mutation of mutationList) { if (mutation.type === 'childList') { console.log('A child node has been added or removed.'); MathJax.typeset(); } else if (mutation.type === 'attributes') { console.log(`The ${mutation.attributeName} attribute was modified.`); } } }; // Create an observer instance linked to the callback function observer = new MutationObserver(callback); document.onreadystatechange = () => { if (document.readyState === 'complete') { console.log("Loaded fully according to readyState") targetNode = document.getElementById('content-wrapper') console.log(targetNode) // Start observing the target node for configured mutations observer.observe(targetNode, config); } }
 

A Couple of Points on Straight Line Graphs...

Here we look at a great way to construct/sketch a straight line graph that requires just two points.


The two-point gradient and y-intercept method


The equation for a straight line is

Where x and y are variables that relate to the x and y axes of a graph.

The gradient (slope) of the line is given by m - this is the number immediately before the x (it's known as the coefficient). If the coefficient is a negative value, the gradient will slope downwards on a graph.


The c term is the y-intercept - the point on the y-axis where the line will cross.

Look at the following equation...

If it can be manipulated so that it has the form y = mx + c, it can be graphed.

In this case, the line will have a gradient of 3 and will cross the y-axis at y = 4.

The line can be graphed quickly by plotting just two points.


The easiest point to plot is the y-intercept. This occurs when x = 0 so the coordinates will be (0, 4)

The y-intercept

Another point on the graph is needed and it can be found using the value for the gradient, 3.


The gradient is usually found by calculating...