Skip to content


  • Research
  • Open Access

Computational Convergence of the Path Integral for Real Dendritic Morphologies

  • 1, 2Email author,
  • 3,
  • 1, 4 and
  • 1, 2
The Journal of Mathematical Neuroscience20122:11

  • Received: 19 June 2012
  • Accepted: 11 September 2012
  • Published:


Neurons are characterised by a morphological structure unique amongst biological cells, the core of which is the dendritic tree. The vast number of dendritic geometries, combined with heterogeneous properties of the cell membrane, continue to challenge scientists in predicting neuronal input-output relationships, even in the case of sub-threshold dendritic currents. The Green’s function obtained for a given dendritic geometry provides this functional relationship for passive or quasi-active dendrites and can be constructed by a sum-over-trips approach based on a path integral formalism. In this paper, we introduce a number of efficient algorithms for realisation of the sum-over-trips framework and investigate the convergence of these algorithms on different dendritic geometries. We demonstrate that the convergence of the trip sampling methods strongly depends on dendritic morphology as well as the biophysical properties of the cell membrane. For real morphologies, the number of trips to guarantee a small convergence error might become very large and strongly affect computational efficiency. As an alternative, we introduce a highly-efficient matrix method which can be applied to arbitrary branching structures.


  • Dendrites
  • Path integral
  • Sum-over-trips
  • Morphology
  • Dendritic computation

1 Introduction

Discovered more than a century ago by Santiago Ramón y Cajal [1], dendrites form the vast majority of the surface area of a neuron, with the dendritic trees of some motoneurons representing up to 97% of total neuronal surface area and 75% of the total neuronal volume [2]. These complex branching structures are responsible for transferring electrical activity between synapses and the soma. As technology evolved, interest in dendrites began to gather momentum, with the invention of sharp micropipette electrodes in the early 1950s allowing intracellular recordings to be made. It was the breakthrough work of Wilfrid Rall [3] on the application of cable theory to dendritic modelling that provided significant insight into the role of dendrites in processing synaptic inputs, the historical perspective of which is summarised in a book by Segev, Rinzel and Shepherd [4]. Recent experimental and theoretical studies reinforce the fact that dendritic morphology and membrane properties play an important role in dendritic integration [5, 6]. We refer the reader to the book Dendrites [7], devoted exclusively to these formations and revealing their biological complexity at different scales.

It has also been known for some time that nonlinear voltage-gated ion channels are present in the dendrites of various types of neurons [8], and many recent dendritic models are constructed by combining the linear (passive) properties of dendrites together with nonlinear (active) dynamics of membrane channels. Although the nonlinear properties of ion channels contribute considerably to neuronal input-output relations, it is important to recognise that the passive properties of dendritic membranes provide the fundamental core for signal filtration and integration, and thus remain an essential component in understanding electrical signalling in dendrites [9].

When branched dendritic fibres are modelled by passive cable equations, the voltage response across the branching structure for any form of applied current can be calculated via a convolution operation, as long as the Green’s function for the given dendritic tree is found. This approach provides an alternative to the compartmental method, based on the discrete spatial approximation of the potential [10, 11]. It is not always trivial to construct such a Green’s function for realistic dendritic geometries. Arbitrarily-branching systems are inherently difficult to solve, a fact recognised early by Rall, who proposed a method of mapping the branching structure onto an equivalent cylinder provided that certain geometrical restrictions were satisfied [12]. The work of Koch and Poggio [13], based on the graphical calculus of Butz and Cowan [14], focused on the calculation of the response function for complete dendritic trees in the Laplace (frequency) domain. Later, Rall’s method of equivalent cylinders was extended by releasing the constraints on diameters of individual branches and by constructing the Green’s function, again in the Laplace domain [15, 16]. An alternative method for constructing the Green’s function for a branching structure with a shunted soma was proposed by Evans and coauthors [1719]. In this series of papers, the response function was found in the form of an eigenfunction expansion, which converges particularly rapidly for large times. For smaller times, a Laplace-domain series solution provides better accuracy, agreeing well with an earlier “sum-over-trips” method for constructing the Green’s function directly in the time domain, proposed by Abbott et al. [20]. This sum-over-trips framework is built on a path integral formulation and enables the calculation of the Green’s function on an arbitrary dendritic geometry as a convergent infinite series solution. Cao and Abbott [21] presented an algorithm for a computational realisation of the sum-over-trips approach, based on the division of trips into four classes. They applied this algorithm to a number of sample dendritic trees, the largest of which had 22 branches, in contrast to real dendritic geometries, which might have more than 400 terminals alone [22], with a large variation in branch length. This complexity in neuronal morphologies across different types of neurons is expected to affect the convergence of computational implementations of the sum-over-trips framework.

In this paper, we introduce and investigate a number of efficient algorithms for calculating the Green’s function on dendritic trees using the sum-over-trips formalism. In Sect. 2, we review the theoretical framework and the four-classes algorithm of Cao and Abbott [21], and introduce alternative algorithms for the sum-over-trips method in Sect. 3. We begin with a modification on the four-classes algorithm aimed at improving its time complexity by developing a formal grammar to derive the trips. Then, a length-priority ordering of the trips using Eppstein’s algorithm [23] for finding the k shortest trips on a graph is proposed. We also derive a stochastic approach for sampling trips on the tree based on a Monte-Carlo approach. Finally, a highly-efficient deterministic method for discretised tree structures is described. We assess the convergence of the introduced algorithms on different dendritic geometries in Sect. 4, where we also compare the delay and attenuation of voltage spread on four reconstructed dendritic morphologies. Finally, in Sect. 5, we provide a discussion of our results, as well as possible extensions of this work.

2 The Sum-over-trips Framework

We consider a dendritic branching structure with the dynamics of the membrane voltage on a finite branch i described by the passive cable equation. An external current I j ( t ) is injected at a location y on branch j. The transmembrane voltage across the dendritic tree is then described by the following set of equations:
π a i C V i t = π a i 2 4 R a 2 V i x 2 π a i R V i , 0 x L i , i j
π a j C V j t = π a j 2 4 R a 2 V j x 2 π a j R V j + δ ( x y ) I j ( t ) , 0 x L j .
Here, a i is the diameter of branch i (measured in μm), R a is the specific cytoplasmic resistivity (in Ω cm), C is the specific membrane capacitance (in μF cm−2), and R is the resistance across one unit area of passive membrane (in Ω cm2). Introducing the electrotonic space constant λ i = a i R / ( 4 R a ) , the membrane time constant τ = R C and the diffusion coefficient D i = λ i 2 / τ , Eqs. (1) and (2) can be rewritten as
V i t = D i 2 V i x 2 V i τ , 0 x L i , i j ,
V j t = D j 2 V j x 2 V j τ + 1 π a j C δ ( x y ) I j ( t ) , 0 x L j .
In addition to these equations, the appropriate boundary conditions must be specified at all branching nodes and terminals: continuity of the potential across a node and Kirchoff’s law of conservation of current. Continuity of the potential requires that, for all pairs of branches m and n attached to a node,
V m ( L m , t ) = V n ( 0 , t ) ,
where the distal end of branch m is connected to the proximal end of branch n. Conservation of current for the same node imposes
m 1 r m V m x | x = L m = n 1 r n V n x | x = 0 ,
where r n = 4 R a / ( π a n 2 ) is the axial resistance on branch n (in Ω cm−1), and each sum is over all branches connected to this node either with their distal or proximal ends. At individual terminals, we can either impose a closed-end boundary condition,
V k x | x = L k = 0 ,
or an open-end boundary condition,
V k ( L k , t ) = 0 ,

where x = L k is a terminal on branch k.

