Free book sample

The Computational Brain

Understanding Neural Systems Through Mathematical and Computational Models

Most people think of the brain as a mysterious black box—too complex to understand through science.

207 pages9 chaptersAug 29, 2026Neuroscience

Download sample:

About this book

But the brain is fundamentally a computational system, and once you understand its logic, its behavior becomes predictable and explainable. This book reveals how neuroscientists use mathematics, computer simulations, and algorithms to decode the brain's secrets. You'll discover how individual neurons perform calculations, how networks of neurons create thought and memory, and how computational models help us understand everything from sensory perception to decision-making. Whether you're curious about artificial intelligence, interested in neuroscience, or want to understand the biological basis of cognition, this book provides the conceptual foundation and practical knowledge you need. By exploring real examples and avoiding unnecessary jargon, you'll gain genuine insight into how the brain computes, learns, and adapts—and why this computational perspective is revolutionizing neuroscience.

Table of contents

  1. IntroductionWhy Computation Matters for Understanding the Brain, What This Book Covers and How to Use It, The Computational Lens: A New Way of Seeing NeuroscienceRead below
  2. Chapter 1: Foundations of Computational NeurobiologyWhat Is Computational Neurobiology?, Historical Evolution: From Hodgkin-Huxley to Modern Neuroscience, Scales of Analysis: Molecules to Behavior, Essential Tools and Methods in Computational Neurobiology
  3. Chapter 2: The Neuron as a Computational UnitNeuronal Structure and Electrical Properties, Ion Channels and Membrane Dynamics, Action Potentials: Computation in Action, Mathematical Models of Neuronal Behavior
  4. Chapter 3: Synaptic Transmission and Neural CommunicationSynaptic Structure and Function, Synaptic Plasticity: Learning at the Synapse, Modeling Neurotransmitter Release and Receptor Binding
  5. Chapter 4: Neural Networks and Emergent PropertiesFrom Neurons to Networks: Connectivity and Organization, Network Dynamics and Collective Behavior, Attractors, Stability, and Pattern Formation, Neural Oscillations and Rhythmic Activity
  6. Chapter 5: Learning and Memory: Computational MechanismsComputational Learning Rules and Algorithms, How Neural Networks Store and Retrieve Memories, Reinforcement Learning in Biological Systems
  7. Chapter 6: Sensory Processing and PerceptionNeural Coding: How Sensory Information Is Represented, Feature Detection and Hierarchical Processing, Integrating Multiple Sensory Streams, Computational Models of Perception
  8. Chapter 7: Decision-Making and Motor ControlNeural Circuits for Decision-Making, Computational Principles of Motor Control, How the Brain Selects and Executes Actions
  9. Chapter 8: Artificial Neural Networks and Biological InsightsArtificial Neural Networks: Structure and Learning, Deep Learning and Hierarchical Representations, What Artificial Networks Reveal About Biological Brains, Key Differences Between Artificial and Biological Networks
  10. Chapter 9: Computational Approaches to Brain DisordersComputational Models of Neurological Disorders, Understanding Dysfunction Through Computation, Using Computational Models to Develop Treatments
  11. ConclusionIntegrating Computational Perspectives Across Scales, The Future of Computational Neurobiology
  12. Glossary
  13. Further Reading and Resources

Introduction

A single cortical neuron receives input from thousands of other cells, integrates that input across a membrane only a few nanometers thick, and decides, in a fraction of a millisecond, whether to fire. Multiply that decision by roughly 86 billion neurons and trillions of connections, and you get something that looks less like biology and more like an engineering problem. That shift in framing, from tissue to system, from anatomy to algorithm, is what this book is about. It treats the brain not as a black box defined by its parts, but as a machine whose behavior can be written down, simulated, and tested against real data.

The idea that the brain computes is not new. Warren McCulloch and Walter Pitts proposed in 1943 that networks of simple neuron-like units could perform logical operations, laying early groundwork for both neuroscience and computer science[1]. What has changed since then is the sheer scale of tools available: recordings from thousands of neurons at once, simulations that model whole circuits, and machine learning systems that mirror parts of brain architecture. This convergence has turned computational neurobiology from a niche specialty into a central pillar of modern neuroscience.

This introduction sets the terms for everything that follows. It explains why computation, rather than pure biology or pure mathematics, offers the clearest path to understanding how neural tissue produces behavior, thought, and disease. It lays out how the book is organized and how to move through it depending on background and goals. And it introduces the "computational lens," a way of asking questions about the brain that treats every circuit as solving a problem, with inputs, outputs, and a rule connecting them.

