Applied Physics

  1. Applied Physics and Electronics
  2. Chapter 1 — Introduction to Applied Physics and Electronics
    1. 1.1 What Is Applied Physics?
    2. 1.2 What Is Electronics?
    3. 1.3 Applications in Modern Technology
    4. 1.4 Relationship Between Physics, Electronics, and Engineering
    5. 1.5 Evolution of Electronics — From Vacuum Tubes to Microchips
    6. 1.6 Role of Electronics in Everyday Life
  3. PART 1 — FUNDAMENTALS OF APPLIED PHYSICS
  4. Chapter 2 — Mechanics in Real-World Applications
    1. 2.1 What Is Mechanics?
    2. 2.2 Kinematics — The Study of Motion
    3. 2.3 Dynamics — Forces and Their Effects
    4. 2.4 Projectile Motion — Real-World Examples
    5. 2.5 Fluid Mechanics — Liquids and Gases in Motion
    6. 2.6 Bernoulli's Principle — Aircraft, Cars, and Pipes
    7. 2.7 Applications in Robotics and Industrial Machines
  5. Chapter 3 — Thermodynamics and Heat Transfer
    1. 3.1 What Is Thermodynamics?
    2. 3.2 The Four Laws of Thermodynamics — Explained Simply
    3. 3.3 Heat Transfer — Conduction, Convection, Radiation
    4. 3.4 Heat Engines — How Mechanical Work Is Produced from Heat
    5. 3.5 The Carnot Engine — Maximum Theoretical Efficiency
    6. 3.6 Refrigeration and Air Conditioning Systems
  6. Chapter 4 — Electromagnetism in Practice
    1. 4.1 What Is Electromagnetism?
    2. 4.2 Electric Fields — Definition and Behaviour
    3. 4.3 Magnetic Fields — Definition and Behaviour
    4. 4.4 Electromagnetic Waves — Types and Properties
  7. Chapter 5 — Optics and Lasers
    1. 5.1 What Is Optics?
    2. 5.2 Reflection — Mirrors and Applications
    3. 5.3 Refraction — Lenses and Applications
    4. 5.4 What Is a Laser?
    5. 5.5 Applications of Lasers
    6. 5.6 Fiber Optics and Telecommunications
  8. Chapter 6 — Quantum Physics in Modern Applications
    1. 6.1 What Is Quantum Physics?
    2. 6.2 Wave-Particle Duality
    3. 6.3 Heisenberg's Uncertainty Principle
    4. 6.4 Quantum Dots
    5. 6.5 Quantum Computing
    6. 6.6 Quantum Sensors
  9. PART 2 — FUNDAMENTALS OF ELECTRONICS
  10. Chapter 7 — Basics of Electrical Circuits
    1. 7.1 What Is an Electrical Circuit?
    2. 7.2 Voltage, Current, and Resistance
    3. 7.3 Ohm's Law
    4. 7.4 Kirchhoff's Laws
    5. 7.5 Series vs Parallel Circuits
    6. 7.6 Resistors, Capacitors, and Inductors
    7. 7.7 Real-World Circuits — Household Wiring
  11. Chapter 8 — Semiconductors and Diodes
    1. 8.1 What Is a Semiconductor?
    2. 8.2 Doping — Creating N-Type and P-Type Semiconductors
    3. 8.3 The P-N Junction — Foundation of All Semiconductor Devices
    4. 8.4 Types of Diodes and Their Applications
  12. Chapter 9 — Transistors and Amplifiers
    1. 9.1 What Is a Transistor?
    2. 9.2 Bipolar Junction Transistor (BJT)
    3. 9.3 Field-Effect Transistor (FET)
    4. 9.4 Amplifier Types and Applications
  13. Chapter 10 — Digital Electronics
    1. 10.1 What Is Digital Electronics?
    2. 10.2 Binary Number System
    3. 10.3 Logic Gates
    4. 10.4 Flip-Flops — Memory Elements
    5. 10.5 Microprocessors and Embedded Systems
  14. Chapter 11 — Power Electronics
    1. 11.1 What Is Power Electronics?
    2. 11.2 Rectifiers — AC to DC Conversion
    3. 11.3 Inverters — DC to AC Conversion
    4. 11.4 DC-DC Converters
    5. 11.5 Electric Vehicles and Battery Management Systems
  15. PART 3 — ADVANCED TECHNOLOGIES
  16. Chapter 12 — Material Science and Nanotechnology
    1. 12.1 What Is Material Science?
    2. 12.2 Conductors, Insulators, Semiconductors
    3. 12.3 What Is Nanotechnology?
    4. 12.4 Graphene
    5. 12.5 Carbon Nanotubes and Quantum Dots
  17. Chapter 13 — Sensors and Actuators
    1. 13.1 What Is a Sensor?
    2. 13.2 Types of Sensors
    3. 13.3 What Is an Actuator?
    4. 13.4 Types of Actuators
  18. Chapter 14 — Photonics and Optoelectronics
    1. 14.1 What Is Photonics?
    2. 14.2 Photovoltaic Cells — Converting Light to Electricity
    3. 14.3 LEDs and Optical Sensors
    4. 14.4 Fiber Optic Communication
  19. PART 4 — ADVANCED ELECTRONICS AND SYSTEMS
  20. Chapter 15 — Integrated Circuits and Microelectronics
    1. 15.1 What Is an Integrated Circuit?
    2. 15.2 CMOS Technology — How Chips Are Made
    3. 15.3 System-on-Chip (SoC)
  21. Chapter 16 — Communication Systems
    1. 16.1 What Is a Communication System?
    2. 16.2 Analog Communication — AM and FM
    3. 16.3 Digital Modulation Techniques
    4. 16.4 Wireless Technologies — Wi-Fi, Bluetooth, 5G
    5. 16.5 Satellite Communication and GPS
  22. Chapter 17 — Embedded Systems and IoT
    1. 17.1 What Is an Embedded System?
    2. 17.2 Microcontrollers — Arduino and ESP32
    3. 17.3 IoT Architecture
    4. 17.4 IoT Communication Protocols
    5. 17.5 Smart Home, Wearables, Healthcare
  23. PART 5 — REAL-WORLD ENGINEERING
  24. Chapter 18 — Renewable Energy Systems
    1. 18.1 Solar Panels — How They Work
    2. 18.2 Wind Turbines
    3. 18.3 Smart Grids
  25. Chapter 19 — Medical Physics and Electronics
    1. 19.1 X-Ray Imaging
    2. 19.2 MRI — Magnetic Resonance Imaging
    3. 19.3 Pacemakers and Defibrillators
  26. Chapter 20 — Automation and Robotics
    1. 20.1 What Is Automation?
    2. 20.2 Robotics — Sensors, Motors, Controllers
    3. 20.3 PID Control — Making Robots Move Precisely
    4. 20.4 Artificial Intelligence in Robotics
  27. Chapter 21 — Aerospace and Space Applications
    1. 21.1 Avionics
    2. 21.2 Satellite Systems
    3. 21.3 Rocket Propulsion Physics
  28. Chapter 22 — Future of Applied Physics and Electronics
    1. 22.1 Emerging Trends
    2. 22.2 Challenges and Opportunities
    3. 22.3 The Role of Applied Physics in Shaping the Future

Applied Physics and Electronics

Chapter 1 — Introduction to Applied Physics and Electronics

1.1 What Is Applied Physics?

Definition: Applied physics is the branch of physics that takes the laws, principles, and theories discovered by fundamental physics and uses them to solve real, practical problems in the world.

To understand this clearly, you need to first know what fundamental physics is. Fundamental physics asks pure questions about nature: Why do objects fall? What is light made of? How do atoms behave? It seeks understanding for its own sake, without necessarily worrying about whether the answer is immediately useful.

Applied physics takes those answers and asks a different question: now that we understand this, what can we build with it? How can this principle make life better, safer, faster, or more efficient?

Simple Analogy: Think of fundamental physics as a scientist discovering that fire produces heat. Applied physics is the engineer who uses that knowledge to design a more efficient furnace for heating a hospital. The discovery is the same — the application is the purpose.

Real-World Example 1 — Car Safety: Newton’s First Law of Motion states that an object in motion stays in motion unless an external force acts on it. This is fundamental physics. Applied physics takes this law and uses it to design car crumple zones — the parts of a car body engineered to collapse in a controlled way during a crash, absorbing the energy of impact and slowing the passengers more gradually, reducing injury. Every modern car’s safety system is built on applied physics.

Real-World Example 2 — MRI Machines: Quantum physics tells us that atomic nuclei behave like tiny magnets and respond to magnetic fields in predictable ways. Applied physics takes this and builds the MRI scanner — a machine that uses powerful magnetic fields and radio waves to map the water molecules inside your body and produce detailed images of your organs and tissues without radiation or surgery.

Real-World Example 3 — GPS Systems: Einstein’s Theory of Relativity predicts that time passes slightly differently depending on gravity and speed. This is fundamental physics. Applied physics uses this to correct the atomic clocks on GPS satellites — without applying relativistic corrections, GPS would accumulate position errors of several kilometres per day and become useless. Every time you navigate using Google Maps, applied physics is keeping you on the right road.

1.2 What Is Electronics?

Definition: Electronics is the branch of physics and engineering that studies and uses electrical circuits containing active components — components that can control, amplify, or switch electrical signals — to process information, control systems, and perform work.

The key word here is active. This is what separates electronics from basic electrical engineering. A simple electrical circuit with a battery, wire, and bulb is electrical. The moment you add a transistor that can amplify a tiny signal, or a diode that controls which direction current flows, or a microchip that processes millions of instructions per second — that is electronics.

The Core Idea — Controlling Electrons: All electronics is fundamentally about controlling the flow of electrons through materials in precise, useful ways. The ability to turn a current on and off billions of times per second is what gives us computers. The ability to amplify a tiny signal from a microphone to drive a loudspeaker is what gives us audio systems. Electronics is the science and engineering of making electrons do exactly what we want.

Real-World Example 1 — Transistor as Amplifier: Your voice speaking into a microphone produces a tiny electrical signal — perhaps a few millivolts. This signal is far too weak to drive a loudspeaker. A transistor amplifier takes this weak signal and produces an identical but much stronger version — perhaps a thousand times stronger. This is how every public address system, every radio, every hearing aid, and every phone call works.

Real-World Example 2 — Smartphone: A modern smartphone contains several billion transistors on a chip smaller than your fingernail. Each transistor can switch between on and off states billions of times per second. The combination of these switches, in carefully designed patterns, allows the chip to run an operating system, display graphics, process phone calls, manage wireless connections, and run applications — all simultaneously. This is electronics at its most sophisticated.

1.3 Applications in Modern Technology

Applied physics and electronics are not separate subjects you study and then forget. They are the foundation of every technology that defines modern life.

GPS and Navigation Systems: GPS satellites orbit the Earth at approximately 20,200 kilometres altitude. Each satellite carries an atomic clock and broadcasts its position and time. Your phone or GPS device receives signals from at least four satellites simultaneously and uses the tiny differences in signal arrival time to calculate your exact position. This system applies orbital mechanics, relativistic time corrections, radio wave physics, and signal processing electronics — all working together invisibly.

Medical Imaging — MRI Scanners: An MRI machine uses a superconducting magnet to create a magnetic field 30,000 to 60,000 times stronger than the Earth’s magnetic field. This field aligns hydrogen nuclei in the body’s water molecules. A radio frequency pulse then disturbs this alignment. When the nuclei return to alignment they emit a signal that is detected by sensitive electronics and processed by computers to build a three-dimensional image. This is quantum physics, electromagnetism, signal processing, and computing working as one system.

Renewable Energy: Solar panels generate electricity through the photoelectric effect—a quantum process in which light particles (photons) release electrons from a semiconductor, creating an electric current. Wind turbines use electromagnetic induction — a physics principle where moving a conductor through a magnetic field generates current. The electronics that manage battery charging, power conversion, and grid connection are sophisticated power electronics systems.

The Internet and Communication: Every message, video, and voice call you send travels as light pulses through glass fiber optic cables, as radio waves through the air, or as electrical signals through copper wire. Each of these transmission methods is a direct application of electromagnetic wave physics. The electronics that modulate, transmit, receive, and decode these signals are what make global communication possible.

1.4 Relationship Between Physics, Electronics, and Engineering

These three fields exist in a hierarchy where each one builds on the one before it.

FUNDAMENTAL PHYSICS
Discovers laws of nature
"What is true about the universe?"
Examples: Maxwell's equations, Newton's laws,
Quantum mechanics and relativity are two fundamental theories that explain how the universe works at very different scales.
          |
          |  provides principles to
          ▼
APPLIED PHYSICS
Uses physical laws to solve problems
"How can we use what we know?"
Examples: Semiconductor behaviour, laser design,
          fiber optic transmission, MRI physics
          |
…provide insight into the fundamental laws that govern the universe.
          ▼
ELECTRONICS AND ENGINEERING
Builds devices and systems
"How do we make it work reliably at scale?"
Examples: Transistors, microchips, communication
          systems, power converters, sensors
          |
          |  produces
          ▼
PRODUCTS AND SYSTEMS
Real-world devices and infrastructure
Examples: Smartphones, hospitals, power grids,
          aircraft, internet, electric vehicles

Example of the complete chain: James Clerk Maxwell’s equations (fundamental physics) described how changing electric fields create magnetic fields and vice versa, predicting the existence of electromagnetic waves. Heinrich Hertz proved these waves exist (applied physics). Guglielmo Marconi used this knowledge to build the first radio transmitter (electronics engineering). Today we have 5G networks, satellite communication, and Wi-Fi — all descended from that single chain.

1.5 Evolution of Electronics — From Vacuum Tubes to Microchips

The history of electronics is the history of making the same functions smaller, faster, more reliable, and cheaper. Understanding this history explains why modern electronics are designed the way they are.

Generation 1 — Vacuum Tubes (1904 to 1950s)

A vacuum tube is a glass tube from which all air has been removed. Inside it, a heated metal filament releases electrons, which travel through the vacuum to a positive plate. By inserting a metal grid between the filament and plate, a small voltage on the grid can control a large current flow — making the tube act as an amplifier.

The first electronic computers, like ENIAC built in 1945, used approximately 18,000 vacuum tubes. ENIAC weighed 30 tons, occupied 1,800 square feet, and consumed 150,000 watts of power.It was capable of carrying out roughly 5,000 operations each second. Vacuum tubes failed frequently because the heated filament would burn out like a light bulb. Operators often spent more time replacing failed tubes than using the computer.

Early radios used vacuum tubes to amplify the tiny signal received by the antenna to a level strong enough to drive a loudspeaker. The warm, characteristic sound of old valve amplifiers comes from the non-linear behaviour of vacuum tubes, which some audiophiles still prefer today.

Generation 2 — Transistors (1947 to 1960s)

In 1947, William Shockley, John Bardeen, and Walter Brattain at Bell Laboratories invented the transistor — a solid-state device made from semiconductor material that could perform the same function as a vacuum tube but was physically tiny, used no heated filament, consumed far less power, and was far more reliable.

The transistor replaced the vacuum tube rapidly.A tiny transistor, no bigger than a fingernail, could take the place of a vacuum tube as large as a fist.Computers shrank from room-sized machines to cabinet-sized ones. Portable transistor radios became common — a device that would have been impossible with vacuum tubes because the power consumption was too high.

Generation 3 — Integrated Circuits (1960s onwards)

In 1958, Jack Kilby at Texas Instruments built the first integrated circuit — multiple transistors and other components fabricated together on a single piece of semiconductor materialRather than wiring individual parts together, all components were fabricated together on a single chip.