When the injected current has the form of a delta pulse, that is, I j ( t ) = δ ( t ) , the solution to Eqs. (3) and (4) is the Green’s function G i j ( x , y , t ) which can be found as
G i j ( x , y , t ) = 1 π a j C trips A trip G ( L trip , t ) ,
where the sum is over all trips (more formally, graph-theoretic walks), starting at x and finishing at y, and describes the time-course of the membrane voltage at the location x on branch i in response to the injected current at the location y on branch j, where i can be taken to equal j if desired. The function G takes the form
G ( L trip , t ) = 1 4 π t D j e ( L trip ) 2 τ / ( 4 t ) e t / τ ,

where L trip = L trip ( x / λ i , y / λ j ) is the length of a trip along the tree that starts at point x / λ i on branch i and ends at point y / λ j on branch j. Note that the length of each branch needs to be scaled by its own electrotonic space constant before L trip is calculated for Eq. (6). A constructed trip is allowed to reflect on or pass through any node on the tree an arbitrary number of times. The coefficients A trip depend on the constructed trip and are determined according to the following rules [20]:

  • From any starting point, A trip = 1 .

  • For every node at which the trip passes from branch m to branch k where m k , A trip is multiplied by a factor 2 p k .

  • For every node at which the trip reflects along on a node back onto the same branch n, A trip is multiplied by a factor 2 p n 1 .

  • For every terminal, A trip is multiplied by +1 for the closed-end boundary condition or by −1 for the open-end boundary condition.

When the electrical properties of the cell membrane are identical for all branches, the factors p k are defined as
p k = a k 3 / 2 m a m 3 / 2 ,
where the sum is over all branches m connected to the node. When the parameters R and R a vary from branch to branch, the expression (7) must be modified:
p k = ( λ k r k ) 1 m ( λ m r m ) 1 .

However, note that the sum-over-trips method for constructing the Green’s function in the time domain only works for uniform characteristic time constant τ across the entirety of the dendritic tree. The generalisation of this framework to support a quasi-active membrane, instead of a passive membrane, releases this restriction and different cell membrane properties can be chosen on each branch [24]. However, this means that the construction of the Green’s function as an infinite series solution can only be performed in the Laplace domain.

Knowing the Green’s function for a given dendritic structure allows one to find the voltage response along the entire tree. By finding G i j ( x , y , t ) for the ordered pair ( x , y ) , the Green’s function G j i ( y , x , t ) can be found using a simple reciprocity identity:
G j i ( y , x , t ) = D j r j D i r i G i j ( x , y , t ) .
The voltage response can then be found for an arbitrary number of different discrete inputs as a sum of convolution integrals:
V i ( x , t ) = j 0 t G i j ( x , x j , t s ) I j ( s ) d s ,

where x j is a location of a stimulus I j ( t ) on branch j.

The Green’s function calculated by Eq. (5) for any branching structure with finite length branches includes an infinite number of terms. It is possible to show that this infinite series solution converges faster than e k , for sufficiently-high k, the number of nodes visited by the trip. We demonstrate this in the Appendix for an arbitrary tree with nodes of degree d = 3 or less. This generalises Abbott’s convergence analysis [25], where it was shown that, for an infinite binary tree, the sum of coefficients A trip is O ( 1 ) for trips visiting any number of nodes.

2.1 Four-Classes Algorithm

Cao and Abbott [21] introduced an algorithm for constructing the Green’s function using the sum-over-trips method. Their algorithm is based on finding the shortest trips between any two points of measurement x and current injection y on a tree. Starting from the most direct, shortest trip from x to y, passing through the minimum number of nodes, four classes of trips are defined by allowing a trip to leave the point x in either direction and approach y from either direction along their respective branches. These initial trips, therefore, form the first and shortest trips in their respective classes; longer trips are generated incrementally from these. New additional trips can pass the points x and y any number of times and are allowed to change direction at any node. We will refer to this method as the four-classes algorithm.

Figure 1 shows a model branching structure with two points x and y, and the four shortest classes of trips between them. Trips are represented as sequences of node identifiers, beginning and ending with x and y respectively. For example, we denote a trip from x to y via nodes A, B and C by its full description, x A B C y .
Fig. 1
Fig. 1

Four classes of trips between two points. Class 1 is the most direct trip, leaving x in the direction of y and not going past y before finishing ( x B y ). Class 2 leaves x in the other direction, but finishes when it meets y ( x A B y ). Class 3 moves from x towards y, but goes past y and changes direction immediately after passing it before finishing ( x B C y ). Class 4 trips move from x first away from point y and pass y before reflecting on the next node and finishing ( x A B C y )

From these main trips, the four-classes algorithm generates all x y trips by inserting what are described as “excursions” into the trips. If A and B are adjacent nodes in a tree, then an excursion could be added to the trip x B y to generate the trip x B A B y , representing a reflection on node B towards A, reflecting at the terminal A back towards B, passing through this node and finally onto point y. This process can be iterated indefinitely, generating a trip with two more nodes each time. If this process is applied to every node on every trip with n and n + 1 nodes, then every trip with n + 2 and n + 3 nodes will be generated. Thus, from the four shortest x y trips on the tree, it is possible to construct all trips up to some threshold number of nodes in length explicitly. The lengths and coefficients of these trips can then be calculated from their full trip descriptions, allowing the Green’s function given by Eq. (5) to be approximated.

3 Algorithmic Realisations

Here, we suggest possible modifications to the four-classes algorithm of Cao and Abbott [21] as well as introduce novel alternative algorithms for the sum-over-trips formalism.

3.1 Formal Language Theory Approach

The four-classes algorithm generates duplicate trips [21], which must then be removed by a binary search through the list of existing trips for every new trip generated, which takes O ( k log k ) time overall, where k is the number of trips constructed. There are two different mechanisms by which duplicate trips are generated, and both mechanisms can be eliminated by applying simple restrictions to the choice of excursions applicable to a trip. As an example of the first, for the tree in Fig. 1, it is possible to generate the trip x B A B C B y in two different ways from the shortest Class 1 trip, x B y :
x B y Excursion B B A B x B A B y Excursion B B C B x B A B C B y , x B y Excursion B B C B x B C B y Excursion B B A B x B A B C B y .
Due to the fact that the excursion may be added at any step in the trip (at the first or second B), the same trip may be generated multiple times. If we insist that excursions cannot be added at any step that precedes the excursion most recently added to the trip, this can be prevented. In the theory of context-free grammars, this is equivalent to requiring a leftmost derivation. We can represent this using a symbol to separate the mutable and immutable parts of the trip:
The second mechanism by which duplicate trips are produced is the addition of excursions along the same branch, starting from either end. In the structure in Fig. 1, we have both A A | B A and B B | A B . Hence, in spite of the leftmost derivation rule, we can generate x A B A B y in two different ways (brackets added for clarity):
x | A B y x ( A | B A ) B y , x | A B y x A ( B | A B ) y .

This problem can be avoided by assigning each branch a direction. If the branch AB is given the direction B A , then the excursion A A | B A is disallowed. The choice of direction for each branch is unambiguous on acyclic structures: apart from the branch on which x is found, each branch must be directed away from x. The branch upon which x resides is directed away from y. This ensures that each node has a sequence of excursions that allow the algorithm to generate trips including it. The allocation of direction to each branch can be performed before the process of generating trips and may coincide with finding the four main classes of trips. These modifications require that the graph be acyclic, since “away from a point” is not generally definable on a graph with cycles. There do exist cyclic graphs for which an unambiguous grammar can generate the language of x y trips, but these are not relevant to the study of single dendritic trees.

The two presented modifications of the four-classes algorithm are sufficient to prevent the generation of any duplicate trips, without any trips being missed. Together, they provide an unambiguous context-free grammar generating the language of x y trips.