None of this requires an advanced background in mathematics or programming. The chapters build ideas gradually, starting with a single ion channel and ending with whole-brain disorders, and every equation or model is explained through concrete examples rather than abstract notation. The goal is not to turn you into a computational neuroscientist by the final page, but to give you a working, intuitive grasp of how neural systems process information, so that the rest of neuroscience starts to make structural sense rather than reading as a list of disconnected facts.

Why Computation Matters for Understanding the Brain

Consider a simple experiment: touch a hot stove, and your hand pulls back before you consciously register pain. That reflex depends on a chain of measurable, quantifiable events, ion currents crossing membranes, voltage thresholds being crossed, signals traveling down axons at calculable speeds. Purely descriptive biology can name every structure involved, the sensory neuron, the spinal interneuron, the motor neuron, but it cannot explain why the reflex takes exactly as long as it does, or why it fails under certain conditions. Only a quantitative, computational description can answer those questions, because timing and threshold are properties of numbers, not of anatomy alone.

Computation gives neuroscience a language for asking "how" and "how much" instead of just "what" and "where." A textbook description of the retina lists cell types: photoreceptors, bipolar cells, ganglion cells. A computational description asks how the retina compresses millions of photoreceptor signals into roughly one million optic nerve fibers, what information gets discarded, and what algorithm performs that compression. That question has an actual answer, worked out through models of retinal receptive fields, and it explains phenomena purely descriptive anatomy cannot, such as why the eye is more sensitive to contrast than to absolute brightness.

Mathematical models also let neuroscientists run experiments that would be impossible or unethical on living tissue. You cannot ethically lesion specific synapses in a human brain to see how memory degrades, but you can simulate a Hopfield Network, remove a fraction of its connections, and measure exactly how pattern recall breaks down. You cannot easily test a hundred variations of a drug's effect on neural excitability in a living patient, but a Hodgkin-Huxley Model of a neuron's membrane can be adjusted parameter by parameter to explore hypothetical drug effects before ever touching a cell.

This is the same logic that drives simulation in other sciences. Meteorologists do not wait for a hurricane to understand air pressure systems, they build atmospheric models and test scenarios computationally. Structural engineers do not build every bridge design and wait for one to collapse, they simulate stress loads first. Computational neurobiology applies this same discipline to nervous tissue: build a mathematical description of a real biological mechanism, run it under many conditions, and compare its output to what real neurons and real behavior actually do.

The predictive power of this approach shows up clearly in the history of the field. Alan Hodgkin and Andrew Huxley's 1952 model of the squid giant axon did not just describe how action potentials look, it predicted the exact shape, threshold, and speed of the electrical spike from a small set of differential equations describing sodium and potassium conductances[2]. That model, built before modern computers existed, still forms the backbone of the biophysical description covered in the chapter on the neuron as a computational unit. Its success established that neurons follow rules precise enough to be captured in equations, not just described in prose.

Beyond single cells, computation explains properties that only exist at the level of networks, properties biology alone struggles to account for. No single neuron "remembers" a childhood address, and no single neuron "decides" to reach for a coffee cup. These are Emergent Properties, arising from patterns of connectivity and activity across many cells, the same way a traffic jam emerges from individual drivers' decisions without any single driver intending to create one. Computational models make emergence tractable by simulating populations of interacting units and watching collective patterns appear, a method that will run throughout the discussion of neural networks and neural oscillations later in the book.

Skeptics sometimes argue that reducing the brain to equations strips away what makes it interesting, its richness, its unpredictability, its connection to lived experience. But computation does not compete with biological richness, it explains it. Knowing that a chess program evaluates millions of positions per second does not make a chess match less compelling to watch, it makes the skill on display more legible. In the same way, knowing that the Basal Ganglia Action Selection circuit resolves competing action plans through inhibitory competition does not make a difficult decision feel less real, it reveals the machinery beneath the feeling.

There is also a practical stake in getting this right. Computational models of disease, covered later in the chapter on computational approaches to brain disorders, have already reshaped how conditions like Parkinson's disease are treated, particularly through models used to refine Deep Brain Stimulation Model parameters. Without a quantitative account of how basal ganglia circuits misfire, clinicians would be tuning stimulation electrodes by trial and error rather than by principled prediction. Computation, in this sense, is not an abstract academic exercise, it has direct consequences for millions of patients.