This changed everything. The first integrated circuits contained a handful of transistors. By the 1970s, Intel’s 4004 processor contained 2,300 transistors. By the 1990s, chips contained millions. Today, Apple’s M-series chips contain over 100 billion transistors in an area smaller than a postage stamp.

Generation 4 — Microprocessors and System-on-Chip (1970s to present)

A microprocessor is an entire computer processor on a single integrated circuit. The Intel 4004, introduced in 1971, became the first microprocessor available for commercial use.It ran at 740 kilohertz and could process 4 bits at a time.

Modern processors run at several gigahertz — billions of cycles per second — and process 64 bits simultaneously. System-on-Chip (SoC) designs integrate the processor, memory controller, graphics processor, wireless radios, and other components onto one chip, which is why your smartphone is simultaneously powerful, small, and battery-efficient.

Moore’s Law: In 1965, Gordon Moore observed that the number of transistors on a chip was doubling approximately every two years. This trend, referred to as Moore’s Law, remained accurate for more than fifty years. It explains why the same amount of money buys dramatically more computing power every few years. While the physical limits of silicon are now causing this doubling to slow, new materials and three-dimensional chip designs are continuing the trend.

1.6 Role of Electronics in Everyday Life

Electronics is not a specialist subject that only engineers encounter. It is embedded in nearly every object and system in modern life.

In the Home: Your television receives a digital broadcast signal, decodes it electronically, converts it to video and audio signals, drives millions of LED pixels simultaneously, and synchronizes audio through speakers — all in real time. Your microwave oven uses a magnetron vacuum tube to generate microwave radiation at exactly the frequency that water molecules absorb, heating food from the inside. Your home’s electrical circuit breakers use electromagnetic sensors to detect fault currents and mechanically trip the circuit before wiring overheats.

In Communication: Every phone call, text message, email, and video stream is converted to digital data, compressed by signal processing algorithms, modulated onto a radio carrier wave, transmitted through air or fiber, received, demodulated, decompressed, and converted back to sound, text, or video. This entire chain is electronics operating in milliseconds.

In Transportation: A modern car contains over 100 electronic control units — computers managing the engine, transmission, brakes, suspension, airbags, navigation, entertainment, climate control, and dozens of other systems. Electric vehicles add battery management systems, motor controllers, and regenerative braking electronics. Aircraft fly-by-wire systems use electronics to translate pilot inputs into control surface movements, with computers continuously making corrections to maintain stability.

In Healthcare: Heart rate monitors, blood glucose meters, pulse oximeters, insulin pumps, cochlear implants, cardiac pacemakers, defibrillators, digital X-ray systems, CT scanners, MRI machines, ultrasound devices, and robotic surgical systems are all electronics applied directly to keeping people alive and healthy.

PART 1 — FUNDAMENTALS OF APPLIED PHYSICS

Chapter 2 — Mechanics in Real-World Applications

2.1 What Is Mechanics?

Definition: Mechanics is the branch of physics that studies the motion of objects and the forces that cause or change that motion.

Mechanics is divided into two major branches. Kinematics describes how objects move — their position, velocity, and acceleration — without asking why they move. Dynamics asks why objects move — what forces cause acceleration and how to calculate the resulting motion.

Everything that moves — a car, a planet, a robot arm, a blood cell, a rocket — obeys the laws of mechanics. Understanding mechanics is the foundation for designing any physical system.

2.2 Kinematics — The Study of Motion

Definition: Kinematics is the study of motion without reference to the forces that cause it. It describes position, velocity, and acceleration as functions of time.

Core Quantities:

Position tells you where an object is. It is expressed in metres and includes both size and direction, making it a vector quantity.

Velocity tells you how fast position is changing and in which direction. Average velocity is calculated as:

Velocity (v) = Change in position (Δx) ÷ Change in time (Δt)

Units: metres per second (m/s)

Example:
Example: If a car covers 150 metres in 10 seconds, its speed can be calculated as distance divided by time:
Speed = 150 m ÷ 10 s = 15 m/s

Acceleration tells you how fast velocity is changing. If a car speeds up, slows down, or changes direction, it is accelerating. Average acceleration is:

Acceleration (a) = Change in velocity (Δv) ÷ Change in time (Δt)

Units: metres per second squared (m/s²)

Example:
Example: If a car increases its speed from 0 m/s to 30 m/s over 10 seconds, its acceleration is found by dividing the change in velocity by time:

Acceleration = (30 − 0) ÷ 10 = 3 m/s²

The Kinematic Equations — The Toolkit for Motion Problems:

These four equations relate position, velocity, acceleration, and time. They apply to any situation where acceleration is constant.

Equation 1: v = u + at
  v = final velocity (m/s)
  u = initial velocity (m/s)
  a = acceleration (m/s²)
  t = time (s)

This relationship states that the final velocity is equal to the starting velocity plus the product of acceleration and time:

v = u + at

Equation 2: s = ut + ½at²
  s = displacement (metres)

  "Distance equals initial velocity times time plus half acceleration times time squared"

Equation 3: v² = u² + 2as
  "Final velocity squared equals initial velocity squared plus two times acceleration times distance"

Equation 4: s = ½(u + v)t
  "Distance equals average velocity multiplied by time"

Worked Example — Braking Distance:

A car is travelling at 30 m/s (approximately 108 km/h). The driver brakes and the car decelerates at 7.5 m/s². What distance does the car cover before coming to a stop?

Known:
u = 30 m/s (starting velocity)
  v = 0 m/s  (final velocity — stopped)
  a = -7.5 m/s² (negative because decelerating)

Using Equation 3: v² = u² + 2as
  0² = 30² + 2 × (-7.5) × s
  0 = 900 - 15s
  15s = 900
  s = 60 metres

The car travels 60 metres before stopping.

This calculation is used in road safety engineering to determine safe following distances and speed limits for different road conditions.

2.3 Dynamics — Forces and Their Effects

Definition: Dynamics is the study of the forces that cause motion and the relationship between forces and the resulting acceleration of objects.

Newton’s Three Laws of Motion are the complete foundation of dynamics. Every structural design, every machine, every vehicle, every physical system is designed using these three laws.

Newton’s First Law, also known as the Law of Inertia:

Definition: An object at rest remains at rest, and an object in motion continues moving in a straight line at constant velocity, unless acted upon by an external net force.

What inertia means: Inertia is the tendency of an object to resist changes in its state of motion. The more mass an object has, the more inertia it has, and the harder it is to start, stop, or change its direction.

Real-World Example — Seatbelts: When a car stops suddenly, your body continues moving forward at the car’s original speed. This is Newton’s First Law — your body has inertia and wants to keep moving. Without a seatbelt, you would continue forward and hit the dashboard. The seatbelt applies the external force needed to decelerate you at the same rate as the car. In a crash at 60 km/h without a seatbelt, your body continues at 60 km/h until it hits something solid.

Newton’s Second Law — The Law of Acceleration:

Definition: The acceleration of an object is directly proportional to the net force applied to it and inversely proportional to its mass.

F = ma

F = Net force (Newtons, N)
m = Mass (kilograms, kg)
a = Acceleration (m/s²)

Rearranged:
a = F ÷ m   (more force = more acceleration; more mass = less acceleration)
m = F ÷ a   (to find mass from force and acceleration)

Real-World Example — Rocket Launch: A rocket has a mass of 500,000 kg. Its engines produce a thrust force of 7,500,000 N. What is its initial acceleration?

a = F ÷ m
a = 7,500,000 ÷ 500,000
a = 15 m/s²

But we must subtract gravitational acceleration (9.8 m/s²) because
gravity acts downward against the rocket:
Net acceleration = 15 - 9.8 = 5.2 m/s² upward

The rocket accelerates upward at 5.2 m/s² initially.
As fuel burns and the rocket gets lighter, acceleration increases.

Newton’s Third Law, often called the Law of Action and Reaction:

Definition: For every action force, there is an equal and opposite reaction force.

Important clarification: These forces act on different objects. The action force acts on one object; the reaction force acts on the other.

Real-World Example — Jet Engine: A jet engine forces hot gas backward at high speed (action force on the gas). The gas pushes the engine and aircraft forward with equal force (reaction force on the aircraft). This is why jet aircraft and rockets work even in the vacuum of space — they do not need air to push against, only to push exhaust gas out.

Real-World Example — Walking: When you walk, your foot pushes backward on the ground (action). The ground exerts a forward push on your foot as the reaction force.. This reaction force is what moves you forward. On an icy surface with little friction, you cannot generate this reaction force effectively and you slip.

2.4 Projectile Motion — Real-World Examples

Definition: Projectile motion is the motion of an object launched into the air that moves under the influence of gravity alone, following a curved path called a parabola.

The key insight is that projectile motion is two independent motions happening simultaneously. Horizontal motion has constant velocity — no force acts horizontally after launch (ignoring air resistance). Vertical motion has constant acceleration downward due to gravity (9.8 m/s²).

The horizontal position is given by multiplying the initial velocity’s cosine component by time:

x = v_0 \cos\theta , t

  (Constant velocity — distance increases steadily)

Vertical motion is described by:

y = v_0 \sin\theta , t - \tfrac{1}{2} g t^2

  (Gravity decelerates upward motion and accelerates downward)

Where:
  v₀ = initial speed (m/s)
θ represents the angle at which the object is projected, measured in degrees.
  t  = time (seconds)
g = 9.8 m/s², which represents the acceleration due to gravity.

Real-World Example — Sports: A footballer kicks a ball at 20 m/s at an angle of 30° above horizontal. How far does it travel?

Horizontal velocity = 20 × cos(30°) = 20 × 0.866 = 17.32 m/s
Vertical velocity   = 20 × sin(30°) = 20 × 0.5   = 10 m/s

Time to reach maximum height (vertical velocity = 0):
  t = 10 ÷ 9.8 = 1.02 seconds

Total flight time = 2 × 1.02 = 2.04 seconds (symmetric path)

Horizontal range = 17.32 × 2.04 = 35.3 metres

This is exactly the calculation used in sports analytics and in designing optimal kick strategies.

Real-World Example — Artillery and Ballistics: Military engineers use projectile motion equations to calculate the angle and initial speed needed to hit a target at a known distance, accounting for wind resistance and Earth’s curvature at long ranges.

2.5 Fluid Mechanics — Liquids and Gases in Motion

Definition: Fluid mechanics is the branch of mechanics that studies the behaviour of fluids — liquids and gases — at rest and in motion.

Fluids behave differently from solid objects because their molecules can move past each other. This gives fluids the ability to flow, to take the shape of their container, and to transmit pressure in all directions simultaneously.

Key Concept — Pressure:

Pressure (P) = Force (F) ÷ Area (A)

Units: Pascals (Pa) or N/m²

Example:
A person weighing 700 N stands on one foot with
a shoe area of 0.035 m².
Pressure = 700 ÷ 0.035 = 20,000 Pa

The same person on snowshoes with area 0.35 m²:
Pressure = 700 ÷ 0.35 = 2,000 Pa
(Ten times less pressure — snowshoes prevent sinking in snow)

Pascal’s Principle:

Definition: Pressure applied to an enclosed fluid is transmitted equally in all directions throughout the fluid.

This is the principle behind hydraulic systems. A small force applied over a small area creates a pressure that, when transmitted through hydraulic fluid, can produce a very large force over a larger area.

Hydraulic Press:
Pressure remains uniform at all points within the fluid.
  P₁ = P₂
  F₁/A₁ = F₂/A₂

  Example:
  Small piston area = 0.01 m², Force applied = 100 N
Pressure is calculated as force divided by area:
Pressure = 100 ÷ 0.01 = 10,000 Pa

The area of the larger piston is 0.5 m².
  Force produced = 10,000 × 0.5 = 5,000 N

  A 100 N input force produces a 5,000 N output force.
  This is how car hydraulic brakes and hydraulic lifts work.

2.6 Bernoulli’s Principle — Aircraft, Cars, and Pipes

Definition: Bernoulli’s Principle states that in a flowing fluid, an increase in the fluid’s speed occurs simultaneously with a decrease in pressure, and vice versa.

In simple terms: fast-moving fluid has lower pressure than slow-moving fluid. This relationship between speed and pressure is responsible for flight, racing car aerodynamics, atomizers, and many industrial processes.

Bernoulli's Equation:
P + ½ρv² + ρgh = constant

Where:
P   = pressure (Pa)
ρ   = fluid density (kg/m³)
v   = fluid velocity (m/s)
g   = gravitational acceleration (9.8 m/s²)
h   = height above reference (m)

Real-World Example — Aircraft Wings and Lift:

An aircraft wing (airfoil) is shaped so that the upper surface is curved and longer than the flat lower surface. Air flowing over the wing must travel a longer path over the top than along the bottom. To cover the longer upper path in the same time, air on top moves faster.

According to Bernoulli’s principle, air moving at higher speed exerts lower pressure.So the pressure above the wing is lower than below it.This difference in pressure generates an upward force known as lift. A commercial aircraft produces lift forces of several million Newtons, enough to keep a 400-tonne aircraft airborne.

Lift Force = Pressure difference × Wing area

Example:
Upper surface air speed: 85 m/s
Lower surface air speed: 70 m/s
Air density: 1.225 kg/m³
Wing area: 400 m²

Pressure above:  ½ × 1.225 × 85² = 4,426 Pa
Pressure below:  ½ × 1.225 × 70² = 3,003 Pa
Pressure difference: 4,426 - 3,003 = 1,423 Pa

Lift = 1,423 × 400 = 569,200 N (approximately 58 tonnes of lift force)

Real-World Example — Racing Cars:

Formula 1 cars use the same principle in reverse. Their wings are shaped so that air moving over the bottom travels faster than air over the top, creating lower pressure below the car than above it. This pushes the car down onto the track — called downforce. Downforce allows racing cars to corner at speeds that would send a normal car flying off the track.

Real-World Example — Venturi Meters:

A Venturi meter is a pipe with a narrowing section. When fluid flows through the narrowing, it speeds up and pressure drops. By measuring the pressure difference between the wide section and the narrow section, engineers calculate the flow rate precisely. This is used in water treatment plants, fuel systems, and industrial pipelines.

2.7 Applications in Robotics and Industrial Machines

Mechanics is the foundation of all robotic and machine design. Every robotic arm, CNC machine, conveyor system, and industrial press is designed using mechanics principles.

Torque — Rotational Force:

Definition: Torque is the force responsible for causing rotational motion.
It measures how effectively a force causes rotation.

Torque (τ) = Force (F) × Perpendicular distance from pivot (r)

Units: Newton-metres (N·m)

Example:
A robot arm motor applies a force of 50 N
at a distance of 0.4 m from the joint.
Torque = 50 × 0.4 = 20 N·m

This torque determines how much load the arm can lift
at that distance from the joint.

Robotic Arm Design: A robotic arm in a car factory must lift a car door weighing 150 N at a distance of 1.5 m from its shoulder joint. The required torque at the shoulder is 150 × 1.5 = 225 N·m. The motor at the shoulder must produce at least this much torque. Engineers select motors, gearboxes, and structural materials based on exactly these calculations.

Centre of Mass and Stability: For any machine or robot to be stable, its centre of mass must stay within its base of support. A robot picking up a heavy object shifts its overall centre of mass. Control systems continuously calculate this and adjust the robot’s posture to maintain balance — the same principle that keeps a human balanced while carrying a heavy bag.

Chapter 3 — Thermodynamics and Heat Transfer

3.1 What Is Thermodynamics?

Definition: Thermodynamics is the branch of physics that studies heat, temperature, and the relationship between heat energy and other forms of energy, particularly work.

The term originates from the Greek words therme (heat) and dynamis (power). Thermodynamics deals with how energy is transformed and transferred.Every engine, power station, refrigerator, heat pump, and biological cell operates according to thermodynamic principles. Understanding thermodynamics tells you the fundamental limits of what any engine or energy system can achieve — limits that cannot be broken by better engineering, only approached.