3.2 Length-Priority Method

Since the coefficients A trip decay at most with e L trip (although the number of trips increases with e L trip ), the dominating term in the Green’s function (5) is the exponential decay e L trip 2 in G . The four-classes algorithm [21] does not generate trips in monotonic order in length, since trips are constructed by adding the same excursion to all four classes of trips. If, for example, a Class 2 trip is significantly longer than its Class 1 counterpart, due to x being along a long edge but close to a node, then a longer Class 2 trip will be generated before a potentially shorter Class 1 trip having an additional excursion on a shorter branch. In general, trips are likely to be disordered in length if the branches upon which x or y reside are substantially longer than at least one other branch on the tree, or if x or y are much closer to one of their adjacent nodes than to the other.

Here, we propose to realise the sum-over-trips framework by a length-priority method. In this implementation, trips are generated and the corresponding terms A trip G ( L trip , t ) are added to the infinite series solution (5) in monotonic order in length L trip . This is achieved by incorporating Eppstein’s algorithm [23] for finding the k shortest trips on a graph in O ( m + n log n + k ) time, with n being the number of nodes and m the number of edges on the branching structure.

Both the four-classes algorithm and the improvements described in the language-theoretic approach rely on storing trips explicitly as sequences of nodes. This consumes O ( k n ) space and time for k trips with n nodes but allows on-the-fly calculation of coefficients A trip . This is contrary to Eppstein’s algorithm [23], which stores trips using an implicit representation and allows us to find the k shortest trips implicitly using only O ( 1 ) space and time for each trip. The current implementation, based on Eppstein’s algorithm, requires O ( k n ) time to calculate coefficients despite the savings on space due to the implicit trip representation. However, Eppstein provides a method for computing any property that can be described by a monoid in O ( 1 ) time per trip. Such a description of coefficient calculation exists, and its use would supplement the current O ( k n ) to O ( k ) decrease in space requirements with an analogous decrease in time complexity. The savings in space already allow the length-priority method to scale better than the four-classes algorithm.

3.3 Monte-Carlo Method

The path integral formulation of the solution to the cable equation introduced by Abbott et al. [20] is derived via consideration of a Feynman–Kac representation of the solution in terms of random walkers on the dendritic geometry. Hence, it is natural to consider Monte-Carlo approaches to evaluating this path integral. Instead of a length-ordered series solution as provided by the length-priority approach, the Green’s function (5) can be constructed using a stochastic algorithm. The aim of this approach is to sample from trips x y in such a way that the probabilistically more likely samples coincide with the trips that contribute most to the series solution (5).

