# Translation to alpha synapse equation

**URL:** <https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331>\
**Category:** Support\
**Tags:** synapses, equations\
**Created:** [3 March 2021 18:54 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331 "2021-03-03T18:54:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysj](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@ysj](https://brian.discourse.group/u/ysj)\
**Post date:** [3 March 2021 18:54 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331/1 "2021-03-03T18:54:56Z")

</div>

Hello,

I want to ask basic question how to translate the equation of alpha function.  
When we think alpha function below;  
 ![image](https://global.discourse-cdn.com/free1/uploads/brian/original/1X/908302a4f4c49b821b88940aab73577049dd6337.png) ![image|365x63]

Then differentiate g(t) with respect to t,  
 ![image](https://global.discourse-cdn.com/free1/uploads/brian/original/1X/ffac4e4c20699a941b3b537babbdfc106e777af0.png)

Then, define x = t/tau, resulted dx/dt=1/tau.

However, it looks incorrect since the result doesn’t match the example of Brian2 website.

How can we introduce the equation used in Brian implement??

Thank you very much for your kindness for me in advance!

---

<div class="post-metadata">

**Author:** ![mstimberg](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/mstimberg/32/11_2.png) [@mstimberg](https://brian.discourse.group/u/mstimberg)\
**Post date:** [4 March 2021 08:36 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331/2 "2021-03-04T08:36:17Z")

</div>

Hi. This looks almost correct to me, but in the last step you should rather get  
\frac{dg}{dt} = \frac{1}{\tau}\left( e^\frac{-t}{\tau} - g\right). Then, by setting x = e^\frac{-t}{\tau} you get

\frac{dg}{dt} = \frac{1}{\tau}\left(x - g\right)\\ \frac{dx}{dt} = -\frac{x}{\tau}

which are the equations we give in the [Brian documentation](https://brian2.readthedocs.io/en/stable/user/converting_from_integrated_form.html).

---

<div class="post-metadata">

**Author:** ![ysj](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@ysj](https://brian.discourse.group/u/ysj)\
**Post date:** [4 March 2021 19:20 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331/3 "2021-03-04T19:20:48Z")

</div>

Hi Maecel,

Thank you so much for your answer! That’s exactly what I want to know!

May I ask a related question?  
When we think about biexponential synapse equation, can we do the same strategy? Are there some reference describing the process of biexponential synapse equation?

---

<div class="post-metadata">

**Author:** ![mstimberg](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/mstimberg/32/11_2.png) [@mstimberg](https://brian.discourse.group/u/mstimberg)\
**Post date:** [5 March 2021 09:05 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331/4 "2021-03-05T09:05:26Z")

</div>

Yes, the same approach should also work for biexponential synapses. We don’t have the process detailed anywhere, but the result is at the bottom of the same [documentation page](https://brian2.readthedocs.io/en/stable/user/converting_from_integrated_form.html) I linked earlier.

---

<div class="post-metadata">

**Author:** ![ysj](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@ysj](https://brian.discourse.group/u/ysj)\
**Post date:** [7 March 2021 20:06 UTC](https://brian.discourse.group/t/translation-to-alpha-synapse-equation/331/5 "2021-03-07T20:06:51Z")

</div>

Hi Marcel,

Thank you so much for your teaching and kindness!!