3.2 The Four Laws of Thermodynamics — Explained Simply

Zeroth Law — Temperature and Thermal Equilibrium:

Definition: If object A is in thermal equilibrium with object C, and object B is also in thermal equilibrium with object C, then A and B are in thermal equilibrium with each other.

This is the logical foundation for temperature measurement. It means temperature is a meaningful, consistent quantity. A thermometer works because when it reaches thermal equilibrium with your body, it reads your body’s temperature. This law is numbered “Zeroth” because it was recognized after the other three but is logically more fundamental.

First Law — Conservation of Energy:

Definition: Energy cannot be created or destroyed, only converted from one form to another. The total energy of a closed system remains constant.

Mathematical Statement:
ΔU = Q - W

ΔU = Change in internal energy of the system
Q represents the heat transferred into the system, taken as positive when energy enters.
W denotes the work performed by the system, considered positive when the system does work on its surroundings.

Example — Car Engine:
Fuel combustion releases 1000 J of heat energy (Q = 1000 J)
Engine does 300 J of mechanical work (W = 300 J)
Change in internal energy = 1000 - 300 = 700 J
(This 700 J is waste heat that must be removed by the cooling system)

Real-World Implication: No engine can produce more energy than it consumes. Claims of “over-unity” or “free energy” devices violate this law and are impossible.

Second Law — Direction of Heat Flow and Entropy:

Definition: Heat naturally flows from hot objects to cold objects, never spontaneously from cold to hot. In any natural process, the total entropy (disorder) of an isolated system tends to increase.

What entropy means: Entropy is a measure of disorder or randomness in a system. A neat pile of bricks has low entropy. After an earthquake knocks them into a random pile, entropy is high. You never spontaneously see a random pile of bricks arrange itself into a neat stack — that would require entropy to decrease spontaneously, which the Second Law forbids.

Real-World Implication 1: No heat engine can be 100% efficient. Some heat always flows to the cold reservoir as waste. This is not a design failure — it is a law of physics.

Real-World Implication 2: A refrigerator moves heat from cold (inside the fridge) to hot (the room). This seems to violate the Second Law, but it does not — the refrigerator uses electrical energy to drive this process, and if you count the total entropy change including the power station producing that electricity, total entropy still increases.

Third Law — Absolute Zero:

Definition: As a system’s temperature approaches absolute zero (0 Kelvin or -273.15°C), its entropy approaches a minimum constant value. It is impossible to reach exactly absolute zero in a finite number of steps.

What this means practically: No refrigeration system can ever cool something to exactly -273.15°C. You can get very close — physicists have achieved temperatures within billionths of a degree of absolute zero — but you can never reach it exactly.

3.3 Heat Transfer — Conduction, Convection, Radiation

Heat moves from hot to cold by three distinct mechanisms. Understanding these is essential for designing engines, buildings, electronics cooling systems, and spacecraft.

Conduction:

Definition: Conduction is the transfer of heat through direct contact between particles, without the material itself moving. Particles with high kinetic energy (hot particles) transfer energy to neighboring particles with lower kinetic energy (cold particles) through collisions.

Fourier's Law of Conduction:
Q/t = kA(ΔT/d)

Q/t = Heat flow rate (Watts = Joules per second)
k   = Thermal conductivity (W/m·K) — property of the material
A   = Cross-sectional area (m²)
ΔT  = Temperature difference (°C or K)
d   = Thickness of material (m)

Material thermal conductivities:
  Silver:    420 W/m·K  (excellent conductor)
  Copper:    385 W/m·K  (excellent conductor)
  Aluminium: 205 W/m·K  (good conductor)
  Steel:     50  W/m·K  (moderate conductor)
  Glass:     1.0 W/m·K  (poor conductor)
  Wood:      0.15 W/m·K (insulator)
  Air:       0.025 W/m·K (very poor conductor — good insulator)

Real-World Example — Computer Chip Cooling: A processor generates 100 W of heat in an area of 0.0001 m². Without a heatsink, this would raise the chip temperature dangerously in seconds. A copper heatsink (k=385) conducts heat rapidly away from the chip to cooling fins, where a fan moves cool air across the fins. The entire system is designed using conduction equations to keep the chip below its maximum operating temperature of typically 95°C.

Convection:

Definition: Convection is the transfer of heat by the bulk movement of a fluid (liquid or gas). Hot fluid expands, becomes less dense, rises, and is replaced by cooler, denser fluid — creating a convection current.

Natural Convection Example — Room Heating: A radiator heats the air directly next to it. This hot air rises because it is less dense. Cooler air from higher in the room sinks to replace it. This creates a circulation pattern that gradually heats the entire room without any fans.

Forced Convection Example — Car Cooling System: A car engine water pump forces coolant through passages in the engine block. The coolant absorbs heat from the hot metal, is pumped to the radiator, flows through thin tubes where air (blown by the cooling fan) removes the heat, and is then pumped back to the engine. This is forced convection — mechanical pumping drives the fluid movement rather than natural density differences.

Radiation:

Definition: Radiation is the transfer of heat by electromagnetic waves — specifically infrared radiation — without requiring any medium. Heat can be radiated through a vacuum.

Stefan-Boltzmann Law:
P = εσAT⁴

P = Power radiated (Watts)
ε = Emissivity (0 to 1 — how effectively the surface radiates)
σ represents the Stefan–Boltzmann constant, equal to 5.67 × 10⁻⁸ W/m²·K⁴.
A = Surface area (m²)
T = Temperature in Kelvin (K = °C + 273)

Key point: Radiation depends on T⁴.
Doubling temperature multiplies radiation by 16 times.
This is why very hot objects (like heating elements) glow.

Real-World Example — Spacecraft Thermal Control: A spacecraft in orbit faces one of the most extreme thermal engineering challenges. In sunlight, it absorbs intense solar radiation. In shadow, it has no heat source at all. There is no atmosphere for convection. The only way to reject waste heat is by radiation. Spacecraft are covered in carefully chosen materials with specific emissivity values, and some use louvers — mechanical shutters that open or close to adjust the effective emissivity of radiating surfaces.

3.4 Heat Engines — How Mechanical Work Is Produced from Heat

Definition: A heat engine is a device that converts heat energy into mechanical work by operating cyclically between a hot reservoir and a cold reservoir.

Every heat engine — a steam engine, petrol engine, diesel engine, jet engine, or gas turbine power plant — works by the same fundamental principle: absorb heat from something hot, convert part of that heat into useful mechanical work, and reject the remaining heat to something cold.

Energy Flow in a Heat Engine:

HOT RESERVOIR (Fuel combustion, steam boiler)
      |
      | Qh = Heat absorbed from hot source
      ▼
   HEAT ENGINE
      |          |
      |          | W = Useful mechanical work output
      |          ▼
      | Qc = Waste heat rejected to cold reservoir
      ▼
COLD RESERVOIR (atmosphere, cooling water, exhaust)

First Law: Qh = W + Qc
          (All heat in = work out + waste heat out)

The efficiency can be expressed as the ratio of work output to heat input, or equivalently as the difference between hot and cold heat divided by the heat input:

\eta = \frac{W}{Q_h} = \frac{Q_h - Q_c}{Q_h}

Real-World Example — Car Internal Combustion Engine:

A petrol engine is a heat engine. The “hot reservoir” is the burning fuel-air mixture inside the cylinder, which reaches temperatures of approximately 2,500°C. The combustion pressure forces the piston down — this is the work output that eventually turns the wheels. The exhaust gases leaving the cylinder at ~500°C are the “cold reservoir” — the waste heat. A typical petrol engine is about 25-35% efficient, meaning 65-75% of the fuel’s energy becomes waste heat rather than useful work. This is why engines need cooling systems and why exhaust pipes are hot.

3.5 The Carnot Engine — Maximum Theoretical Efficiency

Definition: The Carnot engine is a theoretical heat engine that operates with the maximum possible efficiency. No real engine can exceed Carnot efficiency.

Carnot Efficiency:
η_max = 1 - (Tc/Th)

η_max = Maximum possible efficiency (as a decimal, 0 to 1)
Tc    = Temperature of cold reservoir in Kelvin
Tₕ represents the temperature of the hot reservoir, measured in Kelvin.

Remember: Kelvin = Celsius + 273

Example — Power Station:
Steam temperature (hot): 600°C = 873 K
Cooling water temperature (cold): 25°C = 298 K

Carnot efficiency = 1 - (298/873) = 1 - 0.341 = 0.659 = 65.9%

This means even a theoretically perfect engine operating between
these temperatures could only convert 65.9% of heat to work.
Real power stations achieve about 45% because of additional losses.

Why This Matters: The Carnot efficiency sets the absolute ceiling for any heat engine operating between two given temperatures. Engineers cannot break this limit. To improve efficiency, they must either raise the hot temperature (better materials for high-temperature steam) or lower the cold temperature (better cooling systems). This is why advanced power stations use supercritical steam at very high temperatures and pressures.

3.6 Refrigeration and Air Conditioning Systems

Definition: A refrigeration system is a heat engine operating in reverse — it uses mechanical work (from an electric motor) to move heat from a cold reservoir (inside the fridge) to a hot reservoir (the room), against the natural direction of heat flow.

Refrigeration Cycle — Four Steps:

Step 1 — Evaporation:
Liquid refrigerant enters the evaporator (inside the fridge).
It absorbs heat from the fridge interior and evaporates into gas.
This cools the fridge interior.
(This is why you feel cold when alcohol evaporates on your skin —
it absorbs heat from your skin to evaporate)

Step 2 — Compression:
The compressor (electric motor) compresses the refrigerant gas.
Compression raises its temperature significantly above room temperature.

Step 3 — Condensation:
Hot compressed gas flows to the condenser (metal coils on the back
or bottom of the fridge, exposed to room air).
It releases heat to the room air and condenses back to liquid.
This is why the back of a fridge is warm.

Step 4 — Expansion:
Liquid refrigerant passes through an expansion valve.
Pressure drops rapidly, temperature drops sharply.
The cold liquid returns to the evaporator and the cycle repeats.

Coefficient of Performance (COP):

COP_refrigerator = Qc ÷ W

Qc = Heat removed from cold reservoir (fridge interior)
W  = Work input (electrical energy to the compressor motor)

Example:
A fridge removes 200 J of heat from its interior
using 80 J of electrical energy.
COP = 200 ÷ 80 = 2.5

A COP of 2.5 means for every 1 joule of electricity used,
A total of 2.5 joules of heat is extracted from the refrigerator.
This is why COP is always greater than 1 — it is not
generating heat, just moving it.

Air Conditioning works identically. The evaporator coil is inside the room — it absorbs heat from the room air and cools it. The condenser coil is outside — it releases the absorbed heat to the outdoor air. The compressor moves refrigerant between them. When an air conditioner is rated at 3,500 Watts of cooling capacity but uses only 1,000 Watts of electricity, the other 2,500 Watts of heat removed comes from the room — it is moved, not created.

Chapter 4 — Electromagnetism in Practice

4.1 What Is Electromagnetism?

Definition: Electromagnetism is the branch of physics that studies electric fields, magnetic fields, and the fundamental relationship between them. It describes how electric charges and currents create fields, how those fields exert forces on charges and currents, and how changing electric fields create magnetic fields and changing magnetic fields create electric fields.

James Clerk Maxwell unified electricity and magnetism into a single theory in 1865, showing they are two aspects of one phenomenon. His four equations — Maxwell’s equations — are among the most important results in all of physics. They predicted the existence of electromagnetic waves and showed that light itself is an electromagnetic wave.

4.2 Electric Fields — Definition and Behaviour

Definition: An electric field is a region of space surrounding a charged object in which another charged object experiences a force. The electric field represents the force per unit charge at every point in space.

Electric Field Strength:
E = F ÷ q

E = Electric field strength (Newtons per Coulomb, N/C or Volts/metre, V/m)
F = Force on test charge (Newtons)
q = Magnitude of test charge (Coulombs)

Coulomb's Law — Force between two charges:
F = k × (q₁ × q₂) ÷ r²

k  = Coulomb's constant = 9 × 10⁹ N·m²/C²
q₁ = First charge (Coulombs)
q₂ = Second charge (Coulombs)
r  = Distance between charges (metres)

Like charges (both positive or both negative) repel.
Unlike charges (positive and negative) attract.

Example:
Two charges of +2 μC and -3 μC are 0.1 m apart.
F = 9×10⁹ × (2×10⁻⁶ × 3×10⁻⁶) ÷ (0.1)²
F = 9×10⁹ × 6×10⁻¹² ÷ 0.01
F = 5.4 N of attractive force

Real-World Example — Capacitors:

A capacitor stores energy by creating an electric field between two parallel conducting plates separated by an insulator (dielectric).A voltage source drives charge onto the plates.The electric field between the plates stores the energy.

Capacitance: C = εA ÷ d

C = Capacitance (Farads)
ε = Permittivity of dielectric material (F/m)
A = Area of plates (m²)
d = Distance between plates (m)

Energy stored in capacitor:
E = ½CV²

Example:
A 100 μF capacitor charged to 12 V stores:
E = ½ × 100×10⁻⁶ × 12² = 0.0072 J

Applications: Camera flash units store energy in large
capacitors and release it in microseconds as a bright flash.
Smoothing capacitors in power supplies remove ripple from
rectified AC voltage. Filter capacitors in audio systems
It blocks direct current while permitting alternating audio signals to pass through.

4.3 Magnetic Fields — Definition and Behaviour

Definition: A magnetic field is an area in which magnetic forces can be observed. Magnetic fields are created by moving electric charges (electric currents) and by magnetic materials.

Magnetic Force on a Moving Charge:
F = qvB sin(θ)

F = Magnetic force (Newtons)
q = Charge (Coulombs)
v = Velocity of charge (m/s)
B = Magnetic field strength (Tesla, T)
θ denotes the angle between the velocity vector and the magnetic field.

Note: The force is perpendicular to both the velocity
and the magnetic field — it causes circular motion.

Magnetic Force on a Current-Carrying Wire:
F = BIL sin(θ)

I = Current (Amperes)
L = Length of wire in the field (metres)
B = Magnetic field strength (Tesla)

Real-World Example — Electric Motors:

An electric motor works because a current-carrying wire in a magnetic field experiences a force. The wire is wound into a coil (armature) placed between permanent magnets. When current flows through the coil, each side of the coil experiences a force in opposite directions, causing the coil to rotate. This rotation is the motor’s mechanical output.

Motor Torque:
τ = NIAB sin(θ)

N = Number of turns in the coil
I = Current (Amperes)
A = Area of the coil (m²)
B = Magnetic field strength (Tesla)
θ = Angle between coil and field

Example:
A motor coil has 100 turns, carries 2 A of current,
has an area of 0.01 m², in a field of 0.5 T.

Maximum torque (when θ = 90°):
τ = 100 × 2 × 0.01 × 0.5 = 1 N·m

Real-World Example — Transformers:

A transformer changes AC voltage levels using electromagnetic induction. Two coils (primary and secondary) are wound on the same iron core. Alternating current in the primary coil creates a changing magnetic field in the core. The varying magnetic field generates a voltage in the secondary coil. The ratio of voltages equals the ratio of turns.

Transformer Equation:
Vp/Vs = Np/Ns

Vp represents the voltage in the primary coil, while Vs refers to the voltage in the secondary coil.
Np indicates the number of turns in the primary coil, and Ns denotes the number of turns in the secondary coil.


Example — Step-Down Transformer:
Primary: 230 V, 1000 turns
Secondary: 12 V, ? turns

Ns = Np × (Vs/Vp) = 1000 × (12/230) = 52 turns