What This Book Covers and How to Use It

The chapters ahead move deliberately from small to large, from fast to slow, following what the field calls Scales of Neural Analysis. The book opens with the foundations of computational neurobiology as a discipline, tracing its history and methods, before zooming into the single neuron: its membrane, its ion channels, and the mathematics of the action potential. From there it moves outward to synapses, then to networks of neurons, then to learning and memory, then to entire sensory and motor systems, and finally to disorders that emerge when this machinery breaks down. Each chapter assumes the concepts from earlier ones, so reading in order builds understanding cumulatively rather than as isolated facts.

Chapter 1 lays the groundwork by defining computational neurobiology itself and tracing its lineage from Hodgkin and Huxley's original biophysical equations to the large-scale simulations and data-driven models used today. It introduces the idea of Scales of Neural Analysis explicitly, showing how the same brain can be studied at the level of molecules, cells, circuits, systems, and behavior, and why no single scale gives the full picture. It also surveys the practical toolkit, from differential equations to simulation software, that recurs throughout later chapters.

Chapters 2 and 3 zoom into the cellular and synaptic level. The neuron chapter works through neuronal structure, the behavior of ion channels, and how these combine to generate the action potential, closing with a survey of mathematical models ranging from the detailed Hodgkin-Huxley Model to the simplified Integrate-and-Fire Model. The synapse chapter then explains how signals cross from one neuron to the next, how Synaptic Vesicle Release works, and how synapses change strength over time through Long-Term Potentiation, Long-Term Depression, and Spike-Timing-Dependent Plasticity, the cellular basis of learning.

Chapters 4 and 5 scale up to populations of neurons. The networks chapter explains how connected neurons produce Network Synchrony, Attractor States, and Neural Oscillation, phenomena that cannot be predicted from any single cell in isolation. The learning and memory chapter then asks how these networks encode information over time, covering the Hebbian Learning Rule, models of Pattern Completion in structures like the Hopfield Network, and how Reinforcement Learning and Reward Prediction Error explain how animals learn from consequences rather than instruction.

Chapters 6 and 7 apply these principles to specific brain functions: how sensory systems build representations of the world through Neural Coding, Receptive Fields, and Hierarchical Sensory Processing, and how the brain turns those representations into decisions and movements through frameworks like the Drift-Diffusion Model, Basal Ganglia Action Selection, and the interplay of Forward Model and Inverse Model in motor control. These chapters make the abstract machinery from earlier sections concrete by tying it to lived functions: recognizing a face, choosing a restaurant, catching a ball.

Chapter 8 turns to Artificial Neural Network models, including Backpropagation and Deep Learning, examining what these engineered systems share with biological circuits and where the comparison breaks down. This chapter matters because much of the public conversation about "AI and the brain" conflates the two too quickly, and a careful computational grounding is the best defense against that confusion. Chapter 9 then applies the entire toolkit to disease, showing how Pathological Attractor states and other computational disruptions explain conditions from epilepsy to depression, and how models guide treatments such as Deep Brain Stimulation Model tuning and In-Silico Drug Target Identification.

Readers with a strong biology background but little exposure to mathematics should not skip the mathematical sections out of caution, since each concept is introduced through worked examples before any formal notation appears. Readers already comfortable with basic calculus or programming can move somewhat faster through the early foundational material and spend more time on the network-level and applied chapters, where the more novel and less commonly taught material lives. Either way, the chapters are written to stand on their own reasonably well, so a reader who wants to jump straight to sensory processing or artificial neural networks can do so, returning to earlier chapters as needed when unfamiliar terms appear.

A note on how the concepts recur: terms introduced early, such as Ion Channel or Excitatory-Inhibitory Balance, are not confined to their originating chapter. Excitatory-Inhibitory Balance, first introduced in the discussion of single neurons, reappears when explaining Network Synchrony, again when explaining Neural Oscillation, and again when explaining Pathological Attractor states in disease. This repetition is intentional. It reflects how the actual brain works, reusing the same basic computational motifs across wildly different functions, from a single spinal reflex to an entire decision-making circuit in the prefrontal cortex.

