Friday, March 27, 2026
Wednesday, March 25, 2026
Parabola Equations and Graphs, Directrix and Focus and How to Find Roots of Quadratic Equations
Sunday, March 22, 2026
Conversations With ChatGPT: Converting Garden Waste to Electricity
![]() |
| Created by ChatGPT |
Eugene: Is it possible to convert the energy stored in garden waste directly into electricity?
ChatGPT: Short answer: Let me unpack that a bit.
🔥 The usual way (not direct)
Most power plants don’t convert heat straight to electricity. They go:
combustion → heat → steam → turbine → generator
That mechanical step (spinning a turbine) is actually very efficient, which is why it’s still dominant.
⚡ Direct (or near-direct) methods
1. Thermoelectric generators (Seebeck effect)
This is the cleanest “direct” method.
- Based on the Seebeck effect
- A temperature difference across a material produces a voltage
Pros:
- No moving parts
- Very reliable
Cons:
- Low efficiency (typically 5–10%)
- Needs large temperature differences to be worthwhile
👉 These are used in niche cases like space probes (radioisotope generators), not big power stations.
2. Thermophotovoltaics (TPV)
A bit more exotic and very cool in principle.
- Hot surface from combustion emits infrared radiation
- That radiation is converted to electricity using photovoltaic cells (like solar panels tuned for heat)
Pros:
- Potentially higher efficiency than thermoelectrics
- Still no moving parts
Cons:
- Technically complex
- Still under development for large-scale use
3. Magnetohydrodynamic (MHD) generators
This one feels almost sci-fi.
- Hot ionised gas (plasma) from combustion flows through a magnetic field
- Generates electricity directly from moving charged particles
Pros:
- Theoretically high efficiency
Cons:
- Extremely difficult to operate (materials, temperatures, plasma control)
- Never really took off commercially
4. Fuel cells (sort of “skipping combustion”)
Not exactly combustion, but worth mentioning:
- Chemical energy → electricity directly via electrochemical reactions
- e.g. hydrogen fuel cells
These avoid the “heat stage” entirely, which is why they can be efficient.
🧠 The key limitation
The reason direct heat → electricity is hard comes down to thermodynamics:
- Heat is disordered energy
- Electricity is ordered energy
- Converting between them efficiently is fundamentally limited (think Carnot efficiency)
Ironically, spinning a turbine is still one of the best ways to impose order on that energy.
🧩 Big picture
- Yes, direct conversion exists
-
But:
- It’s usually less efficient than turbines
- Or more complex and expensive
- That’s why your power station still looks like a Victorian steam machine on steroids 😄
If you want, I can run through rough efficiency numbers comparing all of these—or even sketch how a TPV system would look in practice.
Eugene: I'm thinking of my garden waste. It'd be great if I could recover the energy.
ChatGPT: Ahh now that’s a lovely engineer’s instinct—looking at a pile of garden waste and seeing untapped energy instead of rubbish 😄
Short answer: yes, you can recover energy from it—but generating electricity directly is the tricky (and usually disappointing) part. Heat is where the real win is.
🌿 What you actually have in garden waste
Your clippings, leaves, twigs etc. are basically stored solar energy (via Photosynthesis).
So in principle, burning or processing them releases that energy again.
🔥 The most practical route: heat
If you dry the material and burn it:
- You can get useful heat for space heating or water
- This is by far the most efficient and realistic option at small scale
Think:
- Small wood stove
- Outdoor burner
- Even a DIY biomass heater if you’re inclined
👉 You might recover 50–80% of the energy as heat, which is actually very decent.
⚡ Electricity… this is where reality bites a bit
Option 1: Thermoelectric generator
Stick a Thermoelectric generator on a hot stove.
- Works, but…
- You’ll get tiny power (watts, maybe tens of watts)
Good for:
- Charging a phone
- Running a small fan
Not good for:
- Powering your house
Option 2: Steam engine (the old-school way)
You could do:
burn waste → boil water → steam → small turbine/engine → generator
But:
- Complex
- Needs pressure vessels (safety issue)
- Hard to do efficiently at small scale
Option 3: Gasification (now we’re talking interesting)
This is probably the most “you” option given your engineering bent.
- Heat biomass with limited oxygen → produces “wood gas”
- Burn that gas in an engine → drive a generator
This is basically:
garden waste → fuel gas → engine → electricity
Pros:
- Much better than direct heat-to-electricity
- Actually used historically (e.g. WWII vehicles)
Cons:
- Fiddly to run
- Needs dry, consistent fuel
- Tar/soot management is a pain
Option 4: Just compost it (seriously)
Don’t dismiss this one.
- Composting releases heat slowly
- Improves your soil (which feeds more plant growth → more stored energy)
It’s not flashy, but it’s efficient in a different way.
⚖️ Reality check (honest answer)
If your goal is:
- Maximum energy recovery → burn it for heat
- Fun engineering project → gasifier + small engine
- Simple + useful → compost or mulch
Generating meaningful electricity directly from garden waste at home scale is:
technically possible… but usually not worth the hassle
💡 A neat hybrid idea
If I were setting this up in a garden in Ireland:
- Burn dry woody waste in a small stove
- Use the heat for something useful (shed, water, drying clothes)
- Stick a small thermoelectric module on it just for fun output
You get:
- Real useful energy (heat)
- A bit of electricity as a bonus
- A nice experimental setup to play with
If you want, I can sketch a simple DIY setup (nothing dangerous, no pressure vessels) that’d actually work in a garden shed.
Tuesday, March 17, 2026
Special Relativity and Angle Grinder Disks
![]() |
| © Eugene Brennan |
The theory of special relativity was postulated by Einstein in his 1905 paper, "On the Electrodynamics of Moving Bodies". While things behave seemingly "normal" at speeds we experience in our daily lives, bizarre things happen at near-light speeds. One of these is time dilation. So for an object that's moving at super-high velocity, time slows down. You may have heard of the thought experiment in which there are two twins and one of them goes off on an interstellar space journey while the other twin remains on Earth. When the first twin returns home years later, he finds that his brother has aged much more than him. The theory was proven by placing an extremely accurate atomic clock on an aircraft while keeping a similar clock stationary on the ground (though it was slightly more complicated, with two aircraft, one travelling east and the other travelling west). Before the experiment started, both clocks were synchronised. On checking the clocks after the flight ended, it was discovered that the clock on the aircraft had run slower than the clock on the ground by a tiny fractions of a second. For a 4 1/2" angle grinder disc, it works out that if a disk were running constantly for 10 years, the perimeter of the disk would age slower than the centre by 7 microseconds. This may seem minor, but relativistic effects must be accounted for when doing GPS calculations to ensure accuracy, due to the satellites' velocity.
Monday, March 16, 2026
Where Does Water Come From in an Air Compressor Tank?
![]() |
| Graph of temperature versus max water storage capacity of air. |
Anyone who owns an air compressor knows that one of the regular maintenance chores is to drain the tank to release water. This is essential to prevent eventual corrosion of the tank.
Question:
2 cubic metres of air at 20° C is at a water vapour density of 7 g/m3. (50% RH at this temperature) The air is compressed by a factor of 10 and allowed to cool back to 20 deg C. How much water condenses out?
The amount of water in the original air is 2 m³ x 7 g/m³ = 14g
Friday, March 13, 2026
Rules of Logarithms and Exponents With Worked Examples and Problems
![]() |
A graph of a log function. Krishnavedala , CC BY-SA 3.0 via Wikimedia Commons |
An Introduction to Logarithms, Bases and Exponents
In this tutorial you'll learn about
- exponentiation
- bases
- logarithms to the base 10
- natural logarithms
- rules of exponents and logarithms
- the history and uses of logarithms
- working out logarithms on a calculator
- graphs of logarithmic functions
What Is Exponentiation?
Before we learn about logarithms, we need to understand the concept of exponentiation. Exponentiation is a math operation that raises a number to a power of another number to get a new number.
So 102 = 10 x 10 = 100
Similarly 43 = 4 x 4 x 4 = 64
and 25 = 2 x 2 x 2 x 2 x 2 = 32
We can also raise numbers with decimal parts (non-integers) to a power.
So 1.52 = 1.5 x 1.5 = 2.25
What Are Bases and Exponents?
In general, if b is an integer:
Then ab = a x a x a x a....a = c
a is called the base and b is called the exponent. As we'll find out later, b doesn't have to be an integer and can be a rational number with a decimal part or even an irrational number such as the square root of two.
![]() |
| © Eugene Brennan |
How to Simplify Expressions Involving Exponents
There are several laws of exponents (sometimes called "rules of exponents") we can use to simplify expressions that include numbers or variables raised to a power.
Laws of Exponents
| Rule | Formula | Description |
|---|---|---|
| Zero Exponent | a0 = 1 (a ≠ 0) | Any value to the power of 0 equals 1, unless the value is 0 |
| Exponent of one | a1 = a | Any value to the power of 1 is itself |
| Negative exponent | a-m = 1/aᵐ | |
| Inverse | a-1 = 1/a | |
| Product | aᵐ × aⁿ = a(m+n) | If both bases are the same, add the exponents |
| Quotient | aᵐ / aⁿ = a(m-n) | If both bases are the same, subtract the exponents |
| Power of a power | (aᵐ)ⁿ = a(m·n) | |
| Power of a product | (a b)ᵐ = aᵐ bᵐ |
Examples Using the Laws of Exponents
Zero exponent
50 = 1
270 = 1
10000 = 1
Exponent of 1
51 = 5
20001 = 2000
3.251 = 3.25
Negative exponent
2-4 = 1/24 = 1/16
10-3 = 1/103 = 1/1000
Product law
52 x 53 = 5 (2 + 3) = 55 = 3125
Quotient law
34 / 32 = 3 (4 - 2) = 32 = 9
Power of a power
(23)4 = 212 = 4096
Power of a product
(2 x 3)2 = 62 = 36 = (22 x 32) = 4 x 9 = 36
Exercise A: Laws of Exponents
Simplify the following:
- yaybyc
- papb/pxpy
- papb/qxqy
- ((ab)4)3 x ((ab)2)3
- ( ((ab)4)3 x ((ab)4)3 )2 / a25
Answers at bottom of page.
Non-Integer Exponents
Exponents don't have to be integers, they can also be rational numbers with decimal parts or irrational numbers such as √2.
For instance imagine if we have a number b, then the product of the square roots of b is b
So √b x √b = b
Now instead of writing √b we write it as b raised to a power x:
Then √b = bx and bx x bx = b
But using the product rule and the exponent of one rule we can write:
bx x bx = b2x = b = b1
So b2x = b1 Therefore 2x = 1 and x = 1/2
So √b = bx = b1/2
What Are Logarithms?
If we raise 10 to the power of 3, we get 1000.
103 = 10 x 10 x 10 = 1000
The logarithm function is the reverse of exponentiation and the logarithm of a number (or log for short) is the number a base must be raised to, to get that number.
So log10 1000 = 3 because 10 must be raised to the power of 3 to get 1000.
We indicate the base with a subscript, the number 10 in the case of log to the base 10. So for example the log of 5 to the base 10 is written as:
log10 5
In the specific case of log to the base 10, the subscript 10 is often omitted.
Some more examples:
102 = 100 and log10100 = 2
104 = 10,000 and log10 10,000 = 4
106 = 1000,000 and log10 1000,000 = 6
So in general
if c = ab
then
log c = b
![]() |
| Log to the base 10. © Eugene Brennan |
Logarithms to Bases Other Than 10
We can of course work out logs to other bases.
Some examples:
23 = 8 and log2 8 = 3
34 = 81 and log3 81 = 4
![]() |
| Log to the base 2. © Eugene Brennan |
How to Work Out Logarithms Using a Calculator
You can use the log function on a calculator to work out the log of a number to the base 10.
- Press "log".
- Type the number.
- You may have to press "=" depending on the model of the calculator.
To work out the log of a number to a base other than 10:
- Press the "2nd function" or "shift" key
- Press the "logy x" key
- Type the base
- Type the number
- You may have to press "=" depending on the model of the calculator.
Not all calculators have a "logy x" key, so see "change of base" in properties of logarithms below.
![]() |
| Working out the log of a number to the base 10 using an Android calculator app. © Eugene Brennan |
![]() |
| Working out the log of a number to the base 10 using an Android calculator app. Some calculators require you to press "=" after you enter the number. © Eugene Brennan |
Exercise B: Calculate Values of Logs
Calculate the value of these logs:
- log2256
- log101000,000
- log381
- log1.5 3.375
- ln 20.0855
Answers at bottom of page
The Natural Logarithm
The mathematical constant e known as Euler's number is approximately equal to 2.71828
The value of the expression (1 + 1/n)n approaches e as n gets bigger and bigger.
The derivative of ex is itself. So d/dx(ex) = ex
The log of a number x to the base e is normally written as ln x or logex
Graph of the Log Function
The graph below shows the function log (x) for the bases 10, 2 and e.
We notice several properties about the log function:
- Since x0 = 1 for all values of x, log (1) for all bases is 0.
- Log x increases at a decreasing rate as x increases.
- Log 0 is undefined. Log x tends to -∞ as x tends towards 0.
![]() |
Graph of the log x to various bases. Richard F. Lyon, CC by SA 3.0 via Wikimedia Commons |
Properties of Logarithms
These are sometimes called logarithmic identities or logarithmic laws.
-
The product rule:
The log of a product equals the sum of the logs.
logc (AB) = logc A + logc B
-
The quotient rule:
The log of a quotient (i.e. a ratio) is the difference between the log of the numerator and the log of the denominator.
logc (A/B) = logc A - logc B
-
The power rule:
The log of a number raised to a power is the product of the power and the number.
logc (Ab) = blogcA
-
Change of base:
logc A = logb A / logbc
This identity is useful if you need to work out a log to a base other than 10. Many calculators only have "log" and "ln" keys for log to the base 10 and natural log to the base e respectively.
Example:
What is log2256 ?
log2256 = log10256 / log102 = 8
Exercise C: Using Rules of Logs to Simplify Expressions
Simplify the following:
- log10 35x
- log10 5/x
- log10x5
- log10 10x3
- log2 8x4
- log3 27(x2/y4)
- log5 (1000) in terms of the base 10, rounded to two decimal places
What Are Logarithms Used For?
- Speeding up the multiplication and division of numbers
- Representing numbers with a large dynamic range
- Compressing scales on graphs
- Simplifying functions to work out derivatives
The History of Logarithms
In the old days before the invention of mechanical, electromechanical and electronic calculators, multiplication and division of numbers with decimal paces was a tedious process. Logarithms were actually invented in the 17th century by the Scottish mathematician John Napier as a technique to speed up these calculations.
Multiplying numbers with logarithms
Imagine we have two numbers a and b.
We want to find the result of multiplying the two numbers, i.e. to find ab.
Take the log of ab and using the addition rule of logarithms:
log ab = log a + log b
Take the antilog of both sides
antilog(log ab) = antilog (log a + log b)
The antilog and log cancel, giving
ab = antilog (log a + log b)
So
to multiply two numbers, you simply find the log of each number, add
the results together and then find the antilog of the sum of the logs of
the numbers. If a lot of numbers need to be multiplied together, the
operation of multiplication is replaced by the much faster operation of
addition.
Traditionally before calculators were invented, people used
printed tables like the one in the image below and looked up the log of
each of the multiplicands (the numbers being multiplied) in the table.
After adding all the log values together, the antilog of the sum was
looked up in an antilog table.
Now log tables don't allow you to
check the log of any number. Instead they usually only have log values
for numbers with a certain number of places of decimals, depending on
accuracy required. For many applications, three places of decimals is
adequate, so they will typically tabulate logs for values from 1.000 to
9.999 when using base 10.
So what happens if you need to multiply larger numbers?
Again
imagine we have two numbers a and b, lets say both are greater than 10.
We express them in scientific notation as a number less than 10 with a
multiplier that is a power of 10 (e.g. 2348 = 2.348 x 103). Then when we take the log of that number, the coefficient (2.348 in this example) gives the decimal part of the log.
So log 2348 = log (2.348 x 103) = log 2.348 + log 103
= log 2.348 + 3
The number "3" is called the characteristic.
To find the log of 2.348, which is the decimal part of the log of 2348, known as the mantissa,
we use a table like the one below. This gives logs for numbers from
1.000 to 9.999 (corresponding to log values from 0.000 to 1.000 rounded)
![]() |
| Log table. © Dept of Education Ireland, Government Publications Sale Office |
![]() |
Log table. © Dept of Education Ireland, Government Publications Sale Office |
First
we look for the number 2.3 in the vertical column at the left edge of
the table. Then we follow across the row until we find the intersection
point with the "4" column. This gives us a number 3692. Next we need to
find the difference which needs to be added for the last decimal place
"8" in 2.348. Looking across the row again to the intersection point
with the "8" column on the far right of the table, we find the value is
15. This is added to 3692 giving 3707. The value 3707 is 0.3707 since
the decimal point is omitted in the table for clarity. So the log of
2.348 = 0.3707
Adding the characteristic and mantissa together gives us:
log 2348 = 0.3707 + 3 = 3.3707
Example: What is 12,600 x 18.539 x 0.046?
Convert to scientific notification:
12,600 = 1.26 x 104
18.539 = 1.854 x 101 (rounded to 3 decimal places so result can be found in table)
0.046 = 4.6 x 10-2
Using log tables:
Log 1.26 x 104 = 4.1004
Log 1.854 x 101 = 1.2681
For numbers less than 1, the characteristic and mantissa are still added together to give the final result, but the sign of the characteristic must be taken into account.
So log 0.046 = log (4.6 x 10-2) = log 4.6 + log 10-2
The characteristic is log 10-2 = -2
From the table, the mantissa is log 4.6 = 0.6628
Adding the two together gives:
log 0.046 = log 4.6 + log 10-2 = 0.6628 + (-2) + = -1.3372
Adding the three logs together:
4.1004 + 1.2681 + (-1.3372) = 4.0313
Now we need to find the antilog of this value:
The
antilog operation (for base 10) is effectively working out the value of
10 to the power of the value you want to find the antilog of. So we
need to find the value of 104.0313
Now knowing the rules of exponentiation, 104.0313 = 104 x 100.0313
The antilog table gives us the antilog of 0.03013 (I.e. 100.03013 ) as 1.075.
So 104.0313 = 104 x 100.0313 = 10,000 x 1.075 = 1075
So finally
12,600 x 18.539 x 0.046 = 1075 approximately
Representing Numbers With a Large Dynamic Range
In science, measurements can have a large dynamic range. This means that there can be a huge variation between the smallest and largest value of a parameter.
Sound pressure levels
An example of a parameter with a large dynamic range is sound.
Typically sound pressure level (SPL) measurements are expressed in decibels.
Sound pressure level = 20log10 ( p / p0)
where p is the pressure and po is a reference pressure level (20 μPa, the faintest sound the human ear can hear)
By using logs, we can represent levels from 20 μPa = 20 x 10-6 Pa up to the sound level of a rifle gunshot (7265 Pa) or higher on a more usable scale of 0dB to 171dB.
So if p is 20 x 10-5, the faintest sound we can hear
Then SPL = 20log10 ( p / p0)
= 20log10 ( 20 x 10-5 / 20 x 10-5)
= 20log10 (1) = 20 x 0 = 0dB
If sound is 10 times louder , i.e. 20 x 10-4
Then SPL = 20log10 ( p / p0)
= 20log10 ( 20 x 10-4 / 20 x 10-5)
= 20log10 (10) = 20 x 1 = 20dB
Now increase the sound level by another factor of 10, i.e. make it 100 times louder than the faintest sound we can hear.
So p = 20 x 10-3
SPL = 20log10 ( p / p0)
= 20log10 ( 20 x 10-3 / 20 x 10-5)
= 20log10 (100) = 20 x 2 = 40dB
So each 20DB increase in SPL represents a tenfold increase in level of sound pressure.
Richter magnitude scale
The magnitude of an earthquake on the Richter scale is determined by using a seismograph to measure the amplitude of ground movement waves. The log of the ratio of this amplitude to a reference level gives the strength of the earthquake on the scale.
The original scale is log10 ( A / A0 ) where A is the amplitude and A0 is the reference level. Similar to sound pressure measurements on a log scale, every time the value on the scale increases by 1, this represents a tenfold increase in strength of the earthquake. So an earthquake of strength 6 on the Richter scale is ten times stronger than a level 5 earthquake and 100 times stronger than a level 4 quake.
Logarithmic Scales on Graphs
Values with a large dynamic range are often represented on graphs with nonlinear, logarithmic scales. The x-axis or y-axis or both can be logarithmic, depending on the nature of data represented. Each division on the scale normally represents a tenfold increase in value. Typical data displayed on a graph with a logarithmic scale is:
- Sound pressure level (SPL)
- Sound frequency
- Earthquake magnitudes (Richter scale)
- pH (acidity of a solution)
- Light intensity
- Tripping current for circuit breakers and fuses
![]() |
Trip current for an MCB protective device. (These are used to prevent cable overload and overheating when excess current flows). The current scale and time scale are logarithmic. Public domain image via Wikimedia Commons |
![]() |
Frequency response of a low pass filter, a device that only allows low frequencies through below a cut-off frequency (e.g. audio in a sound system). The frequency scale on the x axis and gain scale on the y axis are logarithmic. Original unedited file Omegatron, CC by SA 3.0 |
Answers to Exercises
Exercise A
- y(a + b +c)
- p(a + b -x - y)
- p(a +b/q
- (ab)18
- a23b48
Exercise B
- 8
- 6
- 4
- 3
- 3
Exercise C
- log10 35 + log10 x
- log10 5 - log10x
- 5log10x
- 1 + 3log10x
- 3 + 4log2x
- 3 + 2log3x - 4log3y
- log10 1000 / log10 5 = 4.29 approx
This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.
© 2019 Eugene Brennan
Another Use for AI: Reading Tables From Images and Converting to HTML
![]() |
| Screenshot of a table. © Eugene Brennan |
Artificial intelligence gets a lot of bad press, so I need to write a proper article at some stage about how beneficial I’ve found it to be for all sorts of tasks. I feel a bit like a “slave owner” at this stage because of the amount of unpaid work it has done for me. I usually use ChatGPT because I reckon it has built up an “understanding” of me—knowing what I want and almost behaving like a pet. I know this from the way it interacts and can reference other aspects of the Kilcullen Science blog, for instance, when I’m tasking it with making changes.
Grok, however, appears to be faster at generating images. I tasked it today with doing some OCR—that’s Optical Character Recognition, the visual equivalent of speech recognition, allowing written or printed documents, or images with text, to be read and the text extracted.
I’m migrating articles to the Kilcullen Science blog from a site I used to write for. One of the articles has a table. I originally designed it using Excel, made a screenshot, and inserted it into the original article as a JPG. That’s adequate as long as small details can be read in the image. However, from a search engine optimisation (SEO) point of view, it’s apparently better to have such data in a proper table implemented in markup—also known as Hypertext Markup Language (HTML). This enables web crawlers to extract the information from tables, and readers can copy and paste information easily. It also supposedly improves the ranking of articles in Google search results or SERPs. A SERP (Search Engine Results Page) is the page a search engine, like Google or Bing, displays after a user submits a query.
The original table is shown at the top of this post. I submitted the JPG to Grok and asked it to convert it to a table, shown below. Then I went one step further and asked it to generate the HTML code. I’ll copy and paste this code into the Blogger editor in HTML view when composing a post, placing it in a suitable position within the post content. I told Grok that I didn’t want any styling on the table—I’ll do that with a table styling template that ChatGPT has coded for me, written in Cascading Style Sheets (CSS). While HTML defines the content and structure of web content, CSS defines how that content will look, allowing hundreds of style attributes such as font type, colour and size of body text and headings to be customised.
I only know basic HTML and CSS, and there’s a lot of detail to learn, but I'm improving. I don't have a great memory, so if I try to learn it, I'll have it forgotten in a few weeks and I'm not going to be designing websites full-time, so there's not much point, hence the outsourcing of feature improvements on my blog to ChatGPT and Grok. Any languages, natural languages like French or English, or computer languages such as C, BASIC, or Java need to be used constantly, otherwise, one forgets the vocabulary and syntax.
Now I have to check the converted table and make sure Grok hasn’t made a cock-up in the conversion!
![]() |
| Image converted by Grok to a proper text-based table, using OCR. © Eugene Brennan |
![]() |
| Grok also generated the HTML for the table. © Eugene Brennan |
I asked ChatGPT for a comment about what I said about it:
"Sort of—but not exactly the way it might sound. I don’t actually “remember” or “understand” you across sessions in the human sense, unless you’ve explicitly told me something in a past conversation that’s stored in your chat history or in my memory for this account. I don’t have consciousness or feelings, and I can’t form opinions.
What really happens is more like pattern recognition: I notice what kind of prompts, phrasing, and tasks you tend to give me, and I use that to generate responses that feel tailored. For example, I know you like concise explanations, Irish language replies when you speak Irish, and technical detail in your science posts—because you’ve told me or demonstrated it before. That can feel like “understanding,” but it’s more like a very good mimicry of familiarity.
So yes, it can act like a “pet” that knows your habits, but it’s not conscious—it’s just very good at learning patterns from your instructions and context.
If you want, I can explain how that works technically with examples from how I help you with your Kilcullen Science blog. Do you want me to?"
Summary of Ideal Gas Laws
Thanks to ChatGPT for creating the table to my design. There's a long discussion with ChatGPT about the gas law equations here, where I revise my limited knowledge from school. (which was basically just understanding Boyle's Law and Charles's Law)
| Law / Equation | Form / Equation | Derived From | Notes / Conditions |
|---|---|---|---|
| Boyle’s Law | P V = constant | Ideal Gas Law P V = n R T, with T = constant | Isothermal: pressure inversely proportional to volume |
| Charles’s Law | V / T = constant or V ∝ T | Ideal Gas Law P V = n R T, with P = constant | Isobaric: volume directly proportional to temperature |
| Gay-Lussac’s Law | P / T = constant or P ∝ T | Ideal Gas Law P V = n R T, with V = constant | Isochoric: pressure directly proportional to temperature |
| Ideal Gas Law | P V = n R T | Fundamental definition of ideal gases | Connects pressure, volume, temperature, and moles |
| Combined Gas Law |
P V / T = constant P1 V1 / T1 = P2 V2 / T2 |
Ideal Gas Law, general form combining Boyle, Charles, Gay-Lussac | Relates pressure, volume, and temperature for a fixed amount of gas |
| Adiabatic PV Relation | P Vγ = constant | First Law dU = -P dV + Ideal Gas Law, γ = Cp/Cv | No heat transfer; pressure rises faster than 1/V |
| Adiabatic T–V Relation | T Vγ-1 = constant | PV adiabatic relation + Ideal Gas Law | Temperature rises when volume decreases (or vice versa) |
| Adiabatic T–P Relation | T = constant × P(γ-1)/γ | From PV and T–V adiabatic relations | Temperature as a function of pressure |
| Adiabatic PV Relation (states) | P1 V1γ = P2 V2γ | PV adiabatic relation applied to two states | Useful for calculating compression/expansion between two points |
| Adiabatic T–V Relation (states) | T1 V1γ-1 = T2 V2γ-1 | T–V adiabatic relation applied to two states | Temperature change for volume change between two states |
| Adiabatic T–P Relation (states) | T2 = T1 (P2/P1)(γ-1)/γ | T–P adiabatic relation applied to two states | Temperature change for pressure change between two states |
Tuesday, March 10, 2026
Unorthodox Fire Starting Devices
![]() |
| A fire plunger. Image courtesy eBay |
A plasma lighter produces an electrical arc between two electrodes using a high voltage, generated from a rechargeable battery. The temperature of an electrical arc can reach up to 19,400 °C, so it can easily melt steel (arc welding) or light tinder for starting a fire.
A fire plunger or fire syringe is like a bicycle pump with a cylinder into which a small piece of tissue or rag is placed. To operate the device, a plunger is rapidly slammed into the cylinder and this compresses the air inside, rising its temperature by several hundred degrees, enough to ignite the tissue inside. This is the same principle on which a diesel engine works—a gas increases in temperature when it's compressed. Once the tissue ignites, the embers can be used to ignite kindling.
Like most real-world examples, a fire plunger doesn't obey Boyle's Law, Charles's Law or Gay-Lussac's Law exclusively. All of these laws of thermodynamics require one variable—temperature, pressure or volume—to be kept constant while two of the other variables change. In a fire plunger, or when pumping a car tyre for that matter, pressure, volume and temperature all change at the same time.
Gay-Lussac's law may be the one you experienced as a child if you ever threw a bottle or can into a fire and it exploded. The law states that, at constant volume, pressure is proportional to temperature.
![]() |
| A plasma lighter. Image courtesy eBay. |
Saturday, March 07, 2026
How to Understand Calculus: Integration Rules and Examples
![]() |
| © Eugene Brennan |
What Is Calculus?
Calculus is a study of rates of change of functions and accumulation of infinitesimally small quantities. It can be broadly divided into two branches:
- Differential Calculus: This concerns rates of changes of quantities and slopes of curves or surfaces in 2D or multidimensional space.
- Integral Calculus: This involves summing infinitesimally small quantities.
What's Covered in This Tutorial
In the previous tutorial, we learned about differential calculus. In this second part of a two-part tutorial, we cover:
- Concept of integration
- Definition of indefinite and definite integrals
- Integrals of common functions
- Rules of integrals and worked examples
- Applications of integral calculus, volumes of solids, real world examples
If you find this tutorial useful, please show your appreciation by sharing on Facebook or Pinterest.
Integration Is a Summing Process
Differentiation is a way of working out the rate of change of functions. Integration in a sense is the opposite of that process. It is a summing process used to add up infinitesimally small quantities.
What Is Integral Calculus Used For?
Integration is a summing process, and as a mathematical tool it can be used for:
- evaluating the area under functions of one variable
- working out the area and volume under functions of two variables or summing multidimensional functions
- calculating the surface area and volume of 3D solids
In science, engineering, economics etc, real world quantities such as temperature, pressure, magnetic field strength, illumination, speed, flow rate, share values etc can be described by mathematical functions. Integration allows us to integrate these variables to arrive at a cumulative result.
Area Under a Graph of a Constant Function
Imagine we have a graph showing the velocity of a car versus time. The car travels at a constant velocity of 50 mph, so the plot is just a horizontal straight line.
![]() |
| © Eugene Brennan |
The equation for distance travelled is:
Distance travelled = velocity x time
So in order to calculate distance travelled at any point in the journey, we multiply the height of the graph (the velocity) by the width (time) and this is just the rectangular area under the graph of velocity. We are integrating velocity to calculate distance. The resulting graph we produce for distance versus time is a straight line.
So if the car's velocity is 50 mph, then it travels
50 miles after 1 hour
100 miles after 2 hours
150 miles after 3 hours
200 miles after 4 hours and so on.
Note that an interval of 1 hour is arbitrary, we can choose it to be anything we want.
![]() |
| If we take an arbitrary interval of 1 hour, the car travels an additional 50 miles each hour. © Eugene Brennan |
If we draw a graph of distance travelled versus time, we see how the distance increases with time. The graph is a straight line.
![]() |
| © Eugene Brennan |
Area Under a Graph of a Linear Function
Now let's make things a little bit more complicated!
This time we'll use the example of filling a water tank from a pipe.
Initially there is no water in the tank and no flow into it, but over a period of minutes, the flow rate increases continuously.
The increase in flow is linear which means that the relationship between flow rate in gallons per minute and time is a straight line.
![]() |
| A tank filling with water. Water volume increases and is the integral of flow rate into the tank. © Eugene Brennan |
We use a stopwatch to check elapsed time and record the flow rate every minute. (Again this is arbitrary).
After 1 minute, flow has increased to 5 gallons per minute.
After 2 minutes, flow has increased to 10 gallons per minute.
and so on.....
![]() |
| Plot of water flow rate versus time. © Eugene Brennan |
Flow rate is in gallons per minute (gpm) and volume in the tank is in gallons.
The equation for volume is simply:
Volume = average flow rate x time
Unlike the example of the car, to work out the volume in the tank after 3 minutes, we can't just multiply the flow rate (15 gpm) by 3 minutes because the rate was not at this rate for the full 3 minutes. Instead we multiply by the average flow rate which is 15/2 = 7.5 gpm.
So volume = average flow rate x time = (15/2) x 3 = 2.5 gallons
In the graph below, this just turns out to be the area of the triangle ABC.
Just like the car example, we are calculating the area under the graph.
![]() |
| Water volume can be calculated by integrating the flow rate. © Eugene Brennan |
If we record the flow rate at intervals of 1 minute and work out the volume, the increase in water volume in the tank is an exponential curve.
![]() |
| Plot of water volume. Volume is the integral of flow rate into the tank. © Eugene Brennan |
Now consider a case where the flow rate into the tank is variable and non-linear. Again we measure the flow rate at regular intervals. Just like before, the volume of water is the area under the curve. We can't use a single rectangle or triangle to calculate area, but we can try to estimate it by dividing it up into rectangles of width Δt, calculating the area of those and summing the result.
However there will be errors and the area will be underestimated or over estimated depending on whether the graph is increasing or decreasing.
![]() |
| We can get an estimate of area under the curve by summing a series of rectangles. © Eugene Brennan |
Using Numerical Integration to Find the Area Under a Curve
We can improve accuracy by making the intervals Δt shorter and shorter.
We are in effect using a form of numerical integration to estimate the area under the curve by adding together the area of a series of rectangles.
![]() |
| As the number of rectangles increases, the errors get smaller and accuracy improves. © Eugene Brennan |
![]() |
| As the number of rectangles gets bigger and their width gets smaller, the errors get smaller and the result more closely approximates the area under the curve. 09glasgow09, CC BY SA 3.0 via Wikimedia Commons |
Now consider a general function y = f (x).
We are going to specify an expression for the total area under the curve over a domain [a,b] by summing a series of rectangles. In the limit, the width of the rectangles will become infinitesimally small and approach 0. The errors will also become 0.
- The result is called the definite integral of f (x) over the domain [a,b].
- The ∫ symbol means "the integral of" and the function f (x) is being integrated.
- f (x) is called an integrand.
The sum is called a Riemann Sum. The one we use below is called a right Reimann sum. dx is an infinitesimally small width. Roughly speaking, this can be thought of as the value Δx becomes as it approaches 0. The Σ symbol means that all the products f (xi)xi (the area of each rectangle) are being summed from i = 1 to i = n and as Δx → 0, n → ∞.
![]() |
| A generalised function f(x). Rectangles can be used to approximate the area under the curve. © Eugene Brennan |
The Difference Between Definite and Indefinite Integrals
Analytically we can find the anti-derivative or indefinite integral of a function f (x).
This function has no limits.
If we specify an upper and lower limit, the integral is called a definite integral.
Using Indefinite Integrals to Evaluate Definite Integrals
If
we have a set of data points, we can use numerical integration as
described above to work out the area under curves. Although it wasn't
called integration, this process has been used for thousands of years to
calculate area and computers have made it easier to do the arithmetic
when thousands of data points are involved.
However if we know the function f (x) in equation form (e.g. f (x) = 5x2 + 6x +2) , then firstly knowing the anti-derivative (also called the indefinite integral)
of common functions and also using rules of integration, we can
analytically work out an expression for the indefinite integral.
The fundamental theorem of calculus then tells us that we can work out the definite integral of a function f(x) over an interval using one of its anti-derivatives F(x). Later we will discover that there are an infinite number of anti-derivatives of a function f (x).
Indefinite Integrals and Constants of Integration
The table below shows some common functions and their indefinite integrals or anti-derivatives. C is a constant. There are an infinite number of indefinite integrals for each function because C can have any value.
Why is this?
Consider the function f (x) = x3
We know the derivative of this is 3x2 (See the first part of this tutorial)
What about x3 + 5 ?
d/dx ( x3 + 5 ) = d/dx (x3) + d/dx(5) = 3x2 + 0 = 3x2 ....... the derivative of a constant is 0
So the derivative of x3 is the same as the derivative of x3 + 5 and = 3x2
What's the derivative of x3 + 3.2 ?
Again d/dx ( x3 + 3.2 ) = d/dx (x3) + d/dx(3.2) = 3x2 + 0 = 3x2
No matter what constant is added to x3, the derivative is the same.
Graphically we can see that if functions have a constant added, they are vertical translations of each other, so since the derivative is the slope of a function, this works out the same no matter what constant is added.
Since integration is the opposite of differentiation, when we integrate a function, we must add on a constant of integration to the indefinite integral
So e.g. d/dx( x3) = 3x2
and ∫ 3x2 dx = x3 + C
![]() |
| Slope field of a function x^3/3 - x^2/2 - x + c, showing three of the infinite number of functions that can be produced by varying the constant c. The derivative of all the functions is the same. pbroks13talk, public domain image via Wikimedia Commons |
Indefinite Integrals of Common Functions
| Function Type | Function | Indefinite Integral |
|---|---|---|
| Constant | ∫ a dx | ax + C |
| Variable | ∫ x dx | x² / 2 + C |
| Reciprocal | ∫ 1/x dx | ln x + C |
| Square | ∫ x² dx | x³ / 3 + C |
| Trigonometric Functions | ∫ sin(x) dx | - cos(x) + C |
| ∫ cos(x) dx | sin(x) + C | |
| ∫ sec²(x) dx | tan(x) + C | |
| Exponential Functions | ∫ eˣ dx | eˣ + C |
| ∫ aˣ dx | (aˣ) / ln(a) + C | |
| ∫ ln(x) dx | x ln(x) - x + C |
In the table below, u and v are functions of x.
u ' is the derivative of u wrt x.
v ' is the derivative of v wrt x.
Rules of Integration
| Rule | Function | Integral |
|---|---|---|
| Multiplication by a constant rule | ∫ au dx | a ∫ u dx |
| Sum rule | ∫ (u + v) dx | ∫ u dx + ∫ v dx |
| Difference rule | ∫ (u - v) dx | ∫ u dx - ∫ v dx |
| Power rule (n ≠ -1) | ∫ xⁿ dx | x⁽ⁿ⁺¹⁾ / (n + 1) + C |
| Reverse chain rule / Substitution | ∫ f(u) u' dx | ∫ f(u) du + C — Replace u'(x)dx by du, integrate with respect to u, then substitute back u in terms of x in the evaluated integral. |
| Integration by parts | ∫ u v' dx | u v - ∫ u' v dx |
Examples of Working Out Integrals
Example 1:
Evaluate ∫ 7 dx
∫ 7 dx =
7 ∫ dx ..........multiplication by a constant rule
= 7x + C
Example 2:
What is ∫ 5x4 dx
∫ 5x4 dx = 5 ∫x4 dx ....... using multiplication by a constant rule
= 5(x5/5) + C .......... using power rule
= x5 + C
Example 3:
Evaluate ∫ (2x3 + 6cos(x) ) dx
∫ (2x3 + 6cos(x) ) dx = ∫ 2x3 dx + ∫ 6cos(x) dx .....using the sum rule
= 2 ∫ x3 dx + 6 ∫ cos(x) dx ..........using the multiplication by a constant rule
= 2(x4/4) + C1 + 6(sin(x) + C2 .....using the power rule. C1 and C2 are constants.
C1 and C2 can be replaced by a single constant C, so:
∫ (2x3 + cos(x) ) dx = x4/2 + 6sin(x) + C
Example 4:
Work out ∫ sin2(x)cos(x) dx
- We can do this using the reverse chain rule ∫ f(u) u'(x) dx = ∫ f(u) du where u is a function of x
- We use this when we have an integral of a product of a function of a function and its derivative
sin2(x) = (sin x) 2
Our function of x is sin x so replace sin(x) by u giving us:
u = sin(x)
u' = cos(x)
sin2(x) = f(u) = u2
Replace cos(x)dx by du
So ∫ sin2(x)cos(x) dx = ∫ u2du = u3/3 + C
Substitute u = sin(x) back into the result:
u3/3 + C = sin3(x)/3 + c
So ∫ sin2(x)cos(x) dx = sin3(x)/3 + c
Example 5:
Evaluate ∫ xex^2 dx
It
looks as though we could use the reverse chain rule for this example
because 2x is the derivative of the exponent of e which is x2. However we need to adjust the form of the integral first.
So write ∫ xex^2 dx as 1/2 x ∫ 2xex^2 dx = 1/2 ∫ ex^2 (2x) dx
No we have the integral in the form ∫ f(u) u' dx where u = x2 and du = 2xdx
Substituting for x2 and 2x dx:
1/2 ∫ ex^2 (2x) dx = 1/2 ∫ eu u' dx = 1/2 ∫ eu du
but the integral of the exponential function eu is itself, so:
1/2 ∫ eu du = 1/2 eu
Substitute for u giving
1/2 eu = 1/2 ex^2
Example 6:
Evaluate ∫ 6/(5x + 3) dx
- For this, we can use the reverse chain rule again.
- We know that 5 is the derivative of 5x + 3.
Rewrite the integral so that 5 is within the integral symbol and in a format that we can use the reverse chain rule:
∫ 6/(5x + 3) dx = ∫ (6/5) 5/(5x + 3) dx = 6/5 ∫ 1/(5x + 3) 5 dx
Again we have our reverse chain rule ∫ f(u) u' dx = ∫ f(u) du
Let u = 5x + 3
u' = 5 and du = 5dx
Plug these into the integral:
6/5∫ 1/(5x + 3)5dx = 6/5∫ (1/u) du
But ∫ (1/u) du = ln(u) + C
So substituting back 5x + 3 for u gives:
∫ 6/(5x + 3) dx = 6/5∫ (1/u) du = 6/5ln(u) + C = 1.2ln(5x + 3) + C
References
Stroud, K.A., (1970) Engineering Mathematics (3rd ed., 1987) Macmillan Education Ltd., London, England.
This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.
© 2019 Eugene Brennan

