For an ideal transformer (no losses):
Vp × Ip = Vs × Is (power in = power out)

If Vs = 12 V and Is = 5 A:
Input current Ip = (Vs × Is)/Vp = (12 × 5)/230 = 0.26 A

Transformers in the power grid step voltage up to hundreds of
thousands of volts for long-distance transmission (low current
means low resistive losses in wires), then step it back down
to 230 V for homes. This is why AC power distribution is
efficient over long distances.

4.4 Electromagnetic Waves — Types and Properties

Definition: Electromagnetic waves are waves of oscillating electric and magnetic fields that travel through space at the speed of light. They require no medium — they can travel through a vacuum.

Electromagnetic Spectrum (from low to high frequency):

Radio waves:      Frequency < 300 MHz   Wavelength > 1 m
Microwaves:       300 MHz to 300 GHz    1 mm to 1 m
Infrared:         300 GHz to 430 THz    700 nm to 1 mm
Visible light spans frequencies from about 430 THz to 750 THz and wavelengths ranging from roughly 400 nm to 700 nm.
Ultraviolet:      750 THz to 30 PHz     10 nm to 400 nm
X-rays:           30 PHz to 30 EHz      0.01 nm to 10 nm
Gamma rays:       > 30 EHz              < 0.01 nm

All travel at speed of light: c = 3 × 10⁸ m/s
Relationship: c = f × λ
  f = frequency (Hz)
  λ = wavelength (metres)

Real-World Example — Wi-Fi:

Wi-Fi uses radio waves at 2.4 GHz or 5 GHz. The router converts data into modulated radio waves and broadcasts them. Your device’s antenna receives these waves. The electronics decode the modulation pattern to recover the original data. The physics of why 5 GHz Wi-Fi has shorter range than 2.4 GHz: higher frequency electromagnetic waves are absorbed more by walls and obstacles. 2.4 GHz penetrates walls better; 5 GHz carries more data but over shorter distances.

Chapter 5 — Optics and Lasers

5.1 What Is Optics?

Definition: Optics is the branch of physics that studies the behaviour and properties of light and how it interacts with matter — including reflection, refraction, diffraction, and interference.

Light is an electromagnetic wave. It travels at 3 × 10⁸ m/s in a vacuum. When light hits a surface or passes from one material to another, it behaves in predictable ways governed by simple laws.

5.2 Reflection — Mirrors and Applications

Definition: Reflection is when light bounces off a surface. The angle at which light hits the surface equals the angle at which it bounces back.

Law of Reflection:
Angle of incidence = Angle of reflection
θᵢ = θᵣ

Both angles measured from the NORMAL
(an imaginary line perpendicular to the surface)

Types of Reflection:
Specular — smooth surface, clear image (mirror)
Diffuse  — rough surface, scattered light (wall)

Real-World Examples:

Flat mirrors in bathrooms use specular reflection to produce accurate images. Concave mirrors (curved inward) converge light to a focal point — used in car headlights (reflector behind the bulb), satellite dishes, and reflecting telescopes. Convex mirrors (curved outward) diverge light to give a wide field of view — used as shop security mirrors and car side mirrors marked “objects may be closer than they appear.”

5.3 Refraction — Lenses and Applications

Definition: Refraction is the bending of light when it passes from one transparent medium into another with a different optical density. Light bends because it changes speed in different materials.

Snell's Law:
n₁ sin(θ₁) = n₂ sin(θ₂)

n₁ = Refractive index of first medium
n₂ = Refractive index of second medium
θ₁ = Angle of incidence
θ₂ = Angle of refraction

Refractive Indices:
Air:          1.00
Water:        1.33
Glass has a refractive index of approximately 1.50.
Diamond:      2.42

Higher refractive index = light slows more = bends more

Example:
Light hits water at 30° from the normal.
n₁ sinθ₁ = n₂ sinθ₂
1.00 × sin(30°) = 1.33 × sinθ₂
0.5 = 1.33 × sinθ₂
sinθ₂ = 0.376
θ₂ = 22.1°

Light bends toward the normal when entering denser medium.

Lenses use refraction to focus or diverge light:

Convex Lens (converging):
Thicker in middle — brings parallel rays to a focal point.
Used in: magnifying glasses, cameras, eyes, microscopes

Concave Lens (diverging):
Thinner in middle — spreads parallel rays outward.
Used in: correcting short-sightedness (myopia)

Lens Equation:
1/f = 1/v + 1/u

f = focal length (metres)
v = image distance from lens
u = object distance from lens

Magnification:
M = v/u = image height / object height

Real-World Example — The Human Eye: The eye has a convex lens that focuses light onto the retina. Muscles change the lens shape (accommodation) to focus objects at different distances. Short-sightedness means the eye is too long — image forms in front of the retina. A concave corrective lens diverges light before entry, shifting the focal point backward to the retina. Long-sightedness is the opposite — corrected with a convex lens.

Real-World Example — Camera: A camera lens focuses light from a scene onto an image sensor. Zoom lenses contain multiple lens elements that move relative to each other to change effective focal length, adjusting how much of the scene is captured and how large subjects appear.

5.4 What Is a Laser?

Definition: A laser (Light Amplification by Stimulated Emission of Radiation) is a device that produces an intense, narrow beam of coherent light — meaning all the light waves have the same frequency, are in phase, and travel in the same direction.

How a Laser Works — Three Key Processes:

1. Pumping:
   Energy is supplied to the laser medium (gas, crystal, semiconductor)
   Electrons in atoms absorb energy and jump to higher energy levels
   (excited state)

2. Stimulated Emission:
   When an excited electron encounters a photon of the right energy,
   it emits an identical photon and drops to a lower energy level.
   The two photons are identical in frequency, phase, and direction.
   These two photons trigger more emissions — chain reaction.

3. Optical Cavity Amplification:
   Mirrors at both ends of the laser medium reflect photons back
   and forth, building up the stimulated emission.
   One mirror is partially transparent — the laser beam exits here.

Result: An intense, monochromatic, coherent, highly directional beam.

Properties of Laser Light vs Ordinary Light:

Ordinary Light:           Laser Light:
Multiple frequencies      Single frequency (monochromatic)
Random phase              Same phase (coherent)
Spreads in all directions  Narrow, parallel beam (collimated)
Low intensity ranges up to extremely high intensity.

5.5 Applications of Lasers

Medical — LASIK Eye Surgery: A laser (excimer laser, ultraviolet wavelength) precisely removes microscopic layers of corneal tissue to reshape the cornea and correct the eye’s focusing. Because the laser removes tissue in pulses of nanoseconds, there is no heat damage to surrounding tissue. The precision is measured in micrometres.

Medical — Cancer Treatment: Lasers destroy tumours by heating tissue. Surgeons can guide a laser through a fiber optic cable inserted into the body through a tiny incision, destroying a tumour without open surgery. Photodynamic therapy uses laser light to activate a light-sensitive drug that kills cancer cells selectively.

Industrial — Cutting and Welding: High-power CO₂ lasers cut sheet metal, plastic, and fabric with extreme precision. A 6 kW laser is powerful enough to slice through a 20 mm thick steel plate.. Laser welding joins metals by melting a precise area without mechanical contact — used in car manufacturing, electronics, and medical device production.

Communication — Fiber Optics: Laser pulses travel through glass fiber optic cables as light signals. Each pulse represents digital data. Modern fiber optic systems transmit trillions of bits per second over thousands of kilometres by using multiple laser wavelengths simultaneously on the same fiber (wavelength division multiplexing).

Consumer — Barcode Scanners, Blu-ray: Supermarket barcode scanners use a low-power laser and detector to read the pattern of black and white bars. Blu-ray discs use a blue-violet laser (405 nm wavelength) — the short wavelength allows smaller pits to be read, storing more data than red-laser DVDs.

5.6 Fiber Optics and Telecommunications

Definition: Fiber optics transmits information as pulses of light through thin strands of ultra-pure glass or plastic using the principle of total internal reflection.

Total Internal Reflection:
When light passes from a more optically dense medium into a less dense one
at an angle greater than the critical angle, ALL light is
reflected back — none escapes. This is total internal reflection.

Critical Angle:
sin(θc) = n₂/n₁

For glass (n=1.5) to air (n=1.0):
sin(θc) = 1.0/1.5 = 0.667
θc = 41.8°

Any light hitting the glass-air boundary at more than 41.8°
from the normal is totally reflected back into the glass.

Fiber Structure:
Core:     High refractive index glass — light travels here
Cladding: Lower refractive index glass — causes total internal
          reflection, keeping light inside the core
Buffer:   Protective plastic coating

Advantages over copper wire: Fiber optic cables carry far more data (terabits vs gigabits per second), have zero electromagnetic interference, can span much longer distances without signal amplification (up to 80 km between repeaters), and are immune to electrical noise. The global internet backbone is almost entirely fiber optic.

Chapter 6 — Quantum Physics in Modern Applications

6.1 What Is Quantum Physics?

Definition: Quantum physics (quantum mechanics) is the branch of physics that describes the behaviour of matter and energy at the atomic and subatomic scale, where classical physics fails and the rules are fundamentally different.

At the quantum scale, energy comes in discrete packets called quanta (plural of quantum). Objects do not have definite positions and velocities simultaneously. The same object can behave like a wave or like a particle depending on how you observe it. These are not approximations or models — they are the precise reality of how matter behaves at small scales.

Classical physics (Newton’s laws, Maxwell’s equations) works perfectly at everyday scales — cars, bridges, planets. But when you look at individual atoms, electrons, and photons, classical physics gives completely wrong predictions. Quantum mechanics was developed in the early 20th century to fix this.

6.2 Wave-Particle Duality

Definition: Wave-particle duality is the principle that every quantum object — photons, electrons, atoms — exhibits both wave-like and particle-like properties, depending on the type of experiment performed.

The Double-Slit Experiment — The Core Demonstration:

When you fire electrons one at a time at a barrier with two slits, you would expect each electron to go through one slit and land in one of two bands on the detector screen behind. Instead, over many electrons, an interference pattern builds up — alternating bright and dark bands exactly like a wave passing through two openings and interfering with itself.

The electron behaves as a wave while travelling, passing through both slits simultaneously, interfering with itself. When detected on the screen, it behaves as a particle, landing at a single point. The act of measuring which slit it went through destroys the interference pattern.

Practical Application — Electron Microscopes: Because electrons have wave properties with wavelengths far smaller than visible light, electron microscopes can image structures at the atomic scale — resolving individual atoms. Optical microscopes are limited by the wavelength of visible light (~400-700 nm). Electron microscopes achieve resolution of 0.05 nm — imaging individual atoms and molecules, essential for materials science and biology.

6.3 Heisenberg’s Uncertainty Principle

Definition: It is fundamentally impossible to simultaneously know both the exact position and exact momentum (velocity × mass) of a quantum particle with arbitrary precision.

Heisenberg's Uncertainty Principle:
Δx × Δp ≥ ℏ/2

Δx = Uncertainty in position (metres)
Δp = Uncertainty in momentum (kg·m/s)
ℏ  = Reduced Planck's constant = 1.055 × 10⁻³⁴ J·s

The more precisely you know position, the less
precisely you can know momentum, and vice versa.

This is NOT a limitation of instruments.
It is a fundamental property of nature.

Practical Implication: This principle explains why electrons do not spiral into the nucleus (as classical physics predicts they should). If an electron were confined to the nucleus volume, the uncertainty in position would be tiny, making the uncertainty in momentum (and therefore kinetic energy) enormous — far too large to remain confined. Electrons settle at the lowest energy orbit that the uncertainty principle permits.

6.4 Quantum Dots

Definition: Quantum dots are semiconductor nanocrystals so small (2-10 nanometres) that quantum effects control their optical properties. Their size determines what colour of light they emit.

In a large piece of semiconductor, electrons can have a continuous range of energies. In a quantum dot so small that electrons are confined in all three dimensions, energy levels become discrete — like the energy levels of an atom. When an electron falls to a lower energy state, it releases a photon. The energy (and therefore colour) of that photon depends on the size of the quantum dot.

Quantum dot size → emitted colour:
Smaller dots → higher energy → blue/violet light
Bigger dots correspond to lower energy, producing red or orange light.

By controlling size precisely during manufacturing,
you control the exact colour emitted.

Applications: QLED televisions use quantum dots to produce extremely pure, accurate colours. Quantum dots convert the blue LED backlight into precise red and green colours — together producing vivid white light with perfect colour balance. In medicine, quantum dots are used as biological labels — attached to antibodies, they glow at a specific colour under ultraviolet light, allowing researchers to track specific proteins or cells in tissue.

6.5 Quantum Computing

Definition: Quantum computing uses quantum mechanical phenomena — superposition and entanglement — to perform computations that would be impossible or impractically slow on classical computers.

Classical Computer:
  Uses bits — each bit is either 0 or 1
  8 bits = 1 byte = 256 possible states, but only ONE at a time

Quantum Computer:
  Uses qubits — each qubit can be 0, 1, or both simultaneously
  (superposition)
  8 qubits = 256 states ALL AT THE SAME TIME during computation

Superposition:
  A qubit in superposition is not definitely 0 or definitely 1.
  It exists in both states simultaneously until measured.
  This allows a quantum computer to explore all possible
  solutions to a problem simultaneously.

Entanglement:
  Two qubits can be entangled — the state of one
immediately defines the state of the other, regardless
  of distance. This allows qubits to work as a coordinated
  system with exponentially more power than classical bits.

Real-World Application — Drug Discovery: Simulating how a molecule will fold and interact with proteins requires computing power that grows exponentially with molecule size. Classical computers can only simulate small molecules accurately. A quantum computer with sufficient qubits could simulate complex protein folding and drug-receptor interactions in hours rather than years, potentially accelerating the discovery of drugs for cancer, Alzheimer’s, and antibiotic-resistant bacteria.

Current State: Google’s Sycamore processor (54 qubits) performed a specific calculation in 200 seconds that Google claimed would take the world’s fastest classical supercomputer 10,000 years. However, quantum computers are not yet general-purpose — they outperform classical computers only on specific types of problems.

6.6 Quantum Sensors

Definition: Quantum sensors exploit quantum effects to measure physical quantities with precision far beyond what classical instruments can achieve.

Atomic Clocks: Use the precise, stable frequency of microwave radiation emitted by caesium atoms transitioning between energy levels. These clocks lose or gain less than one second in 300 million years. They are the foundation of GPS (each satellite carries an atomic clock), telecommunications timing, and scientific metrology.

Quantum Gravimeters: Measure tiny variations in Earth’s gravitational field by observing the quantum interference of falling atoms. They can detect underground cavities, mineral deposits, and changes in groundwater levels without any drilling — used in geological surveys and civil engineering.

PART 2 — FUNDAMENTALS OF ELECTRONICS

Chapter 7 — Basics of Electrical Circuits

7.1 What Is an Electrical Circuit?

Definition: An electrical circuit is a closed loop through which electric charge flows. It must have a source of electrical energy (battery or power supply), conducting pathways (wires), and at least one load (component that uses the electrical energy).

Basic Circuit Components:
Source  → provides energy (battery, generator, power supply)
Wire    → conducts current between components
Load    → uses energy (bulb, motor, resistor, speaker)
Switch  → opens or closes the circuit path

If the circuit path is complete (no breaks), current flows. If any part is disconnected (open circuit), current stops completely.

7.2 Voltage, Current, and Resistance

These three quantities are the foundation of all circuit analysis.

VOLTAGE (V) — Electric Potential Difference
Definition: The energy transferred per unit charge
across two points in a circuit.
Unit: Volts (V)
Analogy: Water pressure in a pipe —
         higher pressure pushes more water through

CURRENT (I) — Rate of Charge Flow
Definition: The amount of electric charge passing
            a point in a circuit per second.