Throughout the book, expect worked examples rather than abstract description alone. When the text introduces the Integrate-and-Fire Model, it will show how a neuron accumulates input current, cross a threshold, and reset, using specific numbers rather than only variables. When it introduces Temporal Difference Learning, it will trace through a simple scenario, such as an animal learning to associate a sound with a reward, step by step. This grounding is meant to make abstract computational ideas feel as concrete as the biological facts you likely already know, such as the location of the hippocampus or the function of a photoreceptor.

The Computational Lens: A New Way of Seeing Neuroscience

David Marr, a foundational figure in computational neuroscience, proposed in the late 1970s that any information-processing system, biological or artificial, should be understood at three distinct levels: the computational level, describing what problem the system solves and why, the algorithmic level, describing what representations and procedures it uses, and the implementational level, describing how those procedures are physically realized[3]. This framework is the clearest articulation of the "computational lens" that gives this book its throughline, and it is worth walking through carefully because it changes what counts as a satisfying explanation in neuroscience.

Take the retina again as an example. At the computational level, the question is: what problem does early vision need to solve? One answer is that the retina needs to compress a high-bandwidth visual signal into a much lower-bandwidth optic nerve while preserving the most behaviorally useful information, mainly changes and edges rather than uniform brightness. At the algorithmic level, the question becomes: what specific procedure achieves that compression? The answer involves center-surround Receptive Fields that respond to contrast rather than absolute light levels. At the implementational level, the question is: what cells and ion channels physically carry out that procedure? The answer involves specific circuits of photoreceptors, bipolar cells, and ganglion cells with particular synaptic wiring.

Traditional neurobiology, historically, has spent most of its energy on the implementational level: identifying cell types, mapping connections, characterizing receptors. This work is indispensable, and nothing in this book argues otherwise. But implementation alone cannot answer "why" questions. Knowing every synapse in a retinal circuit does not by itself explain why that circuit is organized the way it is, or predict how it would respond to a novel stimulus it has never encountered. The computational and algorithmic levels supply that predictive and explanatory power, and this is precisely the gap computational neurobiology exists to fill.

The lens also reframes what counts as a "good" model. A biologically detailed model that reproduces every known channel and receptor in a neuron is not automatically better than a simplified one. The Integrate-and-Fire Model strips away almost all biophysical detail from the Hodgkin-Huxley Model, yet it is often preferred in large-scale network simulations because it captures the behavior that matters, spike timing, while remaining computationally tractable at the scale of thousands of neurons. Choosing the right level of abstraction for a given question is itself a core skill this book aims to build, not a compromise to apologize for.

A useful analogy is a weather model versus a wind tunnel. A wind tunnel gives extremely detailed, physically faithful information about airflow over a single object, but it is slow and expensive to use for every scenario. A simplified atmospheric model sacrifices some physical detail but lets meteorologists run thousands of simulated scenarios quickly, revealing patterns a wind tunnel never could. Neuroscience needs both kinds of models: detailed biophysical models like Hodgkin-Huxley for questions about individual channels and drugs, and simplified models like Integrate-and-Fire or rate-based network models for questions about circuit-level dynamics and learning.

This lens also clarifies a recurring point of confusion between biological neuroscience and artificial intelligence. An Artificial Neural Network trained through Backpropagation is, in Marr's terms, an algorithmic-level model built with almost no attention to biological implementation. It can still be scientifically useful for neuroscience, not because it mimics neurons faithfully, but because comparing its internal representations to real neural activity, using methods like Representational Similarity Analysis, tests specific computational hypotheses about what problem a brain region is solving. The chapter on artificial neural networks and biological insights returns to this comparison in depth, but the groundwork for that comparison starts here, with the recognition that "algorithm" and "implementation" are separable questions.

Applying the computational lens changes the kinds of questions worth asking about any circuit encountered later in the book. Instead of only asking "what does this brain area do," the more productive question becomes "what computation does this brain area perform, what algorithm implements that computation, and what circuit carries out that algorithm." For the hippocampus, this reframes memory storage as a Pattern Completion problem solvable by attractor dynamics. For the cerebellum, this reframes motor correction as an error-minimization problem solvable through Cerebellum Error Correction circuits comparing predicted and actual movement. The chapters ahead will keep returning to this three-part question, because it is the single habit of mind most responsible for the progress computational neuroscience has made since Marr's framework was first proposed.

By the end of this book, that three-part question should feel automatic rather than effortful. Encountering a new brain region or a new experimental finding, the instinct should shift from "what is this called and where is it located" toward "what problem is being solved here, and what would a computational model of that problem need to include." That shift in instinct, more than any single equation or model memorized along the way, is the actual outcome this book is built to produce, and it is the thread connecting a single ion channel in Chapter 2 to a psychiatric disorder in Chapter 9.