To motivate this Monte-Carlo approach, let us consider a linear diffusion equation along an infinite one-dimensional cable,
G t = D 2 G x 2 , t [ 0 , T ] ,
satisfying the initial condition G ( x , 0 ) = δ ( x y ) . Analogously, a diffusion process for the state variable X t can be defined by the stochastic equation
d X t = 2 D d W t ,
with the Wiener process W t and the initial condition X 0 = y . It is well known that Eq. (11) is the Kolmogorov equation of the diffusion process (12), that is, the time evolution equation of the probability density for the state of the diffusion (12). On the one hand, solution of (11) via classical numerical or analytical methodology informs the probability density of X t ; on the other hand, repeated sampling from (12) converges upon the solution G ( x , t ) of (11). This method of sampling from random walks can also be applied for arbitrary geometries by setting the appropriate boundary conditions at the branching nodes and terminals. Knowing G i j ( x , y , t ) on a branching structure, we can easily find a solution of the cable equation on this geometry using the relation
G i j ( x , y , t ) = G i j ( x , y , t ) e t / τ .
Because the path integral form of the solution is equivalent to the expectation of a function on random walks upon the branching points of the dendritic tree, reduction of the random walk problem from the complete continuous space geometry of the neuron to the discrete topology of the branching points of the neuron gives a considerable efficiency saving to a Monte-Carlo solver. We introduce a parameter k max , the maximum number of discrete hops on nodes for which we wish to calculate the expectation. The maximum number is based upon the effective maximum range of diffusion during the interval [ 0 , t ] . Then, we generate a realisation of a random walk on the nodes,
ω = ( ω 1 , ω 2 , , ω k max ) ,
where each ω k is a label identifying a particular node. For trips x y we select ω 1 such that it is either of the two nodes adjacent to the branch containing x, with equal probability. By indexing a branch between two nodes, ω k 1 and ω k , as the k th branch, subsequent steps are performed with the transition probability
P ( ω k | ω k 1 ) = p k , 2 k k max ,
where p k is given by (7). This connects the Monte-Carlo method to the earlier discussed path enumeration methods. Here, we introduce two auxiliary functions, ϕ and a ˜ , of subwalks of ω. The first is a function indicating whether a subwalk of k steps on a realisation ω is a valid trip, and is defined by
ϕ ( y , k , t , ω ) = { G ( L ( y , k , ω ) , t ) , if  ω k 1  and  ω k  are the nodes adjacent to  y , 0 , otherwise ,
where k is the number of hops on nodes in the subwalk and L ( y , k , ω ) is the length of the subwalk. The other auxiliary function a ˜ is defined as
a ˜ ( k , ω ) = { 1 , if  k = 1 , 2 , 2 , if  ω k 2 ω k , ( 2 p k 1 ) / p k , if  ω k 2 = ω k , 1 , if at a closed terminal (this takes priority) .
The relevant function on paths can be defined as a composite of the auxiliary functions described above:
A ˜ ( y , ω , t ) = k = 1 k max 2 ϕ ( y , k , t , ω ) ( i = 1 k a ˜ ( i , ω ) ) .
The expectation of A ˜ with respect to the random walk (14) is equivalent to solving for the path integral, up to some value of k max at time t:
E P [ A ˜ ( y , ω , t ) ] = ω P ( ω ) A ˜ ( y , ω , t ) = ω k = 1 k max 2 P ( ω ) ϕ ( y , k , ω ) ( i = 1 k a ˜ ( i , ω ) ) = ω : x y at k k = 1 k max 2 P ( ω ) G ( L ( y , k , ω ) , t ) ( i = 1 k a ˜ ( i , ω ) ) = trips x y A trip G ( L trip , t ) ,

where P ( ω ) is the probability of the realisation ω, and E denotes the expectation operator. Therefore, the Monte-Carlo strategy is to sample, sequentially or in parallel, the random function A ˜ in order to construct this expectation.

3.4 Matrix Method

An alternative method of constructing the sum-over-trips series solution is by grouping trips by their lengths:
trips A trip G ( L trip , t ) = l G ( l , t ) t r i p s w i t h L trip = l A trip ,

where the sum over l is over all possible trip lengths L trip . On a dendritic tree, discretised as in compartmental models [10] or in a manner similar to the discretisation of the tree into segments in NEURON [26], grouping trips according to their lengths allows us to count the number of trips of a given length l without having to explicitly construct them.

This method uses a modified directed edge adjacency matrix of the discretised tree in order to compute the sum of coefficients of trips of a given length. It requires all compartments to have the same fixed length Δx, although this restriction can be relaxed in a generalisation presented at the end of this section. The extremities of compartments define the position of nodes; there is a directed edge in both directions between adjacent nodes.

We begin by defining V as the set of nodes and as the set of directed edges in the discretised tree. Edges are ordered pairs of nodes: e = ( u , v ) E is a directed edge from u to v, with u , v V . For any edge e = ( u , v ) , we denote the reverse edge by e = ( v , u ) . Trips are taken to begin from a point x along a starting edge s = ( s 1 , s 2 ) and end at a point y along a goal edge g = ( g 1 , g 2 ) for s , g E . We say that x s or x ( s 1 , s 2 ) if x resides along edge s = ( s 1 , s 2 ) . Based on the locations of x s and y g , the orientations of s and g are defined such that the shortest x y trip satisfies x s 2 g 1 y . Therefore, the shortest x y trip always starts on edge s, that is, in the s 1 s 2 direction, and approaches y along the edge g, in the g 1 g 2 direction. This is equivalent to a Class 1 trip; Class 2 trips leave x along the s = ( s 2 , s 1 ) edge, arrive at y g ; Class 3 trips go from x s to y g ; Class 4 trips, finally, go from x s to y g . The locations of the points x s and y g along their respective edges are given as a fraction of the branch length such that x Δ x denotes the distance from x to s 2 and y Δ x is the distance between node g 1 and point y. We distinguish between k, the number of edges travelled in a particular trip, from the length of the trip L trip . Because x and y reside along their respective edges, the total length of a trip that travels along k edges is less than if the full distance along k edges had been travelled. That is, L trip < k Δ x for any combination of x, y and for all k.

The aim of the matrix method is to group all trips starting on a given edge and finishing on a target edge by their lengths, L trip , and calculate the sum of the coefficients A trip of those trips for each particular group instead of calculating coefficients individually for each trip. The sums of coefficients are computed simultaneously for trips ending on all edges, starting at a point x ( s 1 , s 2 ) , allowing us to compute G i j for all j, for all x on edge i and for all y on any edge, in a single run of the calculation. We define the coefficients function c k s : E R , s E , as the sum of all coefficients A trip which begin at point x s and travel over k edges, finishing on a given edge g:
c k s ( g ) = trips x y i n k jumps A trip , x s , y g .

Because the set of edges is both ordered and finite, then c k s = ( c k s ( e 1 ) , , c k s ( e | E | ) ) R | E | can be thought of as a vector, where e i E for i = 1 , , | E | . The i th element of the vector c k s corresponds to the sum of coefficients A trip for all trips originating at x on s and ending along the i th edge e i , having travelled over k edges. The vector c 1 s consists mostly of zeros, with a one only in the entry corresponding to the edge s, as the coefficient of moving in this direction remains 1, while all other moves are invalid by travelling over only one edge, and hence have coefficient 0.

We can now define a matrix Q R E × E such that
Q k c 1 = c k + 1 .
Q is a modified form of the edge-adjacency matrix, where instead of containing ones to denote edge adjacency and zero otherwise, it contains the coefficient taken in moving from one edge to another. The entries of Q can be computed based on the morphology of the graph. If the j th entry corresponds to edge ( u , v ) and the i th entry to edge ( v , w ) , then the entry Q j i is the coefficient taken when moving from branch ( u , v ) to ( v , w ) . In the general case, these numerical values must be determined for each entry. However, in the simplified case where the radii on all branches are equal and all nodes have degree d = 1 or d = 3 , the matrix Q can be constructed according to
Q j i = { 1 3 , if  j = ( u , v )  and  i = ( v , u ) , where  v  is a node of degree  d = 3 , 1 , if  j = ( u , v )  and  i = ( v , u ) , where  v  is a closed terminal ( d = 1 ) , 2 3 , if  j = ( u , v )  and  i = ( v , w ) , where  u w , 0 , otherwise .

Note that the above rules apply to the transpose of Q i j .

Thus, knowing the matrix Q from the dendritic geometry and the vector c 1 s from the starting edge s, it is possible to construct the sum of c k s ( g ) terms, for all k < k max , equal to the sum of coefficients for all trips travelling up to k max edges, from x s to y g . However, by considering trips moving from x in one direction only and arriving at y from only one direction, we have calculated the coefficients of just Class 1 trips. In order to find coefficients for the remaining three classes, we must also compute c k s ( g ) , c k s ( g ) and c k s ( g ) . These can be found in the same way as above. Using (15), the Green’s function in (5) can therefore be written as
G i j ( x , y , t ) = trips x to y A trip G ( L trip , t ) = k = 1 k max [ ( Q k 1 c 1 s ) g G ( L 1 ( k ) , t ) + ( Q k 1 c 1 s ) g G ( L 2 ( k ) , t ) + ( Q k 1 c 1 s ) g G ( L 3 ( k ) , t ) + ( Q k 1 c 1 s ) g G ( L 4 ( k ) , t ) ] ,
where ( Q c 1 s ) g is the g th element of the matrix-vector product of Q and c 1 s . Lengths L 1 , , L 4 are the lengths of Class 1 to Class 4 trips, respectively, and are defined as
L 1 ( k ) = Δ x ( 2 ( k 1 ) + x + y ) , L 2 ( k ) = Δ x ( 2 k x + y ) , L 3 ( k ) = Δ x ( 2 k + x y ) , L 4 ( k ) = Δ x ( 2 ( k + 1 ) x y ) .

By selecting a small Δx, branches may be approximated by a discretisation using an integer number of edges of length Δx. As in compartmental models, this allows the full morphology of the dendritic tree to be approximated, in a trade-off between high speed (large Δx) and accuracy (small Δx). As Δ x 0 , however, this approach tends to the computational complexity of naively integrating the cable equation using numerical methods. As in numerical simulations, where reducing Δx in order to increase accuracy brings about a necessary and associated change in Δt, the same is true of the matrix method: selecting a small Δx and hence increasing | E | , implies that k max must be increased.

This algorithm can be generalised to accept several discrete edge lengths Δ x 1 , , Δ x n , at an exponential cost in the number of different lengths n, allowing “caricature” neurons to be constructed from a small number of different edge lengths. Our description of this method is focused on the case where x and y are located on different branches. For computations where x and y are required to exist on the same edge, the edges can be discretised such that x and y appear on different segments. In all cases with bounded node degree, Q is a sparse matrix with only a few entries per row, and O ( | E | ) entries altogether, making the complexity for the calculation of all coefficients O ( | E | k max ) by using highly-efficient sparse linear algebra algorithms.

3.4.1 Example calculation

Here, we demonstrate an example realisation of the matrix method for a dendritic structure of three branches of equal length Δx, shown in Fig. 2. In this symmetrical case, the matrix Q is very small and can be constructed by hand. We place the point of measurement x along edge s = ( A , B ) and the point of current injection y along g = ( B , D ) .
Fig. 2
Fig. 2

A dendritic structure used in the example calculation for the matrix method

We begin by ordering the edge pairs as follows: ( A , B ) , ( B , A ) , ( B , C ) , ( C , B ) , ( B , D ) , ( D , B ) . Based on this ordered set, we can obtain two coefficients vectors c 1 , one for trips that begin at x and move towards B, denoted c 1 s = ( 1 0 0 0 0 0 ) T , and another for trips moving from x towards node A, denoted c 1 s = ( 0 1 0 0 0 0 ) T . Using the rules described in (16), we can construct the matrix Q for our dendritic structure as follows:
Q = ( 0 1 0 0 0 0 1 3 0 0 2 3 0 2 3 2 3 0 0 1 3 0 2 3 0 0 1 0 0 0 2 3 0 0 2 3 0 1 3 0 0 0 0 1 0 ) .
Note that all rows and columns sum to 1. Knowing this matrix Q and breaking the trips into four main classes, it is straightforward to find the complete Green’s function:
G s g ( x , y , t ) = k = 1 k max ( Q k 1 c 1 s ) g G ( Δ x ( 2 n + x + y ) , t ) + k = 1 k max ( Q k 1 c 1 s ) g G ( Δ x ( 2 n + 2 x + y ) , t ) + k = 1 k max ( Q k 1 c 1 s ) g G ( Δ x ( 2 n + 2 + x y ) , t ) + k = 1 k max ( Q k 1 c 1 s ) g G ( Δ x ( 2 n + 4 x y ) , t ) .

4 Convergence of Methods

We first validate the computational implementations of our algorithms by constructing the Green’s function G i j ( x , y , t ) on a small binary tree. Two profiles of the response function obtained by the length-priority, the Monte-Carlo and the matrix methods are shown in Fig. 3 and compared to a numerical simulation computed by the software package NEURON [26]. These plots demonstrate an excellent agreement between a number of approaches for obtaining the Green’s function and the numerical solution, with a slightly worse performance of the Monte-Carlo method for larger times.
Fig. 3
Fig. 3

The Green’s function constructed by a number of methods. The voltage traces show the analytical solutions G i j ( x , y , t ) for fixed x and y on a binary tree for the length-priority method (red circles), the Monte-Carlo method (blue diamonds) and the matrix method with k max = 100 (green squares) superimposed on NEURON’s numerical solution (black line). Parameter set A (Table 1) is used in these computations

The computational convergence of any algorithm impacts both the accuracy of its results and the speed at which these results are obtained. While the series solution to the Green’s function (5) is proven to converge for a sufficiently-high number of terms (see the Appendix), this assumes optimal ordering of terms in the solution. Because the coefficients A trip are impossible to compute until a trip is constructed, generating terms for the series solution in descending order of magnitude is inherently difficult. The four-classes, length-priority and matrix methods generate trips in order of increasing L trip , with the aim of ordering trips by their G ( L trip , t ) terms, which decreases monotonically in the length of the trip. The Monte-Carlo method uses a stochastic method to order trips by their probabilities, with more likely trips contributing more to (5). However, none of these approaches order the trips optimally, and hence their accuracy relies not on the theoretical convergence of the mathematical method, but on the computational convergence of the algorithm that implements it.

To assess the computational convergence of the algorithms, Green’s function solutions were constructed on a number of branching geometries shown in Fig. 4. In addition to a binary tree with the topology in Fig. 4A, the algorithms were also applied to four real neuronal reconstructions obtained from the NeuroMorpho Database [27] in .swc format and shown in Figs. 4B–E. These files use a sequence of nodes with precise radii and three-dimensional locations to describe the location of the soma and the paths taken by the axon and each dendrite. A dendrite’s path can be described using as many nodes as necessary to accurately reflect the spatial jitter and variation in radius of its path. Because radii are described at nodes, edges between two nodes of different radius taper. The sum-over-trips formalism requires constant diameter along edges, but allows discontinuous jumps in the diameters at nodes. Hence, edge diameter was defined as the average of the diameters of adjacent nodes. This allows full dendritic branches to be represented as a sequence of uniform cylinders of arbitrary length and with abrupt changes in diameters at nodes.
Fig. 4
Fig. 4

Neuronal structures used in construction of the Green’s function. A: a binary tree, B: a rabbit amacrine cell [28], C: a rat pyramidal cell [29], D: a rat Purkinje cell [30], and E: a blowfly tangential cell [31]

We used the following normalised L 1 error as a measure of convergence:
ε = 1 V N 0 T | G i j ( x , y , t ) V ( x , y , t ) | d t ,

where T is the final simulation time, V ( x , y , t ) is NEURON’s numerical solution to very high accuracy and V N = 0 T V ( x , y , t ) d t is the integral of the accurate NEURON solution. This convergence measure is therefore relative to the amplitude of the “real” solution, and thus errors ε are comparable between different neuronal types.

Figure 5 shows the convergence of the four-classes and of the length-priority methods as a function of the number of trips on five geometries from Fig. 4. Three sets of parameters given in Table 1 were considered for the binary tree, and the relative errors ε for each case are demonstrated in Figs. 5A–C. These plots illustrate fairly uniform convergence, in which both methods offer similar accuracies and rates of convergence. Of the two trees with biophysically realistic parameters, the binary tree with the longer branches (parameter set C) converges faster, as is expected on structures with longer trips in each Class. This is reflected in Table 2, which shows the number of trips required on the binary tree to remain under a given error threshold for different parameter sets. Moreover, a binary tree with non-dimensionalised parameters (parameter set A) requires noticeably many more trips for desired accuracy in comparison to the same tree with biophysically realistic parameters.
Fig. 5
Fig. 5

Convergence of the four-classes and length-priority methods for a number of dendritic morphologies. The relative error ε of the approximation of G i j ( x , y , t ) is shown as a function of the number of trips in the sum-over-trips framework for injection at y and measurement at x on the dendritic trees in Fig. 4. Membrane parameters for real dendritic morphologies: C = 1  μF cm 2 , R = 3 , 000 Ω  cm 2 and R a = 100 Ω  cm . Note that the four-classes method always begins with four trips, and each step in the algorithm adds a further trip of each class

Table 1

Parameter sets of the binary tree in Fig. 4A


Parameter set A

Parameter set B

Parameter set C

Branch length L


50 μm

100 μm

Branch diameter a


1 μm

1 μm

Diffusion coefficient D


2.5 × 10 4  μm 2  ms 1

2.5 × 10 4  μm 2  ms 1

Membrane time constant τ


3.3 ms

3.3 ms

Membrane capacitance C


1  μF cm 2

1  μF cm 2

Table 2

Length-priority method on a binary tree: number of trips required for a given accuracy

Binary tree

Relative error threshold ε





Parameter set A




>5 × 107

Parameter set B




>5 × 107

Parameter set C





Figures 5D–G show ε for the structures in Figs. 4B–E respectively. They demonstrate that convergence is non-trivial on complex branching structures. Figure 5D shows that the length-priority method makes consistently less error on the amacrine cell geometry, in contrast to the convergence of the Purkinje cell, shown in Fig. 5E, where the four-classes method generates less error for all numbers of trips. Both of these show strongly irregular convergence and high-amplitude oscillation in the errors ε in the amacrine cell. For both methods, the Purkinje cell shows a plateau in error for Green’s functions with few trips, indicating that either these trips are of small magnitude or that their voltage traces alternate between undershooting or overshooting the correct solution between subsequent trips. This indicates that neither the length-priority or the four-classes methods are good heuristics for ordering terms in the Green’s function. This is further hinted at by the oscillating property of the error, which implies that there are regions where trips that increase the error are more frequent than trips that reduce it.

The pyramidal cell’s convergence shows very discontinuous behaviour (Fig. 5F), particularly in the length-priority method. The large jump in error when approximately 350 trips are included in the Green’s function was found to be caused by the first and shortest Class 2 trip included thus far, with all prior trips belonging to Class 1. This behaviour is likely to arise if there exist very short branches along the shortest and most direct x y trip, and thus many Class 1 trips are generated first, being shorter than the first Class 2 trip. Whilst one of the motivating reasons for considering a length-priority approach was to generate trips fully by length order, this heuristic makes no attempt to include the coefficient A trip in its ordering. This is an example of a pathologically large change in the coefficients value for a Class 2 trip which contributes a very significant amount to the Green’s function. The four-classes approach, which enforces generation of trips of all four classes at every added excursion, does not show such a drastic drop in error. However, the error plot is still very discontinuous, and this may be a characteristic of situations as we have just described, where points x and y are placed on branches having a very different length to those on the most direct x y trip, or when these points are placed very close to a node. Whether injection and measurement points are located on branches that are significantly longer or shorter than those along the shortest x y trip, both the four-classes and the length-priority methods will generate trips in an “unnatural” order, subsampling the trips where current will spread the most, but oversampling in areas of the tree with very short branches. This pathological feature may not be inherently present in the real neuronal morphology, but may have been created during digital reconstruction from slice image data if, for example, a change of radius were found along the branch. Therefore, this pathology may not be representative of the neuronal geometry, but becomes a function of the reconstruction.

The tangential cell’s convergence, shown in Fig. 5G, shows almost identical errors for both the four-classes and the length-priority methods, indicating that trips are generated in a similar order regardless of method. Contrary to the example with the pyramidal cell, this behaviour is likely to occur when x and y are placed on branches that are significantly shorter than those that arise on the shortest x y path, such that the length-priority method returns trips of Class 1, 2, 3 and 4 in sequential order, as these increases in length are shorter than adding an excursion along the direct x y trip.

Our results clearly indicate that the convergence of the realisation of the sum-over-trips framework by either the four-classes or the length-priority method strongly depends on a dendritic geometry. For real morphologies, the number of trips required quickly becomes very large to the point where guaranteeing convergence to within some small error threshold may become computationally expensive.

The convergence of the Monte-Carlo method is shown in Fig. 6 for the binary tree in Fig. 4A with parameter set A and for a larger binary tree of depth 16 with the same parameters. Boundary effects can be seen on the smaller tree, where the convergence rate is slightly faster than that of a typical Monte-Carlo integration observed here for a larger tree. It is worth noting that the x-axis on this plot shows the number of random walks generated; however, due to the number of sub-trips extracted from each random walk, the number of terms contributing to the Green’s function can potentially be significantly different. The graphs show that the Monte-Carlo method is very slow to converge, although the method is much more predictable in its convergence despite the noise. As expected, therefore, the Monte-Carlo method generates trips that are more “naturally” ordered, and hence convergence is much more monotonic. Despite this improved ordering of terms in the series solution, the Monte-Carlo approach remains computationally intensive and very slow to converge with increased number of trips.
Fig. 6
Fig. 6

Convergence of the Monte-Carlo method for a binary tree. The relative error ε is shown as a function of the number of random walk realisations generated, k. A: error generated on the binary tree in Fig. 4A with parameter set A. The red line shows a fit for ε k 0.54 . B: the convergence error on a binary tree of depth 16 (65,536 nodes). The red line demonstrates a fit for ε k 0.5 , the typical rate of convergence of a Monte-Carlo integration

Finally, the convergence of the matrix method on a binary tree is shown in Fig. 7. This algorithm converges extremely quickly to within very small error tolerances as a function of k max , the maximum number of edges covered by trips generated. The values of the product of A trip coefficients obtained by this method remain O ( 1 ) for all k max which agrees with the proof in [25]. Because the algorithm is based on simple matrix-vector multiplication, where the matrix is | E | × | E | in size, the computation of the Green’s function for small trees such as the binary trees used here to within ε = 10 15 only takes a fraction of a second. On more complex trees, such as Purkinje cells, this becomes more expensive, although computing G i j ( x , y , t ) for the whole tree remains computationally preferable to the use of brute-force simulators. Using the reciprocal rule (9), this is possible in | E | applications of the algorithm. This compares favourably with the length-priority and the four-classes methods, which require | E | ( | E | + 1 ) / 2 applications of the algorithm, and with NEURON, which would require | E | 2 simulations, and this would only provide solutions for a single point y on each edge. In addition, the sparseness of the matrix Q means that coefficient calculation up to k max only takes O ( | E | k max ) time, and so the method scales linearly with the number of branches on the tree.
Fig. 7
Fig. 7

Convergence of the matrix method. The relative error ε is shown as a function of the maximal number of edges travelled in the trips, k max , for a binary tree in Fig. 4A

4.1 Structural-Electrotonic Properties

The Green’s function G i j ( x , y , t ) constructed for a given dendritic geometry provides a measure of the transfer impedance between the input location y on branch j and the point of measurement x on branch i. Assessing whether the neuronal geometry significantly impacts this input-output relation is a step towards answering questions regarding the structure-function relationship behind the enormous natural variation in dendritic morphologies. Using the measures introduced by Zador et al. [32], the propagation delay and the log-attenuation, we analyse the transfer of the response signal in four reconstructed cells in Fig. 4. For a pair of points ( x , y ) along the tree, we reintroduce the propagation delay P x y as a measure of the impact of the tree’s electrotonic structure on the timing of signals, defined as
P x y = t ˆ x t ˆ y .
Here, t ˆ x and t ˆ y are the centroids of the two corresponding voltage transients G x ( t ) = G i j ( x , y , t ) and G y ( t ) = G j j ( y , y , t ) respectively:
t ˆ x = 0 t G x ( t ) d t 0 G x ( t ) d t and t ˆ y = 0 t G y ( t ) d t 0 G y ( t ) d t .
This delay measure admits an additive property such that P x y = P x z + P z y for a point z between x and y. The log-attenuation of the response signal between a pair of points ( x , y ) is computed as L x y = log A x y > 0 , where
A x y = 0 G y ( t ) d t 0 G x ( t ) d t 1 .

It acts as a measure of the amount a transient signal’s amplitude diminishes as it travels between two points. L x y is also additive for a point z between x and y, that is, L x y = L x z + L z y .

Figure 8 demonstrates the propagation delay and the log-attenuation as a function of distance y away from x for the reconstructed dendritic morphologies in Figs. 4B–E. The point x was placed near the soma as shown in Fig. 4 and the position of y was moved away from x to the distal dendrites along a single path. As expected with an additive property, both the delay and the log-attenuation are linear in the distance between y and x. The curves in Fig. 8 show a noisy linear trend, which could be smoothed to better demonstrate this linearity by sampling the data from multiple points located along different branches, but at the same fixed distance away from x, in the manner of an expanding sphere of radius y, with origin at x. To compare how the response signal is transferred in four neuronal types, we plot the rate of change of the delay and log-attenuation for individual cells in Fig. 9, computed by a linear regression and imposing that the line passes through the origin. It succinctly illustrates that the input signal will spread differently in these four cells, with the tangential cell having a similar rate of delay with the pyramidal cell and a similar rate of log-attenuation with the amacrine cell. The signal in the Purkinje cell is shown to be attenuated most, whereas the pyramidal cell transfers it very effectively. Similar conclusions, but about the propagation of the dendritic action potential, were made by Vetter et al. [30]. The activation of voltage-gated channels is expected to be less robust in the case of strong attenuation of the passive spread of voltage which might explain the results in [30].
Fig. 8
Fig. 8

Propagation delay and log-attenuation for reconstructed geometries

Fig. 9
Fig. 9

Transfer properties of the response signal for reconstructed geometries

5 Discussion

In this paper, we introduced a number of efficient algorithms for the computational realisation of the sum-over-trips framework and assessed their convergence. We started with some modifications of the four-classes algorithm of Cao and Abbott [21] to avoid constructing duplicate trips. An unambiguous context-free grammar was derived, which is able to generate all trips uniquely and in monotonic order of length. We then developed the length-priority method, in which trips are constructed purely in length order rather than in classes. Both methods were found to demonstrate very nonuniform convergence which was highly-dependent on the dendritic morphology, as well as the biophysical properties of the cell membrane. Oscillations of the convergence error make it difficult to predict the number of trips required for constructing the Green’s function on a particular geometry. Dendritic structures with longer branches of uniform diameters will converge faster, that is, for a smaller number of trips in the series solution. Instead of sampling the trips in some well-defined order, we also derived a stochastic method of sampling the trips based on a Monte-Carlo approach. Finally, we proposed an extremely efficient matrix method which computes the trip coefficients, A trip , for trees where all branches are integer-multiples in length to some base length, Δx.

Although we considered dendrites to be passive in this study, the proposed algorithms can be easily generalised to support quasi-active (resonant) dendrites with a calculation of the Green’s function in the Laplace domain [24]. Moreover, it is straightforward to include an isopotential soma in the Laplace-domain series solution. A soma can be considered as a special node with the factors p k ( ω ) on the branches connected to the soma defined as p k ( ω ) = r k 1 ( ω + τ 1 ) D k 1 / ( C ˆ ω + R ˆ 1 + m r m 1 ( ω + τ 1 ) D m 1 ) , where C ˆ and R ˆ are the capacitance and the resistance of the somatic membrane and ω is the Laplace transform’s frequency variable. Similar factors can also be found for when the leaky-end boundary condition, referred to as natural termination by Tuckwell [33], is imposed at the terminals. A knowledge of the Green’s function for a given dendritic structure allows one to efficiently find the sub-threshold voltage response along the entire tree for any number of various inputs, either analytically or via a computation of the convolution integral. This obviates the need for the brute-force numerical simulations of an underlining set of PDEs. Such simulations may be computationally expensive, particularly since they have to be re-initiated each time a new stimulus is introduced. In the case of supra-threshold inputs, which can activate voltage-gated channels known to be present in dendrites of many neurons, the Spike-Diffuse-Spike (SDS) type model [34, 35] can be utilised for analysing the propagations of dendritic action potentials. Although the voltage-gated channels in the SDS framework are modelled by piecewise linear instead of nonlinear dynamics, it has been shown that the speed of a wave propagation in the SDS model is in excellent agreement with a more biophysically realistic nonlinear model [36]. However, an analytically tractable SDS model combined with a fast algorithm for constructing the Green’s function on real geometries provides a computationally efficient framework for studying wave scattering in dendrites.

Although networks of spatially-extended neural cells can be numerically simulated, there are currently few mathematical studies of such networks. A natural extension might be to consider a network of branched neurons coupled by gap-junctions. The sum-over-trips formalism can then be generalised to support a presence of new boundary conditions. Recent results of Harris and Timofeeva [37] can be applied to the case of tip-to-tip coupling of the dendritic branches. The proposed algorithms can then be modified by including additional sum-over-trips rules. It is worth mentioning that the computational schemes presented in this paper are able to handle cyclic graphs, which may form as a result of gap-junction coupling across several neurons. While the matrix method is expected to be the most efficient for a network of symmetric or regular structures, realistic reconstructions of discretised trees remain within computational reach. For example, given a sparse random matrix, of correct density and of size 20 , 000 , equivalent to a dendritic tree with 10 , 000 edges, the calculation of G i j ( x , y , t ) for all j up to k max = 10 5 only takes fifteen seconds on a desktop computer. For comparison, the Purkinje cell reconstruction in Fig. 4D has just under 5 , 000 branches. For the case of very large, complex irregular structures it might be possible to employ a recently developed technique of reducing the complexity of large dendrites [38] before applying the sum-over-trips methodology.

Appendix:  Mathematical Convergence of the Sum-over-trips Series Solution

Here, we consider an identical diffusion coefficient D for all branches, although it is possible to generalise this proof to support different diffusion coefficients. Fixing t throughout, we let
G i j ( x , y ) = trips A trip G ( L trip ) = k = 0 p a t h s w i t h k nodes A trip G ( L trip ) ,
G ( L trip ) = 1 4 π t D e L trip 2 / ( 4 D t ) e t / τ .
A trip
is a product of k factors 2 p ( 0 , 2 ) and 2 p 1 ( 1 , 1 ) , where k is the number of nodes visited by the trip, for any branch diameters. Then, for a trip touching k nodes,
| A trip | 2 k .
There exists a constant B > 0 such that every trip touching k nodes satisfies
L trip B k .

This makes B the coefficient of the lower bound on trip length in terms of the number of nodes in a trip. Intuitively, Bk equals the minimum distance between any two nodes where, for this purpose, we count x and y as nodes.

Let F k be the number of trips with k nodes. Since each node has degree d 3 , then
F k 3 k .
We introduce
Γ k = t r i p s w i t h k nodes A trip G ( L trip ) .
| Γ k | = | t r i p s w i t h k nodes A trip G ( L trip ) | t r i p s w i t h k nodes | A trip G ( L trip ) | = t r i p s w i t h k nodes | A trip | | G ( L trip ) | .
For simplicity, we rewrite the Green’s function (20) as G ( L trip ) = C e E L trip 2 , where
C = e t / τ 4 π D t and E = 1 4 D t .
Then using (21)–(24) we get
| Γ k | t r i p s w i t h k nodes 2 k C e E L trip 2 t r i p s w i t h k nodes 2 k C e E B 2 k 2 F k 2 k C e E B 2 k 2 3 k 2 k C e E B 2 k 2 = 6 k C e E B 2 k 2 = C e k ( E B 2 k ln ( 6 ) ) .
We define N = ln ( 6 ) / ( E B 2 ) such that E B 2 k ln ( 6 ) > 0 for k > N . Then
| k = 0 Γ k | k = 0 | Γ k | k = 0 C e k ( E B 2 k ln ( 6 ) ) = k = 0 N C e k ( E B 2 k ln ( 6 ) ) + k = N + 1 C e k ( E B 2 k ln ( 6 ) ) .
The first sum in (26) is a finite sum of finite terms, and is hence finite. We will now show that the second sum is also finite using d’Alembert’s ratio criterion for convergent series. The ratio ρ k of the consecutive terms in the series, k and k + 1 , is
ρ k = | C e ( k + 1 ) ( E B 2 ( k + 1 ) ln ( 6 ) ) C e k ( E B 2 k ln ( 6 ) ) | = e ( E B 2 ( 2 k + 1 ) ln ( 6 ) ) .
Letting k , we obtain
ρ = lim k ρ k = lim k e ( E B 2 ( 2 k + 1 ) ln ( 6 ) ) = 0 .

With ρ < 1 , the second sum in (26) converges absolutely for all constants B , C , E > 0 . Therefore, the series in (26) is absolutely convergent for sufficiently-high k.

If we define
G i j M ( x , y , t ) = k = 0 M t r i p s w i t h k nodes A trip G ( L trip , t ) ,
| G i j G i j M | k = M + 1 C e k ( E B 2 k ln ( 6 ) )

and the path integral converges faster than e k in the worst case, with the number of nodes k visited by the trips.



QC and SPCB would like to acknowledge the Complexity Science Doctoral Training Centre at the University of Warwick along with the funding provided by the EPSRC (EP/E501311). SRD acknowledges funding from the EPSRC and the MRC through the Doctoral Training Centre in Neuroinformatics at the University of Edinburgh. YT would like to acknowledge the support provided by the BBSRC (BB/H011900) and the RCUK.

Authors’ Affiliations

Centre for Complexity Science, University of Warwick, Coventry, CV4 7AL, UK
Department of Computer Science, University of Warwick, Coventry, CV4 7AL, UK
Doctoral Training Centre in Neuroinformatics and Computational Neuroscience, University of Edinburgh, Edinburgh, EH8 9AB, UK
Mathematics Institute, University of Warwick, Coventry, CV4 7AL, UK


  1. Cajal R: Histology of the Nervous System of Man and Vertebrates. Oxford University Press, New York; 1995. (trans. N Swanson and LW Swanson, first published 1899) (trans. N Swanson and LW Swanson, first published 1899)Google Scholar
  2. Ulfhake B, Kellerth JO: A quantitative light microscopic study of the dendrites of cat spinal alpha-motoneurons after intracellular staining with horseradish peroxidase. J Comp Neurol 1981, 202: 571–583. 10.1002/cne.902020409View ArticleGoogle Scholar
  3. Rall W: Core conductor theory and cable properties of neurons. Handbook of Physiology—The Nervous System (I) 1977, 39–97.Google Scholar
  4. Segev I, Rinzel J, Shepherd GM (Eds): The Theoretical Foundation of Dendritic Function: Selected Papers of Wilfrid Rall with Commentaries. MIT Press, Cambridge; 1995.Google Scholar
  5. Spruston N, Stuart G, Häusser M: Dendritic integration. In Dendrites. Edited by: Spruston N, Stuart G, Häusser M. Oxford University Press, New York; 2008.Google Scholar
  6. van Ooyen A, Duijnhouwer J, Remme MWH, van Pelt J: The effect of dendritic topology on firing patterns in model neurons. Netw Comput Neural Syst 2002,13(3):311–325. 10.1088/0954-898X/13/3/304View ArticleGoogle Scholar
  7. Spruston N, Stuart G, Häusser M (Eds): Dendrites. Oxford University Press, New York; 2008.Google Scholar
  8. Johnston D, Narayanan R: Active dendrites: colorful wings of the mysterious butterflies. Trends Neurosci 2008,31(6):309–316. 10.1016/j.tins.2008.03.004View ArticleGoogle Scholar
  9. London M, Häusser M: Dendritic computation. Annu Rev Neurosci 2005, 28: 503–532. 10.1146/annurev.neuro.28.061604.135703View ArticleGoogle Scholar
  10. Rall W: Theoretical significance of dendritic trees for neuronal input-output relations. In Neural Theory and Modeling. Edited by: Reiss RF. Stanford University Press, Stanford; 1964:73–97.Google Scholar
  11. Segev I, Fleshmann IJ, Burke RE: Compartmental models of complex neurons. In Methods in Neuronal Modeling. MIT Press, Cambridge; 1989.Google Scholar
  12. Rall W: Theory of physiological properties of dendrites. Ann NY Acad Sci 1962,96(2):1071–1092.Google Scholar
  13. Koch C, Poggio T: A simple algorithm for solving the cable equation in dendritic trees of arbitrary geometry. J Neurosci Methods 1985,12(4):303–315. 10.1016/0165-0270(85)90015-9View ArticleGoogle Scholar
  14. Butz EG, Cowan JD: Transient potentials in dendritic systems of arbitrary geometry. Biophys J 1974,14(9):661–689. 10.1016/S0006-3495(74)85943-6View ArticleGoogle Scholar
  15. Whitehead RR, Rosenberg JR: On trees as equivalent cables. Proc R Soc Lond B, Biol Sci 1993,252(1334):103–108. 10.1098/rspb.1993.0052View ArticleGoogle Scholar
  16. Lindsay K: Analytical and numerical construction of equivalent cables. Math Biosci 2003,184(2):137–164. 10.1016/S0025-5564(03)00059-2MathSciNetView ArticleMATHGoogle Scholar
  17. Evans JD, Kember GC, Major G: Techniques for obtaining analytical solutions to the multicylinder somatic shunt cable model for passive neurones. Biophys J 1992, 63: 350–365. 10.1016/S0006-3495(92)81631-4View ArticleGoogle Scholar
  18. Major G, Evans JD, Jack JJB: Solutions for transients in arbitrary branching cables: I. Voltage recording with a somatic shunt. Biophys J 1993, 65: 423–449. 10.1016/S0006-3495(93)81037-3View ArticleGoogle Scholar
  19. Evans JD, Major G: Techniques for the application of the analytical solution to the multicylinder somatic shunt cable model for passive neurones. Math Biosci 1995, 125: 1–50. 10.1016/0025-5564(94)00018-UView ArticleMATHGoogle Scholar
  20. Abbott L, Farhi E, Gutmann S: The path integral for dendritic trees. Biol Cybern 1991, 66: 49–60. 10.1007/BF00196452View ArticleMATHGoogle Scholar
  21. Cao BJ, Abbott LF: A new computational method for cable theory problems. Biophys J 1993,64(2):303–313. 10.1016/S0006-3495(93)81370-5View ArticleGoogle Scholar
  22. Rapp M, Segev I, Yarom Y: Physiology, morphology and detailed passive models of guinea-pig cerebellar Purkinje cells. J Physiol 1994, 474: 101–118.View ArticleGoogle Scholar
  23. Eppstein D: Finding the k shortest paths. SIAM J Comput 1999,28(2):652–673.MathSciNetView ArticleGoogle Scholar
  24. Coombes S, Timofeeva Y, Svensson CM, Lord GJ, Josić K, Cox SJ, Colbert CM: Branching dendrites with resonant membrane: a “sum-over-trips” approach. Biol Cybern 2007,97(2):137–149. 10.1007/s00422-007-0161-5View ArticleMATHGoogle Scholar
  25. Abbott LF: Simple diagrammatic rules for solving dendritic cable problems. Physica A 1992,185(1–4):343–356. 10.1016/0378-4371(92)90474-5MathSciNetView ArticleGoogle Scholar
  26. Carnevale N, Hines M: The NEURON Book. Cambridge University Press, Cambridge; 2006.View ArticleGoogle Scholar
  27. Ascoli GA, Donohue DE, Halavi M: NeuroMorpho.Org: a central resource for neuronal morphologies. J Neurosci 2007,27(35):9247–9251. 10.1523/JNEUROSCI.2055-07.2007View ArticleGoogle Scholar
  28. Bloomfield A, Miller F: A functional organization of ON and OFF pathways in the rabbit retina. J Neurosci 1986, 6: 1–13.Google Scholar
  29. Radman T, Ramos RL, Brumberg JC, Bikson M: Role of cortical cell type and morphology in sub- and suprathreshold uniform electric field stimulation. Brain Stimul 2009,2(4):215–228. 10.1016/j.brs.2009.03.007View ArticleGoogle Scholar
  30. Vetter P, Roth A, Häusser M: Propagation of action potentials in dendrites depends on dendritic morphology. J Neurophysiol 2001, 85: 926–937.Google Scholar
  31. Cuntz H, Forstner F, Haag J, Borst A: The morphological identity of insect dendrites. PLoS Comput Biol 2008., 4: Article ID e1000251 Article ID e1000251Google Scholar
  32. Zador AM, Agmon-Snir H, Segev I: The morphoelectrotonic transform: a graphical approach to dendritic function. J Neurosci 1995,15(3):1669–1682.Google Scholar
  33. Tuckwell HC: Introduction to Theoretical Neurobiology: Volume 1. Linear Cable Theory and Dendritic Structure. Cambridge University Press, Cambridge; 1988.View ArticleMATHGoogle Scholar
  34. Coombes S, Bressloff PC: Saltatory waves in the spike-diffuse-spike model of active dendritic spines. Phys Rev Lett 2003., 91: Article ID 028102 Article ID 028102Google Scholar
  35. Timofeeva Y: Travelling waves in a model of quasi-active dendrites with active spines. Physica D, Nonlinear Phenom 2010,239(9):494–503. 10.1016/j.physd.2010.01.004MathSciNetView ArticleMATHGoogle Scholar
  36. Timofeeva Y, Lord GJ, Coombes S: Spatio-temporal filtering properties of a dendritic cable with active spines: a modeling study in the spike-diffuse-spike framework. J Comput Neurosci 2006,21(3):293–306. 10.1007/s10827-006-8776-4MathSciNetView ArticleGoogle Scholar
  37. Harris J, Timofeeva Y: Intercellular calcium waves in the fire-diffuse-fire framework: Green’s function for gap-junctional coupling. Phys Rev E 2010., 82: Article ID 051910 Article ID 051910Google Scholar
  38. Yan B, Li P: Reduced order modeling of passive and quasi-active dendrites for nervous system simulation. J Comput Neurosci 2011, 31: 247–271.MathSciNetView ArticleGoogle Scholar