Unit: Amperes (A) = Coulombs per second
Analogy: Flow rate of water through a pipe

RESISTANCE (R) — Opposition to Current Flow
Definition: The characteristic of a material that resists
            the flow of electric current.
Unit: Ohms (Ω)
Analogy: Narrow pipe restricts water flow

Relationship:
High voltage → more current (more pressure → more flow)
High resistance → less current (narrow pipe → less flow)

7.3 Ohm’s Law

Definition: Ohm’s Law states that the current through a conductor is directly proportional to the voltage across it and inversely proportional to its resistance, provided temperature remains constant.

Ohm's Law:
V = I × R

Rearranged:
I = V/R    (current = voltage ÷ resistance)
R = V/I    (resistance = voltage ÷ current)

Units check:
Volts = Amperes × Ohms
V = A × Ω

Example 1 — Finding Current:
A 12V battery connected to a 4Ω resistor.
I = V/R = 12/4 = 3 A

Example 2 — Finding Resistance:
A circuit has 9V supply and 0.5A current flowing.
R = V/I = 9/0.5 = 18 Ω

Example 3 — Finding Voltage:
Current of 2A flows through 10Ω resistance.
Using Ohm’s law, the voltage is given by current multiplied by resistance:

V = IR = 2 \times 10 = 20,\text{V}

Power (Watts = energy used per second):
Electrical power can be written in different equivalent forms:

P = VI = I^2 R = \frac{V^2}{R}

Example:
A 60W bulb on 230V supply:
Using the power–voltage relationship, the current is:

I = \frac{P}{V} = \frac{60}{230} = 0.26,\text{A}
R = V/I = 230/0.26 = 885 Ω

7.4 Kirchhoff’s Laws

Kirchhoff’s Current Law (KCL): Definition: The total current entering a junction equals the total current leaving it. Charge cannot accumulate at a node.

ΣI_in = ΣI_out

Example:
Currents entering a junction: 3A and 2A
Current leaving = 3 + 2 = 5A

Kirchhoff’s Voltage Law (KVL): Definition: The sum of all voltages around any closed loop in a circuit equals zero. Energy supplied by sources equals energy consumed by loads.

ΣV = 0 (around any closed loop)

Example — Simple loop with one battery and two resistors:
Battery supplies 12V
Resistor 1 drops 7V
Resistor 2 drops ?V

12 - 7 - V₂ = 0
V₂ = 5V

7.5 Series vs Parallel Circuits

SERIES CIRCUIT:
Components connected end-to-end in one single path.

Properties:
Same current flows through all components: I_total = I₁ = I₂ = I₃
In a circuit, the total voltage is shared among components, so the sum of individual voltages equals the overall voltage:

V_{\text{total}} = V_1 + V_2 + V_3
Resistances add directly:                  R_total = R₁ + R₂ + R₃

Example:
Three resistors: 2Ω, 3Ω, 5Ω in series with 20V battery
R_total = 2+3+5 = 10Ω
I = 20/10 = 2A (same through all)
V₁ = 2×2=4V, V₂=2×3=6V, V₃=2×5=10V

Problem: If one component fails (open circuit),
ALL components stop working. Old Christmas lights.

PARALLEL CIRCUIT:
Components connected across the same two points.

Properties:
Same voltage across all components: V_total = V₁ = V₂ = V₃
Current divides among branches:     I_total = I₁ + I₂ + I₃
Reciprocal resistance formula:      1/R_total = 1/R₁ + 1/R₂ + 1/R₃

Example:
Two resistors 6Ω and 3Ω in parallel with 12V battery
1/R_total = 1/6 + 1/3 = 1/6 + 2/6 = 3/6
R_total = 2Ω
I_total = 12/2 = 6A
I₁ = 12/6 = 2A, I₂ = 12/3 = 4A (check: 2+4 = 6A ✓)

Advantage: If one branch fails, others continue working.
Household wiring uses parallel circuits.

7.6 Resistors, Capacitors, and Inductors

Resistors resist the flow of electric current and convert electrical energy into heat. Used to limit current, divide voltages, and set operating conditions for transistors. The colour band code on resistors encodes their resistance value. Standard values follow the E12 or E24 series.

Capacitors store energy in an electric field between two plates. They block DC (once charged, no DC flows) but allow AC to pass. Used in power supply filtering (smoothing rectified AC), signal coupling, timing circuits, and energy storage. Capacitance measured in Farads (F), typically microfarads (μF) or picofarads (pF).

Capacitor Charging:
V(t) = V_supply × (1 - e^(-t/RC))

Time constant: τ = RC
After one time constant (τ), capacitor is 63.2% charged.
After five time constants (5τ), considered fully charged (99.3%).

Example:
R = 10kΩ, C = 100μF
The time constant is calculated by multiplying resistance and capacitance:

\tau = 10{,}000 \times 0.0001 = 1,\text{s}
After 5 seconds, capacitor is fully charged.

Inductors store energy in the form of a magnetic field as current passes through them.They oppose changes in current — when current tries to change, the inductor’s magnetic field either opposes the increase or sustains the decrease. Used in filters, transformers, switching power supplies, and radio tuning circuits. Inductance measured in Henries (H).

7.7 Real-World Circuits — Household Wiring

Household wiring uses parallel circuits so all appliances receive the same voltage (230V in UK/Pakistan, 120V in USA) regardless of how many are connected. Each circuit has a fuse or circuit breaker in series — if current exceeds a safe level, the fuse melts (or breaker trips), protecting the wiring from overheating and catching fire.

Example — Kitchen Circuit Planning:
Kettle:     2200W at 230V → I = P/V = 2200/230 = 9.6A
Microwave:  1000W at 230V → I = 4.3A
Toaster:    1000W at 230V → I = 4.3A
Total current = 9.6 + 4.3 + 4.3 = 18.2A

A 20A circuit breaker is appropriate for this kitchen circuit.
All three run simultaneously without tripping the breaker,
but adding more high-power appliances would exceed 20A limit.

Chapter 8 — Semiconductors and Diodes

8.1 What Is a Semiconductor?

Definition: A semiconductor is a material with electrical conductivity between that of a conductor (such as copper) and an insulator (such as rubber), and its conductivity can be carefully controlled through doping, electric fields, or temperature changes.

Conductivity Comparison:
Conductors:    10⁶ to 10⁸ S/m  (copper, silver, aluminium)
Semiconductors: 10⁻⁴ to 10⁴ S/m (silicon, germanium, GaAs)
Insulators:    < 10⁻¹⁰ S/m    (rubber, glass, plastic)

Most common semiconductor: Silicon (Si)
A silicon atom has four electrons in its outermost shell.
In pure silicon crystal, each atom shares electrons
with 4 neighbours (covalent bonds).
Pure silicon: very few free electrons → poor conductor.

Energy Band Theory: Electrons in a solid occupy energy bands. The valence band holds electrons bound to atoms. The conduction band holds electrons free to move and conduct.The energy difference between them is called the band gap.In conductors, the bands overlap — electrons are always free. In insulators, the gap is too large for electrons to jump. In semiconductors, the gap is small enough that electrons can jump it with moderate energy (heat, light, or electric field).

8.2 Doping — Creating N-Type and P-Type Semiconductors

Definition: Doping is the deliberate addition of tiny amounts of impurity atoms to a pure semiconductor to dramatically increase its conductivity and control its charge carrier type.

N-Type Semiconductor:
Add atoms with 5 outer electrons (phosphorus, arsenic)
to silicon (4 outer electrons).
The 5th electron has no bond to form → becomes a free electron.
Majority carriers: electrons (negative charge)
Example: 1 phosphorus atom per 10 million silicon atoms
increases conductivity enormously.

P-Type Semiconductor:
Add atoms with 3 outer electrons (boron, aluminium)
to silicon.
Only 3 electrons to share → one bond is incomplete → "hole"
A hole is an absence of electron that acts as a positive charge.
Adjacent electrons can move into the hole, effectively
moving the hole in the opposite direction.
Majority carriers: holes (positive charge)

8.3 The P-N Junction — Foundation of All Semiconductor Devices

Definition: A P-N junction is formed when P-type and N-type semiconductors are joined. The behaviour of this junction is the foundation of diodes, transistors, solar cells, and LEDs.

At the junction, free electrons from N-side
and holes from P-side combine and cancel out,
creating a DEPLETION REGION — a zone with no free carriers.

This creates a built-in electric field (barrier voltage)
that normally prevents further electron movement.
For silicon: barrier voltage ≈ 0.6-0.7V

FORWARD BIAS (positive voltage on P-side):
External voltage opposes the barrier.
When applied voltage > 0.7V (silicon), barrier is overcome.
Current flows freely through the junction.

REVERSE BIAS (negative voltage on P-side):
External voltage adds to the barrier.
Depletion region widens.
Only a tiny leakage current flows.
Junction effectively blocks current.

This is diode behaviour — current flows one way only.

8.4 Types of Diodes and Their Applications

Rectifier Diode: Standard diode. Conducts in one direction only.It is used in power supplies to convert alternating current into direct current.

Half-Wave Rectifier:
One diode — only positive half of AC wave passes.
Output is pulsating DC.

Full-Wave Bridge Rectifier:
4 diodes in bridge arrangement.
Both halves of AC wave converted to DC.
Output is smoother pulsating DC.
Add capacitor across output → smoothed DC.

This is how every phone charger and power adapter works.

Zener Diode: Designed to break down at a precise reverse voltage (Zener voltage) and maintain that voltage stably. Used as voltage regulators.

Zener Voltage Regulator:
Series resistor limits current.
Zener diode clamps output voltage at Vz.

If input fluctuates between 12V and 15V,
with a 5V Zener: output remains stable at 5V.

Used in: voltage reference circuits, protecting sensitive
components from overvoltage, simple power regulation.

LED (Light Emitting Diode): When forward biased, electrons recombine with holes at the junction and release energy as photons (light). The semiconductor material determines the photon energy and therefore the colour.

LED Colours and Materials:
Red:             Aluminium Gallium Arsenide (AlGaAs)
Green:           Gallium Phosphide (GaP)
Blue light is produced using indium gallium nitride (InGaN).
White:           Blue LED + yellow phosphor coating

LED Current Limiting:
A series resistor should always be included when using an LED.
R = (V_supply - V_LED) / I_LED

Example:
5V supply, red LED (Vf = 2V), desired current = 20mA
The resistance is found by dividing the voltage difference by the current:

R = \frac{5 - 2}{0.020} = 150,\Omega

Without the resistor, excess current burns the LED instantly.

Photodiode: Works in reverse — light falling on the junction creates electron-hole pairs, generating a current proportional to light intensity. Used in light sensors, solar cells, optical fiber receivers, and TV remote control receivers.

Chapter 9 — Transistors and Amplifiers

9.1 What Is a Transistor?

Definition: A transistor is a three-terminal semiconductor device that can amplify electrical signals or act as an electronically controlled switch.It serves as the basic building block of modern electronic systems.

The transistor was invented in 1947 and replaced the vacuum tube. Modern processors contain billions of transistors in an area smaller than a postage stamp. Every computer, smartphone, and digital device depends entirely on transistors.

9.2 Bipolar Junction Transistor (BJT)

Definition: A BJT is a transistor with three layers of doped semiconductor (Emitter, Base, Collector) creating two P-N junctions. A small current at the base controls a much larger current from collector to emitter.

Types:
NPN: Emitter(N) — Base(P) — Collector(N)
PNP: Emitter(P) — Base(N) — Collector(P)

NPN is most common. Current flows from collector to emitter
when base current flows.

Current Gain (β or hFE):
β = Ic / Ib

Ic = Collector current
Ib = Base current
β typically 50 to 500

Example:
β = 200, Ib = 50μA
Ic = β × Ib = 200 × 50×10⁻⁶ = 10mA

A 50μA base current controls a 10mA collector current.
This is amplification.

As a Switch:

When Ib = 0: Transistor is OFF — no collector current
             (open switch)

When Ib sufficient to saturate: Transistor is ON — full
             collector current flows (closed switch)

Example — LED controlled by microcontroller:
Microcontroller output: 3.3V, can only supply 5mA
LED needs 20mA at 2V

Solution:
Microcontroller drives base of NPN transistor.
An LED is connected in the collector circuit using a 12V power supply.
Small base current (5mA) switches on 20mA collector current.
Microcontroller safely controls the LED indirectly.

9.3 Field-Effect Transistor (FET)

Definition: A FET is a transistor where voltage at the Gate terminal controls the current flowing from Drain to Source. Unlike BJT, FET is voltage-controlled — almost no gate current flows.

MOSFET (Most Common Type):
Metal-Oxide-Semiconductor Field-Effect Transistor

Terminals: Gate (G), Drain (D), Source (S)

N-Channel Enhancement MOSFET:
With zero gate voltage: no current flows (OFF)
When gate voltage exceeds threshold (~2-4V): channel forms,
current flows from drain to source (ON)

Advantages over BJT:
- Very high input impedance (negligible gate current)
- Fast switching (used in digital logic)
- Efficient in switching power supplies
- Used in microprocessors (CMOS technology)

9.4 Amplifier Types and Applications

Definition: An amplifier is a circuit that increases the power, voltage, or current of a signal.

Voltage Gain:
Av = Vout / Vin

Power Gain:
Ap = Pout / Pin

Decibel Gain:
dB = 20 × log₁₀(Vout/Vin)   [voltage]
dB = 10 × log₁₀(Pout/Pin)   [power]

Example:
Input signal: 10mV
Output signal: 2V
Voltage gain = 2/0.01 = 200
In decibels = 20 × log₁₀(200) = 46 dB

Class A Amplifier: Transistor conducts for the full 360° of input signal. Linear, low distortion. Inefficient (max 25% efficiency) — used in high-quality audio where sound quality matters more than efficiency.

Class B Amplifier: Two transistors — one for positive half, one for negative half. Efficient (up to 78.5%) but causes crossover distortion at zero crossing. Used in power amplifiers.

Class AB Amplifier: Compromise between A and B. Small quiescent current to prevent crossover distortion. Most common in audio amplifiers — good efficiency with acceptable distortion.

Class D Amplifier (Switching Amplifier): Transistors switch fully on and off at high frequency (PWM). Extremely efficient (90%+). Used in modern car audio, soundbars, and mobile devices where battery life matters. Requires output filter to reconstruct audio signal.

Real-World Example — Hearing Aid: A microphone converts sound to a tiny electrical signal (~1mV). A multi-stage transistor amplifier chain amplifies this to several volts. The amplified signal drives a miniature speaker in the ear canal. Gain, frequency response, and maximum output level are digitally controlled. The entire amplifier circuit runs from a tiny 1.4V battery and must be extremely efficient to give days of battery life.

Chapter 10 — Digital Electronics

10.1 What Is Digital Electronics?

Definition: Digital electronics processes information represented as binary signals — only two voltage levels: HIGH (logic 1, typically 3.3V or 5V) and LOW (logic 0, typically 0V). All computers, smartphones, digital cameras, and modern communication systems are digital electronic systems.

The advantage of digital over analog is noise immunity. If a signal is partially corrupted by noise, as long as it remains recognisably HIGH or LOW, the information is preserved perfectly. Analog signals degrade continuously with noise.

10.2 Binary Number System

Definition: Binary is a base-2 number system using only digits 0 and 1. Every number, letter, colour, sound, and instruction inside a computer is represented in binary.

Binary to Decimal Conversion:
Each binary digit (bit) has a place value: 1, 2, 4, 8, 16, 32, 64, 128...

Binary:  1  0  1  1  0  1
Place values: 32, 16, 8, 4, 2, 1

Value = 32+0+8+4+0+1 = 45

So binary 101101 = decimal 45