Back to contents

Notes

Introduction

  1. 1. Warren McCulloch and Walter Pitts, "A Logical Calculus of the Ideas Immanent in Nervous Activity," Bulletin of Mathematical Biophysics, 1943
  2. 2. Alan Hodgkin and Andrew Huxley, "A Quantitative Description of Membrane Current and Its Application to Conduction and Excitation in Nerve," Journal of Physiology, 1952
  3. 3. David Marr, "Vision," W.H. Freeman, 1982

This is the end of the free sample. The full book has 9 chapters.

Want this book written for you?

Tell us your goals and background, and get your own version of this book, tailored by AI to you.

User avatar
User avatar
User avatar
User avatar
User avatar
9,213 books created by readers like you
As seen on:
Product HuntRedditMediumDEV

Benefits of AI-tailored books

Read one book, not ten:
all the Neuroscience knowledge you need, gathered into a single book.
Save days of learning:
tell us your goals, choose your topics, and the whole book is built around them.
Learn effortlessly:
Neuroscience book written for your specific background and expertise.
Understand at a glance:
includes charts, tables, timelines, checklists, decision trees, and more.
Stay current:
written the day you order it, not years ago.
Trust what you read:
every book is checked for accuracy, with real research when your subject needs it.

Create your unique book in 3 steps

1. Select your focus

Select the focus of your Neuroscience book and share your background

Your Neuroscience book focus
2. Personalize your book

Specify your goals and choose sub-topics to include

3. Get your tailored book

Your book is ready in 10 minutes. Read it online, download as EPUB or PDF, or send to Kindle.

Frequently asked questions

What is TailoredRead?

TailoredRead creates complete, full-length nonfiction ebooks, written specifically for you. Tell us what you want to learn and why, and TailoredRead writes you a complete ebook on it, with charts, tables, and diagrams throughout. Read it online, on Kindle, or on any e-reader, or download it as a PDF or EPUB. Every book is written fresh the day you order it.

How is the book tailored to me?

Before anything is written, you answer a few short questions about your goals, your background, and the topics you care about. Your book is then planned around your answers: written at your level, focused on your goals, and covering the topics you chose, instead of the one-size-fits-all book a store sells everyone.

Will it read like generic AI content?

No. Your book isn't a chat transcript: it's planned chapter by chapter before a single word is written, told in a clear book voice, and explains ideas visually with charts, tables, and diagrams. After writing, every book goes through an editorial pass that polishes chapters so the book reads consistent from start to finish. Judge for yourself: browse thousands of sample books on our Explore Books page.

How accurate is the content?

Our AI first checks whether your subject needs live research. Niche and fast-moving subjects are researched before writing, and the book plan and chapters are grounded in what it finds. After writing, every book goes through a quality pass that checks its facts and consistency, and researched books list their sources in a Notes section at the back.

How long is the book?

You choose the length: Comprehensive (250-300 pages), Detailed (150-200 pages), Essential (70-100 pages), or Short (30-50 pages).

Does the book include visuals?

Yes. Every book includes charts, tables, and diagrams: timelines, checklists, step-by-step guides, decision trees, comparison tables, matrices, and bar charts. A typical book includes dozens of these visual elements.

Can I read it on Kindle? What formats can I download?

Yes. Every book can be read in our online reader or downloaded as a PDF or EPUB. The EPUB can be opened with Kindle, Apple Books, Kobo, and any e-reader. The Commercial and Author licenses also include an editable Word (DOCX) and Markdown download.

How much does it cost?

About the price of a regular ebook. The exact price depends on your book's length and complexity, from $2 for the shortest books to $35 for the most comprehensive, and it's shown when you review your book, before you commit to anything. Each book is a one-time purchase, yours to keep, no subscription. Licenses that let you share, teach, or publish your book range from $35.99 to $49.99.

Can I preview the book before purchasing?

Before you pay, you'll see what your book will cover: the title, a detailed description, the estimated length, and the complete chapter-by-chapter table of contents, so you know what you're getting before you decide. The full text itself is written after you purchase.

How long does it take to create a book?

About 10 minutes. You can start reading the opening chapters while the rest is still being written.

Personalize and buy this book

Get your personalized version, tailored by AI to your goals, background, and interests