Decimal to Binary (divide by 2, collect remainders):
45 ÷ 2 = 22 remainder 1
22 ÷ 2 = 11 remainder 0
11 ÷ 2 =  5 remainder 1
 5 ÷ 2 =  2 remainder 1
2 ÷ 2 equals 1 with a remainder of 0
 1 ÷ 2 =  0 remainder 1
Read remainders bottom to top: 101101 ✓

8 bits = 1 byte = can represent 0 to 255
16 bits = can represent 0 to 65,535
32 bits = can represent 0 to 4,294,967,295

10.3 Logic Gates

Definition: Logic gates are the basic building blocks of digital circuits. Each gate takes one or more binary inputs and produces one binary output according to a specific logical rule.

AND Gate:
The output is 1 only if every input is 1.
Truth table (2 inputs):
A B | Output
0 0 |   0
0 1 |   0
1 0 |   0
1 1 |   1
Real use: Safety system — alarm triggers only if
          intruder detected AND alarm is armed.

OR Gate:
Output = 1 when ANY input is 1
A B | Output
0 0 |   0
0 1 |   1
1 0 |   1
1 1 |   1
Real use: Light turns on if switch A OR switch B pressed.

NOT Gate (Inverter):
Output = opposite of input
A | Output
0 |   1
1 |   0
Real use: Active-low signals, complementary logic.

NAND Gate (NOT AND — universal gate):
Output = 0 ONLY when ALL inputs are 1
A B | Output
0 0 |   1
0 1 |   1
1 0 |   1
1 1 |   0
Important: Any logic circuit can be built using only NAND gates.

NOR Gate (NOT OR):
Output = 1 ONLY when ALL inputs are 0
A B | Output
0 0 |   1
0 1 |   0
1 0 |   0
1 1 |   0

XOR Gate (Exclusive OR):
Output = 1 when inputs are DIFFERENT
A B | Output
0 0 |   0
0 1 |   1
1 0 |   1
1 1 |   0
Real use: Binary addition (half adder), error detection,
          encryption (XOR with key = cipher text).

Building an Adder — Combining Gates:

Half Adder (adds two 1-bit numbers):
Sum    = A XOR B
Carry  = A AND B

1+1 = 10 in binary (sum=0, carry=1)
0+1 = 01 in binary (sum=1, carry=0)

Full Adder (adds two bits plus carry-in):
Multiple full adders chained = binary addition of multi-bit numbers.
This is literally how your computer's ALU adds numbers.

10.4 Flip-Flops — Memory Elements

Definition: A flip-flop is a bistable digital circuit — it has two stable states (0 and 1) and can store one bit of information indefinitely until it receives a signal to change state.

SR Flip-Flop (Set-Reset):
Two inputs: S (Set) and R (Reset)
S=1: Output goes to 1 (Set)
R=1: Output goes to 0 (Reset)
S=0, R=0: Output holds previous state (MEMORY)

D Flip-Flop (Data/Delay):
Output takes the value of input D on each clock pulse.
Most common type in digital systems.
Used in: registers, counters, shift registers.

Clock Signal:
Flip-flops change their state only at particular instants determined by the clock signal.
Clock frequency = how many state changes per second.
A 3 GHz processor clock = 3 billion flip-flop state evaluations/second.

Registers and Memory: A group of flip-flops forms a register. An 8-bit register stores one byte. Computer RAM consists of billions of flip-flop-like cells storing your programs and data. When power is cut, volatile memory (RAM) loses its state — this is why you lose unsaved work in a power cut.

10.5 Microprocessors and Embedded Systems

Definition: A microprocessor is an integrated circuit containing the complete central processing unit (CPU) of a computer — arithmetic logic unit, control unit, and registers — on a single chip.

How a Processor Executes Instructions:

1. FETCH:
   Control unit reads next instruction from memory.
   Program counter (register) points to instruction address.

2. DECODE:
   Instruction decoded — what operation? Which registers?

3. EXECUTE:
   ALU performs the operation (add, subtract, compare, etc.)

4. WRITE BACK:
   Result stored in register or memory.

5. Repeat — billions of times per second.

Example instruction cycle:
ADD R1, R2, R3
Add the values in registers R2 and R3, then store the result in R1.
One instruction — four steps — executed in one clock cycle.
At 3GHz: 3 billion instructions per second.

Chapter 11 — Power Electronics

11.1 What Is Power Electronics?

Definition: Power electronics is the application of electronics to control and convert electrical power. It deals with circuits that handle significant amounts of power — from milliwatts in mobile chargers to megawatts in industrial drives and power grid equipment.

Power electronics is what makes renewable energy practical, electric vehicles possible, and efficient motor control achievable.

11.2 Rectifiers — AC to DC Conversion

Half-Wave Rectifier: 1 diode, 50% efficiency
Bridge Rectifier: 4 diodes, uses full AC waveform

Smoothing with Capacitor:
Capacitor charges to peak voltage, slowly discharges
between peaks, maintaining more stable DC output.

Ripple Voltage (approximately):
Vr ≈ I/(f × C)

I = Load current (A)
f = AC frequency (50 or 60 Hz)
C = Capacitance (Farads)

Example:
100mA load, 50Hz mains, 1000μF capacitor:
Vr = 0.1/(50 × 0.001) = 2V ripple

Adding a voltage regulator IC (like 7805) gives stable 5V output.
This is inside every phone charger and USB power supply.

11.3 Inverters — DC to AC Conversion

Definition: An inverter converts DC voltage to AC voltage. Essential for solar panel systems (battery stores DC, home appliances need AC) and electric vehicle motor drives.

Basic Inverter Operation:
Uses 4 MOSFETs in H-bridge configuration.
Switching MOSFETs alternately connects DC bus to output
in opposite directions, creating alternating current.

PWM (Pulse Width Modulation):
Switches at high frequency (typically 20kHz+)
Varying the duty cycle (on-time ratio) controls output voltage.
Low-pass filter smooths high-frequency switching into
a clean sine wave.

Solar Inverter:
PV panels → DC (variable voltage, e.g. 200-400V)
Inverter → AC 230V 50Hz for home use
Grid-tied inverters synchronize their output with
the utility grid frequency and phase.

11.4 DC-DC Converters

Definition: DC–DC converters efficiently transform one DC voltage level into another by using switching components like transistors, inductors, and capacitors, instead of resistive dividers that dissipate energy as heat.

Buck Converter (Step-Down):
Input: 12V → Output: 5V
MOSFET switches rapidly. When ON: current builds in inductor.
When OFF: inductor releases energy to output.
Duty cycle determines output voltage.
Efficiency: typically 90-97%

Example: Laptop power adapter 19V → CPU core voltage 1.2V
Uses buck converter — much more efficient than resistor divider.

Boost Converter (Step-Up):
Input: 3.7V (phone battery) → Output: 5V (USB output)
Efficiency: 85-95%
Used in: power banks, LED drivers

Buck-Boost:
Can step voltage either up or down.
Used in: battery-powered devices where battery voltage
crosses the required output voltage during discharge.

11.5 Electric Vehicles and Battery Management Systems

Definition: A Battery Management System (BMS) is an electronic system that monitors and controls a rechargeable battery pack to ensure safe operation, maximise life, and optimise performance.

BMS Functions:

Cell Voltage Monitoring:
Measures every individual cell in the battery pack.
Lithium-ion safe range: 2.5V to 4.2V per cell.
Too high → electrolyte decomposition, fire risk.
Too low  → permanent capacity loss.

State of Charge (SoC) Estimation:
Tells the driver how much range remains.
Coulomb counting: integrates current over time.
The state of charge is found by subtracting the charge drawn over time (current integrated over time divided by capacity) from the initial value:

\mathrm{SoC} = \mathrm{SoC}_{\text{initial}} - \frac{\int I,dt}{\text{Capacity}}

Temperature Management:
Lithium batteries degrade rapidly above 45°C.
Performance degrades below 0°C.
BMS controls cooling (liquid or air) and heating systems.

Cell Balancing:
Cells age differently — some discharge faster than others.
Passive balancing: dissipates energy from strong cells as heat.
Active balancing: transfers energy from strong to weak cells.
Ensures all cells stay at same SoC, maximising pack capacity.

Thermal Runaway Protection:
If one cell overheats and begins uncontrolled reaction,
BMS disconnects that cell string immediately.

PART 3 — ADVANCED TECHNOLOGIES

Chapter 12 — Material Science and Nanotechnology

12.1 What Is Material Science?

Definition: Material science studies the properties of materials — how their atomic and molecular structure determines their mechanical, electrical, thermal, and optical behaviour — and how to engineer new materials with desired properties.

12.2 Conductors, Insulators, Semiconductors

Conductors:
Free electrons in outer shells readily move under voltage.
Examples: Copper (best common conductor), Silver, Gold,
          Aluminium (used in power lines — cheaper, lighter)
Applications: Wiring, circuit traces, electromagnets.

Insulators:
Electrons tightly bound — cannot move freely.
Examples: Rubber, PVC, Glass, Ceramic, Air
Applications: Wire insulation, PCB substrates, capacitor dielectrics.

Semiconductors:
Conductivity between conductor and insulator.
Conductivity controllable by doping, temperature, light.
Examples: Silicon, Germanium, Gallium Arsenide (GaAs)
GaAs: Faster electrons than silicon — used in microwave
      circuits, satellite communication, LEDs.

12.3 What Is Nanotechnology?

Definition: Nanotechnology is the manipulation of matter at the nanometre scale (1 nanometre = 10⁻⁹ metres, one billionth of a metre) to create materials and devices with novel properties not present in bulk material.

At nanoscale, quantum effects dominate. The same material behaves completely differently when particles are nanometres in size compared to bulk. Gold nanoparticles appear red, not gold. Carbon arranged in a specific nanotube structure is stronger than steel and conducts electricity better than copper.

12.4 Graphene

Definition: Graphene is a single layer of carbon atoms arranged in a two-dimensional hexagonal lattice. It is the thinnest, strongest material known, and has exceptional electrical properties.

Properties:
Thickness:     One atom — 0.335 nm
Strength:      200× stronger than steel by weight
               (tensile strength 130 GPa)
Electrical:    Electrons move 100× faster than in silicon
Thermal:       Better heat conductor than any known material
Transparency: It absorbs just 2.3% of incoming light, making it nearly transparent.

Applications:
Flexible transparent electrodes for foldable touchscreens
Ultrafast transistors for future processors beyond silicon limits
Ultracapacitors — stores charge with very high surface area
Drug delivery — carries drug molecules to specific cells
Water filtration — graphene membranes filter salt from seawater
Composite materials — adding small amounts to plastics or metals
dramatically increases their strength

12.5 Carbon Nanotubes and Quantum Dots

Carbon Nanotubes (CNTs): A graphene sheet rolled into a cylinder. Diameter 1-100 nm. Depending on how they are rolled (their angle), carbon nanotubes can behave either as metallic conductors or as semiconductors. One hundred times stronger than steel at one-sixth the weight. Being explored for transistors beyond silicon scaling limits, ultra-strong composite materials, hydrogen storage for fuel cells, and drug delivery systems.

Quantum Dots: Covered in Chapter 6.4 — semiconductor nanocrystals with size-tunable optical properties. Additionally used in biological imaging (fluorescent labels), quantum dot solar cells (efficient light absorption), and quantum computing qubits.

Chapter 13 — Sensors and Actuators

13.1 What Is a Sensor?

Definition: A sensor is a device that detects a physical quantity (temperature, pressure, light, motion, etc.) and converts it into an electrical signal that can be measured, processed, or used to control a system.

13.2 Types of Sensors

Temperature Sensors:

Thermistor (NTC — Negative Temperature Coefficient):
Resistance decreases as temperature increases.
High sensitivity — ideal for precise temperature measurement.
Used in: medical devices, HVAC control, battery protection.

RTD (Resistance Temperature Detector):
Precision resistor (typically platinum) whose resistance
increases linearly with temperature.
R(T) = R₀ × (1 + α × ΔT)
α for platinum = 0.00385 Ω/Ω/°C
Used in: industrial processes requiring high accuracy.

Thermocouple:
Two different metals joined — voltage generated at junction
proportional to temperature difference (Seebeck effect).
Range: -200°C to +2300°C
Used in: furnaces, engines, industrial temperature monitoring.

Digital Temperature Sensor (DS18B20):
Complete sensor in a small package, outputs digital data.
Used in: Arduino/Raspberry Pi projects, IoT temperature nodes.

Pressure Sensors:

Piezoresistive Sensor:
Silicon diaphragm with strain gauges.
Pressure deflects diaphragm → resistance changes.
Used in: Tyre pressure monitoring (TPMS), medical blood pressure
monitors, industrial pressure control.

MEMS Barometric Sensor (BMP280):
Microscopic mechanical structure etched in silicon.
Measures atmospheric pressure → altitude calculation.
Used in: Smartphones (altitude, indoor navigation),
weather stations, drones.

Resistance formula for strain gauge:
ΔR/R = GF × ε
GF = gauge factor (~2 for metal, ~100 for semiconductor)
ε = mechanical strain

Proximity Sensors:

Infrared (IR) Proximity Sensor:
Emits IR light, detects reflection from nearby objects.
Range: 0-30cm typically.
Used in: Smartphones (switch off screen during calls),
automatic tap/hand dryers, obstacle detection in robots.

Ultrasonic Sensor (HC-SR04):
Emits 40kHz ultrasound pulses, measures echo return time.
The distance is calculated by multiplying the speed of sound by time and dividing the result by two:

\text{Distance} = \frac{\text{Speed of sound} \times \text{time}}{2}
Speed of sound ≈ 343 m/s at 20°C
Range: 2cm to 4m
Used in: Parking sensors, robots, liquid level measurement.

Example calculation:
Echo time = 5000 μs = 0.005 s
Distance = (343 × 0.005) / 2 = 0.857 m = 85.7 cm

13.3 What Is an Actuator?

Definition: An actuator is a device that converts electrical energy into physical motion or mechanical force. It is the output device that makes things move in response to control signals.

13.4 Types of Actuators

DC Motors: Continuous rotation. Speed controlled by voltage; direction controlled by reversing polarity. Used in: fans, pumps, electric vehicles, conveyor belts.

Servo Motors: DC motor with position feedback (encoder or potentiometer). The controller constantly compares the current position with the target position.Used in: robotic arms, steering systems, camera gimbals, CNC machines. Position precision: typically 0.1° to 0.01°.

Stepper Motors: Rotates in discrete steps (e.g. 200 steps per revolution = 1.8° per step). No position feedback needed — steps counted to track position. Used in: 3D printers, CNC routers, camera focus mechanisms. Extremely precise for open-loop position control.

Solenoids: Electromagnetic actuator producing linear push or pull motion. Energize coil → magnetic field pulls iron plunger. Used in: door locks, fuel injectors, valve control, camera shutters.

Piezoelectric Actuators: Apply voltage to piezoelectric material → material physically deforms. Nanometre precision. Used in: atomic force microscopes (position control at atomic scale), inkjet printer heads (precise droplet ejection), ultrasonic cleaners, medical ultrasound transducers.

Chapter 14 — Photonics and Optoelectronics

14.1 What Is Photonics?

Definition: Photonics is the field focused on producing, manipulating, detecting, and applying photons (light particles) in areas such as communication, sensing, computing, and healthcare.

Photonics is to light what electronics is to electrons. While electronics manipulates electrons in circuits, photonics manipulates photons in optical systems. Modern photonics combines both — optoelectronics deals specifically with devices that convert between electrical signals and light.

14.2 Photovoltaic Cells — Converting Light to Electricity

Definition: A photovoltaic (PV) cell converts sunlight directly into electricity using the photoelectric effect — photons knock electrons free in a semiconductor, creating a current.

How Solar Cells Work:
1. Photon from sunlight hits silicon P-N junction.
2. Photon energy knocks an electron free (if energy > band gap).
   Silicon band gap: 1.1 eV
   Only photons with wavelength < 1100nm can free electrons.
3. Electric field at P-N junction sweeps electron toward N-side.
4. Current flows through external circuit (your load).

Solar Cell Parameters:
Voc (Open Circuit Voltage): ~0.6V per silicon cell
Isc (Short Circuit Current): proportional to light intensity
Fill Factor: how square the I-V curve is (ideal = 1)

Efficiency:
Commercial silicon panels: 15-22%
Laboratory record silicon:  29%
Multi-junction cells:       47% (using multiple band gaps)

Cells in series: voltages add (used to reach useful voltage)
Cells in parallel: currents add (used to increase current capacity)

14.3 LEDs and Optical Sensors

LEDs — covered in Chapter 8. In photonics context: LEDs are used as light sources in optical communication, LiDAR systems, and displays. VCSEL (Vertical Cavity Surface Emitting Laser) diodes are used in Face ID sensors and high-speed fiber optic transmitters.

Photodetectors:

PIN Photodiode: Fast, sensitive. Used in fiber optic receivers.
               Current proportional to incident optical power.

Avalanche Photodiode (APD):
Has internal gain — one photon triggers electron avalanche.
Used in: long-range fiber optic links, LiDAR.

CCD and CMOS Image Sensors:
Array of millions of photodiodes.
Each pixel collects photons during exposure → charge proportional
to light intensity → read out as digital values.
CCD: sequential readout, low noise — used in astronomy cameras.
CMOS: parallel readout, faster, lower power — smartphones, webcams.

14.4 Fiber Optic Communication

System Components:
Laser transmitter → Optical fiber → Photodetector receiver

Modulation: Data modulates the laser output.
NRZ (Non-Return to Zero): 1 = light ON, 0 = light OFF
Modern: Complex modulation (QAM) encodes multiple bits per symbol.

Data Rates:
Single fiber pair: 100 Gb/s typical, up to 800 Gb/s
With WDM (multiple wavelengths): several Tb/s per fiber
Transatlantic cables: 100+ Tb/s total capacity

Signal Attenuation:
Standard single-mode fiber: 0.2 dB/km at 1550nm wavelength
Every 40-80km: optical amplifier (EDFA) boosts signal.
EDFA: Erbium-Doped Fiber Amplifier — pumped by laser,
amplifies signal photons by stimulated emission (like a laser
but without mirrors).

PART 4 — ADVANCED ELECTRONICS AND SYSTEMS

Chapter 15 — Integrated Circuits and Microelectronics

15.1 What Is an Integrated Circuit?

Definition: An integrated circuit (IC) is a set of electronic circuits — transistors, resistors, capacitors, and connections — all fabricated together on a single piece of semiconductor material (die), typically silicon, and packaged in a protective casing.

Before ICs, each component was a separate physical part connected by wires. A transistor radio might contain 10 discrete transistors. A modern smartphone processor contains over 15 billion transistors in an area smaller than a thumbnail. This miniaturisation is what made computers personal and portable.

15.2 CMOS Technology — How Chips Are Made

CMOS (Complementary Metal-Oxide-Semiconductor) is the dominant technology for manufacturing ICs. It uses pairs of complementary MOSFETs (NMOS and PMOS) for every logic gate.

Why CMOS is Efficient:
In a CMOS gate, only one transistor type conducts at a time.
NMOS conducts when output is LOW.
PMOS conducts when output is HIGH.
During transition: both briefly conduct (switching current).
At rest: no DC current path — extremely low static power.

This is why your phone battery can last an entire day even though billions of transistors — they draw almost no power when idle.

CMOS NOT Gate (Inverter) — Simplest example:
PMOS transistor connected from supply to output.
NMOS transistor connected from output to ground.
Input = 0: PMOS ON, NMOS OFF → Output connected to supply = 1
Input = 1: PMOS OFF, NMOS ON → Output connected to ground = 0

Fabrication Process (Photolithography):

Step 1: Start with pure silicon wafer
Step 2: Grow silicon dioxide (SiO₂) insulating layer
Step 3: Apply photoresist (light-sensitive coating)
Step 4: Shine UV light through photomask (circuit pattern)
        Exposed photoresist becomes soluble → washed away
Step 5: Etch silicon through exposed areas (creates features)
Step 6: Ion implantation — dope specific areas N or P type
Step 7: Deposit and pattern metal layers (wiring)
Step 8: Repeat for each layer (modern chips: 15+ metal layers)
Step 9: Test, cut wafer into dies, package

Feature Size (Node):
1970: 10,000nm (10 micron)
1990: 1,000nm (1 micron)
2010: 45nm
2020: 5nm
2024: 2nm (in production)

Smaller features = more transistors per area = faster, lower power.
A 5nm chip can pack ~170 million transistors per square millimetre.

15.3 System-on-Chip (SoC)

Definition: A System-on-Chip integrates all components of a computer or electronic system onto a single IC — processor cores, graphics processor, memory controller, wireless radios, DSP, neural processing unit, and I/O controllers — all on one die.

Example — Apple M4 SoC:
CPU cores:          10 (4 performance + 6 efficiency)
GPU cores:          10
Neural Engine:      38 trillion operations per second
Memory (unified):   16-32 GB on same chip package
Memory bandwidth:   120 GB/s
Transistors: approximately 28 billion
Manufacturing: built using a 3 nm process
Power consumption:  15-20W

This outperforms most desktop computers while consuming
the power of a light bulb.

Benefits of SoC integration:
- Extremely short interconnects between components
  → Lower latency, higher bandwidth, less power lost in wiring
- Single chip = smaller, lighter, cheaper product
- Unified memory: CPU, GPU, NPU all access same fast memory pool

Chapter 16 — Communication Systems

16.1 What Is a Communication System?

Definition: A communication system is a set of devices and channels that transfer information from a source to a destination. It consists of a transmitter (encodes and sends), a channel (carries the signal), and a receiver (receives and decodes).

Basic Communication System:
Information Source → Transmitter → Channel → Receiver → Destination
                         ↑                      ↓
                    Modulation              Demodulation
                    Encoding               Decoding

16.2 Analog Communication — AM and FM

Amplitude Modulation (AM):

Definition: The amplitude (strength) of a high-frequency
The carrier wave is adjusted in proportion to the audio signal.

Carrier frequency: constant (e.g. 1000 kHz)
Audio signal: varies amplitude of carrier

Carrier:   C(t) = Ac × cos(2πfc × t)
Modulated: AM(t) = [Ac + m(t)] × cos(2πfc × t)

m(t) = audio message signal

Advantages: Simple receivers, long range at low frequency.
Disadvantages: Susceptible to noise (noise changes amplitude).
It is used in medium-wave and long-wave radio broadcasting.

Frequency Modulation (FM):

Definition: The frequency of the carrier wave is varied
in proportion to the audio signal. Amplitude stays constant.

Advantages: Far more resistant to noise (noise rarely changes
frequency), better audio quality.
Disadvantages: Requires more bandwidth than AM.
Used in: FM radio (88-108 MHz), analogue TV audio,
two-way radios.

FM: Better sound quality than AM because noise
affects amplitude (not frequency) — FM receivers
ignore amplitude variations → quiet, clear audio.

16.3 Digital Modulation Techniques

Digital modulation encodes binary data onto a carrier wave.

ASK (Amplitude Shift Keying):
1 = high amplitude, 0 = low amplitude (or zero)
Simple but noise-sensitive. Used in IR remotes.

FSK (Frequency Shift Keying):
1 = one frequency, 0 = different frequency
More robust than ASK. Used in older modems, RFID.

PSK (Phase Shift Keying):
1 = 0° phase, 0 = 180° phase
BPSK: 1 bit per symbol
QPSK: 2 bits per symbol (4 phase states)
8-PSK: 3 bits per symbol (8 phase states)

QAM (Quadrature Amplitude Modulation):
Combines amplitude AND phase modulation.
16-QAM:   4 bits per symbol
64-QAM:   6 bits per symbol
256-QAM:  8 bits per symbol
1024-QAM: 10 bits per symbol (used in Wi-Fi 6, 5G)
Higher QAM = more data but needs better signal quality (SNR).

16.4 Wireless Technologies — Wi-Fi, Bluetooth, 5G

Wi-Fi (IEEE 802.11):
Wi-Fi 5 (802.11ac): 2.4/5 GHz, up to 3.5 Gb/s
Wi-Fi 6 (802.11ax): 2.4/5/6 GHz, up to 9.6 Gb/s
Uses OFDMA (Orthogonal Frequency Division Multiple Access):
Divides channel into subcarriers — multiple devices
transmit simultaneously on different subcarriers.
MU-MIMO: multiple antennas serve multiple devices simultaneously.

Bluetooth:
2.4 GHz band, 79 channels × 1 MHz wide.
Frequency hopping: changes channel 1600 times/second
→ avoids interference with Wi-Fi and other devices.
BT 5.0: up to 2 Mb/s, range up to 240m (outdoors).
BLE (Bluetooth Low Energy): optimised for battery-powered
sensors — can run years on a coin cell battery.

5G (Fifth Generation Mobile):
Sub-6GHz band: <6 GHz, similar range to 4G, up to 1 Gb/s
mmWave band: 24-100 GHz, short range, up to 10 Gb/s

Key 5G Technologies:
Massive MIMO: Base station uses 64-256 antennas simultaneously.
              Focuses signal toward each user (beamforming).
              Dramatically increases network capacity.
Network slicing: Divides one physical network into virtual networks
              with different priorities — one slice for emergency
services—one designed for IoT sensors and another for consumer use.
Latency: 5G targets <1ms latency (vs ~30ms for 4G).
              Essential for remote surgery, autonomous vehicles.

16.5 Satellite Communication and GPS

GPS (Global Positioning System):
24 satellites in MEO (Medium Earth Orbit) at 20,200 km.
Each broadcasts time and position continuously.
Your receiver measures time delay from at least 4 satellites.

Distance = Speed of light × Time delay
Speed of light = 299,792,458 m/s

With 4+ distance measurements, receiver calculates:
- Latitude and Longitude (from 3 satellites)
- Altitude (from 4th satellite)
- Receiver clock error (corrected by 4th measurement)

Accuracy: Standard GPS: ~3 metres
DGPS (Differential GPS): ~1 metre
RTK (Real-Time Kinematic): ~1 centimetre
Used in: precision agriculture, surveying, autonomous vehicles.

Relativistic Corrections (applied physics):
Special relativity: satellite clocks run faster (lower gravity)
by 45 microseconds per day.
General relativity: satellite clocks run slower (high velocity)
by 7 microseconds per day.
Net: +38 microseconds per day error without correction.
At speed of light: 38μs × 3×10⁸ = 11.4 km error per day.
GPS computers apply Einstein's corrections constantly.

Chapter 17 — Embedded Systems and IoT

17.1 What Is an Embedded System?

Definition: An embedded system is a computer system (processor, memory, I/O) built into a larger device to perform a dedicated function, often in real time, with specific constraints on size, power, and cost.

Unlike a general-purpose computer that runs many applications, an embedded system runs one specific program permanently. Your washing machine, microwave, antilock brake system, digital camera, and smart thermostat are all controlled by embedded systems.

Components of an Embedded System:
Microcontroller (MCU): CPU + RAM + Flash memory + peripherals
                       all in one chip
Sensors: Inputs from the physical world
Actuators: Outputs to the physical world
Power supply: Often battery — power efficiency critical
Communication: UART, SPI, I2C, Wi-Fi, Bluetooth, CAN bus

17.2 Microcontrollers — Arduino and ESP32

Arduino Uno:
MCU:    ATmega328P (8-bit, 16 MHz)
Flash:  32 KB (program storage)
SRAM:   2 KB (runtime variables)
I/O:    14 digital pins, 6 analog inputs
Power:  5V, ~50mA active
Cost:   ~$5-20
Use:    Learning, prototyping, simple control tasks.

Basic Arduino Blink Program (C++):
void setup() {
  pinMode(13, OUTPUT);   // Set pin 13 as output (LED pin)
}

void loop() {
  digitalWrite(13, HIGH); // LED ON
  delay(1000);             // Wait 1 second
  digitalWrite(13, LOW);  // LED OFF
  delay(1000);             // Wait 1 second
}

ESP32:
MCU:    Xtensa LX6 dual-core 32-bit, 240 MHz
Flash:  4-16 MB
SRAM:   520 KB
I/O:    34 GPIO pins
Wireless: Wi-Fi 802.11b/g/n + Bluetooth 4.2/BLE
Power:  3.3V, ultra-low-power sleep modes
Cost:   ~$4-10
Use:    IoT devices, wireless sensors, connected products.

17.3 IoT Architecture

IoT (Internet of Things) Layer Architecture:

Layer 1 — Perception Layer:
Physical sensors and actuators.
Temperature, humidity, motion, cameras.
"The world of physical data."

Layer 2 — Network Layer:
Connects devices to the internet.
Wi-Fi, Bluetooth, Zigbee, LoRaWAN, NB-IoT.
LoRaWAN: Long Range, very low power.
          Can transmit tiny packets 2-15 km on battery.
NB-IoT:  Uses mobile network, low power, deep building penetration.

Layer 3 — Processing Layer:
Cloud platforms process and store data.
Amazon Web Services IoT, Google Cloud IoT, and Microsoft Azure IoT Hub.
Edge computing: Process data on local gateway
               instead of cloud → lower latency, privacy.

Layer 4 — Application Layer:
User interface — apps, dashboards, alerts.
Smart home app, factory monitoring dashboard,
fleet management system.

17.4 IoT Communication Protocols

MQTT (Message Queuing Telemetry Transport):
Lightweight publish/subscribe protocol.
Device PUBLISHES to a "topic" (e.g. "home/bedroom/temperature").
Any subscribed client RECEIVES the message.
Broker (server) manages subscriptions (e.g. Mosquitto, AWS IoT Core).

Ideal for:
- Low bandwidth connections
- Unreliable networks
- Battery-powered devices
- Many devices → one central broker

MQTT Example:
Device publishes: topic="sensors/temp", message="24.5"
Phone app subscribed to "sensors/temp" → receives "24.5" instantly.
Smart thermostat subscribed → adjusts heating automatically.

CoAP (Constrained Application Protocol):
Designed for very constrained devices (tiny memory, low power).
Similar to HTTP but binary, uses UDP (less overhead).
Used in: Smart meters, industrial sensors.

HTTP/REST:
Standard web protocol. Higher overhead.
Used when devices have sufficient power and connectivity.

17.5 Smart Home, Wearables, Healthcare

Smart Home: Temperature sensors + Wi-Fi thermostat → MQTT broker → cloud → learning algorithm adjusts heating schedule based on your patterns. Door sensors + microcontrollers → alert phone when opened. Smart plugs monitor power consumption of every appliance.

Wearable Health Monitors:

Pulse Oximeter (SpO₂ Sensor):
Uses two LED wavelengths (660nm red + 940nm infrared).
Oxygenated haemoglobin absorbs more infrared than red.
Deoxygenated haemoglobin absorbs more red than infrared.
Ratio of absorption → oxygen saturation percentage.
Photoplethysmography (PPG): Detects blood volume pulse
from absorption changes → heart rate.

ECG (Electrocardiogram) in Wearables:
Electrodes on watch strap detect millivolt-level
electrical signals from heart muscle contractions.
Signal amplified (×1000), filtered, digitised.
AI algorithm detects arrhythmias (irregular heartbeat).
Apple Watch Series 9 alerts users to atrial fibrillation —
a condition that significantly increases stroke risk.

PART 5 — REAL-WORLD ENGINEERING

Chapter 18 — Renewable Energy Systems

18.1 Solar Panels — How They Work

Solar cells convert photons to electrons (Chapter 14.2). Multiple cells form a panel. Multiple panels form an array.

Solar Panel Specifications:
Peak Power (Wp): Power at standard test conditions
                 (1000 W/m² irradiance, 25°C cell temperature)
Typical panel: 300-450 Wp
Efficiency: 18-22% for commercial panels

Energy Generated:
E = Peak Power × Hours of Peak Sun × Performance Ratio

Example:
400W panel, 5 peak sun hours/day, PR=0.80
E = 400 × 5 × 0.80 = 1600 Wh = 1.6 kWh per day

Annual: 1.6 × 365 = 584 kWh
Average Pakistan household uses ~4,000 kWh/year
→ Need ~7 such panels for a household.

Temperature Effect:
Solar panels lose efficiency as temperature rises.
Typically -0.4% per °C above 25°C.
At 50°C (common in Pakistan summer):
Power loss = 0.4% × (50-25) = 10% less than rated power.

18.2 Wind Turbines

Definition: Wind turbines convert kinetic energy of moving air into rotational mechanical energy, which a generator converts to electricity.

Power in Wind:
The power can be expressed in terms of density, area, and velocity:

P = \tfrac{1}{2} \rho A v^3

ρ represents the density of air, typically about 1.225 kg/m³ at sea level.
A = Swept area of blades (π × r²)
v = Wind speed (m/s)

Betz Limit: Maximum 59.3% of wind power can be extracted.
Commercial turbines achieve 45-50% of wind energy.

Example:
Wind turbine: blade radius = 50m, wind speed = 12 m/s
A = π × 50² = 7854 m²
P_wind = ½ × 1.225 × 7854 × 12³ = 8.27 MW
Extractable (at 45%): 8.27 × 0.45 = 3.7 MW

One 3.7 MW turbine powers ~1,000 average households.

18.3 Smart Grids

Definition: A smart grid is an electrical grid that uses digital communication technology to detect and react to local changes in usage, automatically optimising the delivery of electricity for efficiency, reliability, and sustainability.

Traditional Grid:              Smart Grid:
One-way power flow contrasted with bidirectional power flow
One-way communication contrasted with two-way communication

Centralised generation         Distributed generation
Manual fault detection         Automatic fault detection
Fixed pricing                  Dynamic/time-of-use pricing
No demand response             Real-time demand management

Smart Meters:
Measure electricity consumption every 15-30 minutes.
Communicate data to utility via cellular or power-line communication.
Enable time-of-use pricing: cheaper electricity at off-peak times
→ incentivises shifting loads (washing machines, EV charging)
to overnight when demand and prices are low.

Chapter 19 — Medical Physics and Electronics

19.1 X-Ray Imaging

How X-Rays Work:
1. Electrons accelerated to high voltage (50-150 kV) hit tungsten target.
2. Rapid deceleration produces X-ray photons (Bremsstrahlung radiation).
3. X-rays pass through patient.
4. Dense materials (bone, metal) absorb more X-rays → appear white.
5. Soft tissue absorbs less → appears grey.
6. Air absorbs almost none → appears black (lungs).

X-ray Attenuation:
I = I₀ × e^(-μx)

I₀ = Incident X-ray intensity
I  = Transmitted intensity
μ  = Linear attenuation coefficient (depends on material, energy)
x  = Thickness of material

Bone μ >> Soft tissue μ >> Air μ
→ Bone blocks most X-rays, air blocks almost none.

CT Scan (Computed Tomography):
X-ray source rotates around patient, taking images from hundreds
of angles. Computer reconstructs 3D image using filtered
back-projection algorithm. Dose: 100-500× higher than chest X-ray.
Reveals soft tissue detail invisible on plain X-ray.

19.2 MRI — Magnetic Resonance Imaging

Physics Basis — Nuclear Magnetic Resonance (NMR):
Hydrogen nuclei (protons) act as tiny spinning magnets.
Inside MRI bore (1.5-3 Tesla magnet):
→ Protons align with the strong magnetic field.

An RF pulse applied precisely at the Larmor frequency
tips protons out of alignment:
Larmor frequency: f = γ × B
γ (gyromagnetic ratio for hydrogen) = 42.58 MHz/T
At 1.5T: f = 63.87 MHz
At 3T:   f = 127.74 MHz

When RF pulse stops, protons relax back to alignment,
emitting RF signals during relaxation.
T1 relaxation: how fast protons realign (tissue type dependent).
T2 relaxation: how fast signals dephase (tissue type dependent).

Different tissues have different T1 and T2 → different image contrast.
Fat: bright on T1 images.
Water/CSF: bright on T2 images.
No ionising radiation — completely safe for repeated scanning.

19.3 Pacemakers and Defibrillators

Cardiac Pacemaker:
Implanted device that monitors heart rhythm via electrode.
When no beat detected within set interval → delivers
small electrical pulse (typically 0.5-1.0 ms, 0.5-5V)
to stimulate heart muscle contraction.
Battery: lithium-iodide, lasts 7-15 years.
Modern pacemakers are programmable via RF telemetry —
doctor adjusts settings without surgery.
Rate-adaptive: accelerometer detects physical activity →
automatically increases pacing rate during exercise.

Defibrillator (AED/ICD):
Detects ventricular fibrillation (chaotic, ineffective heartbeat).
Delivers a high-energy shock (200-360 Joules).
Shock momentarily stops all electrical activity.
Allows heart's natural pacemaker (SA node) to restart
organised rhythm.

Shock Energy Calculation:
E = ½CV²
For 360J delivery at 5000V:
C = 2E/V² = 2×360/5000² = 28.8 μF capacitor

The capacitor charges from battery over several seconds,
then discharges in milliseconds through the heart.

Chapter 20 — Automation and Robotics

20.1 What Is Automation?

Definition: Automation is the use of technology — control systems, machinery, electronics, and software — to perform tasks with minimal or no human intervention.

20.2 Robotics — Sensors, Motors, Controllers

Robot Architecture:
Sensors → Controller (MCU/CPU) → Actuators
   ↑                                  ↓
   └──────── Feedback Loop ───────────┘

Key Robotic Sensors:
Encoders:      Measure motor shaft rotation → position/speed feedback
IMU:           Accelerometer + gyroscope → orientation, acceleration
LiDAR:         Laser ranging → 3D map of environment
Vision:        Camera + image processing → object recognition
Force/Torque:  Measure forces at robot joints/gripper

Degrees of Freedom (DOF):
Each independent axis of movement = 1 DOF.
The human arm has 7 degrees of freedom: 3 at the shoulder, 1 at the elbow, and 3 at the wrist.
Industrial robot arm: typically 6 DOF.
6 DOF allows reaching any position and orientation in 3D space.

20.3 PID Control — Making Robots Move Precisely

PID (Proportional-Integral-Derivative) Controller:
The most widely used feedback control algorithm.

Error = Setpoint - Actual Measurement

P (Proportional): Output ∝ current error
Large error → large correction
I (Integral): Output ∝ accumulated past error
Eliminates steady-state error over time
D (Derivative): Output ∝ rate of error change
Predicts future error, reduces overshoot

Output = Kp×e + Ki×∫e dt + Kd×(de/dt)

Example — Robot Arm Joint:
Setpoint: 90° position
Current: 60° position
Error: 30°

P term: Large motor drive — moves arm quickly toward 90°
As arm approaches 90°, error decreases, drive reduces.
Without I or D: might stop at 88° (steady-state error).
I term: Builds up integral of small error → eliminates 2° offset.
D term: Detects rapid approach, reduces drive → prevents overshoot.
Result: Arm settles precisely at 90° without oscillation.

PID is used in: temperature control, motor speed control,
drone stability, cruise control, industrial process control.

20.4 Artificial Intelligence in Robotics

Computer Vision: Convolutional Neural Networks (CNNs) trained on millions of labelled images learn to recognise objects with human-level accuracy. A robot picks items in an Amazon warehouse using vision — identifying package type, orientation, and optimal grip point in real time.

Reinforcement Learning: Robot learns by trial and error — receives reward signals for successful actions. Boston Dynamics’ robots learned to walk, jump, and recover from falls through millions of simulated trials, then refined in physical reality. No human explicitly programmed each movement—the AI learned the most effective motion strategies on its own.

Chapter 21 — Aerospace and Space Applications

21.1 Avionics

Definition: Avionics (aviation electronics) encompasses all electronic systems used in aircraft — navigation, communication, flight control, weather detection, collision avoidance, and engine management.

Flight Management System (FMS):
Computer that plans and executes the entire flight:
- Reads pilot-entered flight plan
- Continuously calculates optimal route, altitude, speed
- Commands autopilot
- Monitors fuel, ETAs, constraints
- Interfaces with ILS (Instrument Landing System) for auto-landing

Inertial Navigation System (INS):
Three accelerometers (X, Y, Z axes) + three gyroscopes.
Measures every acceleration and rotation continuously.
Integrates acceleration → velocity → position.
Completely self-contained — works with no external signals.
Accuracy: ~1 nautical mile per hour of flight without GPS.
Combined with GPS: continuous GPS correction of INS drift.

Fly-by-Wire:
Pilot inputs → computers → control surface actuators.
No mechanical linkage between cockpit and control surfaces.
Computers continuously correct pilot inputs to stay within
safe flight envelope — prevent stalls and structural overstress.
Allows aircraft to be deliberately unstable (more maneuverable)
with computers providing artificial stability. Used in all
modern commercial aircraft (A320, Boeing 787) and fighters.

21.2 Satellite Systems

Orbit Types and Applications:

LEO (Low Earth Orbit): 200-2000 km altitude
Orbital period: 90-120 minutes
Applications: Earth observation, Starlink internet, ISS
Starlink: 5,000+ satellites providing global broadband.
Latency: 20-40ms (comparable to ground fiber).

MEO (Medium Earth Orbit): 2,000-35,786 km
Orbital period: 2-24 hours
Applications: GPS (20,200 km), Galileo, GLONASS

GEO (Geostationary Orbit): 35,786 km
Orbital period: 24 hours (stationary relative to Earth)
Applications: TV broadcast, weather satellites, communications.
Latency: ~240ms (speed of light × distance × 2).

Satellite Power:
Solar panels provide power in sunlight.
Batteries provide power during eclipse (Earth shadow).
Typical communication satellite power: 5-20 kW.

21.3 Rocket Propulsion Physics

Tsiolkovsky Rocket Equation:
Δv = ve × ln(m₀/mf)

Δv = Change in velocity (m/s)
ve = Exhaust velocity (m/s)
m₀ = Initial mass (including fuel)
mf = Final mass (without fuel)
ln = Natural logarithm

Example — SpaceX Falcon 9 First Stage:
ve (Merlin engine): 2800 m/s (vacuum)
Initial mass: 420,000 kg
Fuel mass:    ~354,000 kg
Final mass:   ~66,000 kg

Δv = 2800 × ln(420,000/66,000)
Δv = 2800 × ln(6.36)
Δv = 2800 × 1.85 = 5,180 m/s

Low Earth Orbit requires ~9,400 m/s total Δv from Earth.
First stage provides ~5,200 m/s, second stage the rest.
This is why rockets have multiple stages — each stage
drops dead weight (empty tanks) to improve mass ratio
for the next burn.

Chapter 22 — Future of Applied Physics and Electronics

Quantum Computing: Current quantum computers have tens to hundreds of noisy qubits. The goal is millions of error-corrected logical qubits. Applications that will transform industries: drug discovery (simulating molecular interactions), cryptography (breaking current encryption, requiring new quantum-resistant algorithms), financial optimization (portfolio management, risk analysis), and materials discovery (designing room-temperature superconductors).

Artificial Intelligence and Physics: AI is accelerating physics research. DeepMind’s AlphaFold solved the protein folding problem — predicting the 3D structure of any protein from its amino acid sequence. This took 50 years for humans to partially solve; AlphaFold does it in minutes for any protein. AI is designing better materials for batteries, solar cells, and semiconductors faster than traditional experimental methods.

Biophysics and Brain-Computer Interfaces: Neuralink and similar companies implant electrode arrays in the brain. Thousands of electrodes record from thousands of neurons simultaneously. Signal processing extracts intended movements from neural firing patterns. Paralysed patients have used this to control computer cursors and robotic arms with their thoughts. Future applications include restoring sight (stimulating visual cortex), treating Parkinson’s disease, and eventually augmenting human cognition.

Fusion Energy: Nuclear fusion — the same process powering the sun — combines light atoms (deuterium + tritium) to release enormous energy. Unlike fission, it produces no long-lived radioactive waste and uses fuel available in seawater. The challenge is plasma confinement at 150 million °C. ITER (International Thermonuclear Experimental Reactor) is a 35-nation project in France — a giant tokamak (magnetic confinement device) expected to produce 500 MW from 50 MW input when operational. Private companies (Commonwealth Fusion Systems, TAE Technologies) are pursuing faster timelines with high-temperature superconducting magnets.

22.2 Challenges and Opportunities

Energy Storage: The transition to renewable energy requires storing gigawatt-hours of electricity to bridge gaps when sun does not shine and wind does not blow. Current lithium-ion batteries are insufficient at grid scale. Solid-state batteries (no liquid electrolyte — safer, higher energy density), flow batteries (scale cheaply), and green hydrogen (electrolysis powered by renewables) are the leading candidates.

Semiconductor Supply Chain: Advanced chip manufacturing is concentrated in Taiwan (TSMC) and South Korea (Samsung). Geopolitical risk has driven massive investment in domestic chip manufacturing — Intel in USA, TSMC in Arizona, semiconductor fabs across Europe. The capital investment for a cutting-edge chip fab exceeds $20 billion.

Miniaturisation Limits: Silicon CMOS transistors are approaching fundamental atomic limits — a 2nm transistor is only 10 silicon atoms across. Solutions being developed: 3D stacking (stacking layers of chips vertically), gate-all-around transistors (better electrostatic control), new channel materials (germanium, III-V compounds), and ultimately carbon nanotube transistors.

22.3 The Role of Applied Physics in Shaping the Future

Applied physics and electronics have transformed human civilisation more than any other field of knowledge over the past 150 years. Electricity brought light, warmth, and communication to billions. Electronics gave humanity computers, the internet, and smartphones. Quantum physics gave us lasers, semiconductors, and MRI machines. Nuclear physics gave both the most destructive weapons and the cleanest large-scale baseload energy source.

The next 50 years will bring quantum computers solving previously unsolvable problems, brain-computer interfaces blurring the boundary between human and machine, fusion energy ending fossil fuel dependence, and nanotechnology rebuilding materials from the atomic scale up.

Every one of these technologies rests entirely on the physics and electronics covered in this guide — from Newton’s laws and Maxwell’s equations through quantum mechanics to semiconductor devices and signal processing. The foundation does not change. The applications built on it are limitless.

The Path Forward for a Student:

Master the fundamentals deeply:
  Classical mechanics → Thermodynamics → Electromagnetism
  → Optics → Quantum physics

Build the electronics foundation:
  Circuits → Semiconductors → Digital electronics
  → Microcontrollers → Communication systems

Apply to real projects:
  Build circuits, program microcontrollers,
  design sensors, simulate systems.

Specialise based on interest:
  Power systems → Energy engineering
  Semiconductors → Microelectronics
  Communication → RF/wireless engineering
  Biomedical → Medical device engineering
  Robotics → Mechatronics
  Quantum → Quantum computing/sensing

The world needs engineers and physicists who
understand both the fundamental principles and
how to apply them. That combination —
applied physics plus electronics — is the skill
set that builds the future.
Scroll to Top