<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Searle%27s_bar_method</id>
	<title>Searle&#039;s bar method - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Searle%27s_bar_method"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Searle%27s_bar_method&amp;action=history"/>
	<updated>2026-08-08T13:50:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Searle%27s_bar_method&amp;diff=25119&amp;oldid=prev</id>
		<title>24.222.79.230: _\mathrm{w}</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Searle%27s_bar_method&amp;diff=25119&amp;oldid=prev"/>
		<updated>2012-10-11T15:02:45Z</updated>

		<summary type="html">&lt;p&gt;_\mathrm{w}&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[mathematics]] the &amp;#039;&amp;#039;&amp;#039;Montgomery curve&amp;#039;&amp;#039;&amp;#039; is a form of [[elliptic curve]], different from the usual [[elliptic curve|Weierstrass form]], introduced by [[Peter Montgomery (mathematician)|Peter L. Montgomery]] in 1987.&amp;lt;ref&amp;gt;{{cite journal&lt;br /&gt;
 | author = [[Peter Montgomery (mathematician)|Peter L. Montgomery]]&lt;br /&gt;
 | year = 1987&lt;br /&gt;
 | title = Speeding the Pollard and Elliptic Curve Methods of Factorization&lt;br /&gt;
 | journal = Mathematics of Computation |volume=48 |issue=177 |pages=243–264&lt;br /&gt;
 | jstor = 2007888&lt;br /&gt;
 }}&amp;lt;/ref&amp;gt; It is used for certain computations, and in particular in different [[Elliptic curve cryptography|cryptography]] applications.&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
[[File:Montgomery curve1.svg|300px|right|thumb|A Montgomery curve of equation &amp;lt;math&amp;gt;3y^2=x^3+7x^2+x&amp;lt;/math&amp;gt;]]&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;Montgomery curve&amp;#039;&amp;#039;&amp;#039; over a [[field (mathematics)|field]] &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; is defined by the [[equation]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;:  &amp;lt;math&amp;gt;By^2 = x^3 + Ax^2 + x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for certain &amp;lt;math&amp;gt;A,B \in K&amp;lt;/math&amp;gt; and with &amp;lt;math&amp;gt;B(A^2-4)\neq 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Generally this [[curve]] is considered over a [[finite field]] &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; (for example over a finite field of q [[element (mathematics)|element]]s, &amp;lt;math&amp;gt;K=\mathbb{F}_q&amp;lt;/math&amp;gt;) with [[characteristic (algebra)|characteristic]] different from 2 and with &amp;lt;math&amp;gt;A\in K\backslash\{-2,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B \in K\backslash\{0\} &amp;lt;/math&amp;gt;; but they are also considered over the [[rational number|rationals]] with the same restrictions for A and B.&lt;br /&gt;
&lt;br /&gt;
==Montgomery arithmetic==&lt;br /&gt;
It is possible to do some &amp;quot;operations&amp;quot; between the [[point (geometry)|points]] of an elliptic curve:  &amp;quot;adding&amp;quot; two points &amp;lt;math&amp;gt;P, Q&amp;lt;/math&amp;gt; consists on finding a third one &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;R=P+Q&amp;lt;/math&amp;gt;; &amp;quot;doubling&amp;quot; a point consists on computing &amp;lt;math&amp;gt;[2]P=P+P&amp;lt;/math&amp;gt; (For more information about operations see [[Elliptic curve#The group law|The group law]]) and below.&lt;br /&gt;
&lt;br /&gt;
A point &amp;lt;math&amp;gt;P=(x,y)&amp;lt;/math&amp;gt; on the elliptic curve in the Montgomery form &amp;lt;math&amp;gt;By^2 = x^3 + Ax^2 + x&amp;lt;/math&amp;gt; can be represented in Montgomery coordinates &amp;lt;math&amp;gt;P=(X:Z)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;P=(X:Z)&amp;lt;/math&amp;gt; are [[projective space|projective coordinates]] and &amp;lt;math&amp;gt;x=X/Z&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;Z\ne 0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Notice that this kind of representation for a point loses information: indeed, in this case, there is no distinction between the [[affine space|affine points]] &amp;lt;math&amp;gt;(x,y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(x,-y)&amp;lt;/math&amp;gt; because they are both given by the point &amp;lt;math&amp;gt;(X:Z)&amp;lt;/math&amp;gt;. However, with this representation it is possible to obtain multiples of points, that is, given &amp;lt;math&amp;gt;P=(X:Z)&amp;lt;/math&amp;gt;, to compute &amp;lt;math&amp;gt;[n]P=(X_n:Z_n)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Now, considering the two points &amp;lt;math&amp;gt;P_n=[n]P=(X_n:Z_n)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;P_m=[m]P(X_m:Z_m)&amp;lt;/math&amp;gt;: their [[summation|sum]] is given by the point &amp;lt;math&amp;gt;P_{m+n}=P_m+P_n = (X_{m+n}:Z_{m+n})&amp;lt;/math&amp;gt; whose [[coordinate system|coordinates]] are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
X_{m+n} = Z_{m-n}((X_m-Z_m)(X_n+Z_n)+(X_m+Z_m)(X_n-Z_n))^2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Z_{m+n} = X_{m-n}((X_m-Z_m)(X_n+Z_n)-(X_m+Z_m)(X_n-Z_n))^2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;m=n&amp;lt;/math&amp;gt;, then the operation becomes a &amp;quot;doubling&amp;quot;; the coordinates of &amp;lt;math&amp;gt;[2]P_n=P_n+P_n=P_{2n}=(X_{2n}:Z_{2n})&amp;lt;/math&amp;gt; are given by the following equations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
4X_nZ_n = (X_n+Z_n)^2 - (X_n-Z_n)^2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
X_{2n} = (X_n+Z_n)^2(X_n-Z_n)^2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
Z_{2n} = (4X_nZ_n)((X_n-Z_n)^2+((A+2)/4)(4X_nZ_n))&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first operation considered above ([[elliptic curve#The group law|addition]]) has a time-cost of 3&amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039;+2&amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039;, where &amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039; denotes the multiplication between two general [[element (mathematics)|elements]] of the field on which the elliptic curve is defined, while &amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039; denotes [[square (algebra)|squaring]] of a general element of the field.&lt;br /&gt;
&lt;br /&gt;
The second operation (doubling) has a time-cost of 2&amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039;+2&amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039;+1&amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039;, where &amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039; denotes the multiplication of a general element by a [[constant (mathematics)|constant]]; notice that the constant is &amp;lt;math&amp;gt;(A+2)/4&amp;lt;/math&amp;gt;, so &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; can be chosen in order to have a small &amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Algorithm and example==&lt;br /&gt;
The following algorithm represents a doubling of a point &amp;lt;math&amp;gt;P_1=(X_1:Z_1)&amp;lt;/math&amp;gt; on an elliptic curve in the Montgomery form.&lt;br /&gt;
&lt;br /&gt;
It is assumed that &amp;lt;math&amp;gt;Z_1=1&amp;lt;/math&amp;gt;. The cost of this implementation is 1M + 2S + 1*A + 3add + 1*4. Here M denotes the multiplications required, S indicates the squarings, and a refers to the multiplication by A.&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;XX_1 = X_1^2 \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;X_3 = (XX_1-1)^2 \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;Z_3 = 4X_1(XX_1+aX_1+1) \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
Let &amp;lt;math&amp;gt;P_1=(2,\sqrt{3})&amp;lt;/math&amp;gt; be a point on the curve &amp;lt;math&amp;gt;2y^2 = x^3 -x^2 + x&amp;lt;/math&amp;gt;.&lt;br /&gt;
In coordinates &amp;lt;math&amp;gt;(X_1:Z_1)&amp;lt;/math&amp;gt;, with &amp;lt;math&amp;gt;x_1=X_1/Z_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;P_1=(2:1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;XX_1 = X_1^2 = 4 \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;X_3 = (XX_1-1)^2 = 9 \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;Z_3 = 4X_1(XX_1+aX_1+1) = 24 \, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is the point &amp;lt;math&amp;gt;P_3=(X_3:Z_3)=(9:24)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;P_3=2P_1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Addition==&lt;br /&gt;
Given two points &amp;lt;math&amp;gt;P_1=(x_1,y_1)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;P_2=(x_2,y_2)&amp;lt;/math&amp;gt; on the Montgomery curve &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt; in affine coordinates, the point &amp;lt;math&amp;gt;P_3=P_1+P_2&amp;lt;/math&amp;gt; represents, [[geometry|geometrically]] the third point of intersection between &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt; and the line passing through &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;P_2&amp;lt;/math&amp;gt;. It is possible to find the coordinates &amp;lt;math&amp;gt;(x_3,y_3)&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;P_3&amp;lt;/math&amp;gt;, in the following way:&lt;br /&gt;
&lt;br /&gt;
1) consider a generic line &amp;lt;math&amp;gt;~y=lx+m&amp;lt;/math&amp;gt; in the affine plane and let it pass through &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;P_2&amp;lt;/math&amp;gt; (impose the condition), in this way, one obtains &amp;lt;math&amp;gt;l=\frac{y_2-y_1}{x_2-x_1}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m=y_1-(\frac{y_2-y_1}{x_2-x_1})x_1&amp;lt;/math&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
2) intersect the line with the curve &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;, substituting the &amp;lt;math&amp;gt;~y&amp;lt;/math&amp;gt; variable in the curve equation with &amp;lt;math&amp;gt;~y=lx+m&amp;lt;/math&amp;gt;; the following [[equation| equation of third degree]] is obtained:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x^3+(A-Bl^2)x^2+(1-2Blm)x-Bm^2=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
As it has been observed before, this equation has three solutions that correspond to the &amp;lt;math&amp;gt;~x&amp;lt;/math&amp;gt; coordinates of &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;P_2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;P_3&amp;lt;/math&amp;gt;. In particular this equation can be re-written as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;(x-x_1)(x-x_2)(x-x_3)=0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3) Comparing the coefficients of the two identical equations given above, in particular the coefficients of the terms of second degree, one gets:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;-x_1-x_2-x_3=A-Bl^2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So, &amp;lt;math&amp;gt;x_3&amp;lt;/math&amp;gt; can be written in terms of &amp;lt;math&amp;gt;x_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y_1&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;x_2&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;y_2&amp;lt;/math&amp;gt;, as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_3 = B(\frac{y_2-y_1}{x_2-x_1})^2-A-x_1-x_2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
4) To find the &amp;lt;math&amp;gt;~y&amp;lt;/math&amp;gt; coordinate of the point &amp;lt;math&amp;gt;P_3&amp;lt;/math&amp;gt; it is sufficient to substitute the value &amp;lt;math&amp;gt;x_3&amp;lt;/math&amp;gt; in the line &amp;lt;math&amp;gt;~y=lx+m&amp;lt;/math&amp;gt;. Notice that this will not give the point &amp;lt;math&amp;gt;P_3&amp;lt;/math&amp;gt; directly. Indeed, with this method one find the coordinates of the point &amp;lt;math&amp;gt;~R&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;R+P_1+P_2=P_\infty&amp;lt;/math&amp;gt;, but if one needs the resulting point of the sum between &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;P_2&amp;lt;/math&amp;gt;, then it is necessary to observe that: &amp;lt;math&amp;gt;R+P_1+P_2=P_\infty&amp;lt;/math&amp;gt; if and only if &amp;lt;math&amp;gt;-R=P_1+P_2&amp;lt;/math&amp;gt;. So, given the point &amp;lt;math&amp;gt;~R&amp;lt;/math&amp;gt;, it is necessary to find &amp;lt;math&amp;gt;~-R&amp;lt;/math&amp;gt;, but this can be done easily by changing the sign to the &amp;lt;math&amp;gt;~y&amp;lt;/math&amp;gt; coordinate of &amp;lt;math&amp;gt;~R&amp;lt;/math&amp;gt;. In other words, it will be necessary to change the sign of the &amp;lt;math&amp;gt;~y&amp;lt;/math&amp;gt; coordinate obtained by substituting the value &amp;lt;math&amp;gt;x_3&amp;lt;/math&amp;gt; in the equation of the line.&lt;br /&gt;
&lt;br /&gt;
Resuming, the coordinates of the point &amp;lt;math&amp;gt;P_3=(x_3,y_3)&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;P_3=P_1+P_2&amp;lt;/math&amp;gt; are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_3 = \frac{B(y_2-y_1)^2}{(x_2-x_1)^2}-A-x_1-x_2=\frac{B(x_2y_1-x_1y_2)^2}{x_1x_2(x_2-x_1)^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;y_3 = \frac{(2x_1+x_2+A)(y_2-y_1)}{x_2-x_1}-\frac{B(y_2-y_1)^3}{(x_2-x_1)^3}-y_1&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Doubling==&lt;br /&gt;
Given a point &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt; on the Montgomery curve &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;, the point &amp;lt;math&amp;gt;[2]P_1&amp;lt;/math&amp;gt; represents geometrically the third point of intersection between the curve and the line tangent to &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt;; so, to find the coordinates of the point &amp;lt;math&amp;gt;P_3=2P_1&amp;lt;/math&amp;gt; it is sufficient to follow the same method given in the addition formula; however, in this case, the line &amp;#039;&amp;#039;y=lx+m&amp;#039;&amp;#039; has to be tangent to the curve at &amp;lt;math&amp;gt;P_1&amp;lt;/math&amp;gt;, so, if &amp;lt;math&amp;gt;M_{A,B}: f(x,y)=0&amp;lt;/math&amp;gt; with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;f(x,y)=x^3+Ax^2+x-By^2&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
then the value of &amp;#039;&amp;#039;l&amp;#039;&amp;#039;, which represents the [[slope]] of the line, is given by:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; l=-\frac{\frac{\partial f}{\partial x}}{\frac{\partial f}{\partial y }}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
by the [[implicit function theorem]].&lt;br /&gt;
&lt;br /&gt;
So &amp;lt;math&amp;gt;l = \frac{3x_1^2 + 2Ax_1 + 1}{2By_1}&amp;lt;/math&amp;gt; and the coordinates of the point &amp;lt;math&amp;gt;P_3&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;P_3=2P_1&amp;lt;/math&amp;gt; are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x_3 = Bl^2-A-x_1-x_1 = \frac{B(3x_1^2+2Ax_1+1)^2}{(2By_1)^2}-A-x_1-x_1=\frac{(x_1^2-1)^2}{4By_1^2}=\frac{(x_1^2-1)^2}{4x_1(x_1^2+Ax_1+1)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;y_3 = (2x_1+x_1+A)l-Bl^3-y_1 = \frac{(2x_1+x_1+A)(3{x_1}^2+2Ax_1+1)}{2By_1}-\frac{B(3{x_1}^2+2Ax_1+1)^3}{(2By_1)^3}-y_1&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Equivalence with twisted Edwards curves==&lt;br /&gt;
Let &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; be a field with characteristic different from 2.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt; be an elliptic curve in the Montgomery form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;:  &amp;lt;math&amp;gt;Bv^2 = u^3 + Au^2 + u&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with &amp;lt;math&amp;gt;A\in K\backslash\{-2,2\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;B \in K\backslash\{0\}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and let &amp;lt;math&amp;gt;E_{a,d}&amp;lt;/math&amp;gt; be an elliptic curve in the twisted Edwards form:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;E_{a,d}\  :\  ax^2 + y^2 = 1 + dx^2y^2, \,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with &amp;lt;math&amp;gt;a,d\in K\backslash\{0\}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;a\neq d&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The following  theorem shows the [[Birational geometry|birational equivalence]] between Montgomery curves and twisted Edwards curves:&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
 | author = [[Daniel J. Bernstein]], Peter Birkner, Marc Joye, Tanja Lange and Christiane Peters&lt;br /&gt;
 | year = 2008&lt;br /&gt;
 | title = Twisted Edwards Curves&lt;br /&gt;
 | publisher = Springer-Verlag Berlin Heidelberg&lt;br /&gt;
 | url = http://www.springerlink.com/content/m37m171510425501/fulltext.pdf&lt;br /&gt;
 | isbn = 978-3-540-68159-5&lt;br /&gt;
 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Theorem&amp;#039;&amp;#039;&amp;#039; (i) Every twisted Edwards curve is birationally equivalent  to a Montgomery curve over &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt;.&lt;br /&gt;
In  particular, the twisted Edwards curve &amp;lt;math&amp;gt;E_{a,d}&amp;lt;/math&amp;gt; is birationally equivalent to the Montgomery curve &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;A = \frac{2(a+d)}{a-d}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;B = \frac{4}{a-d}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The [[map (mathematics)|map]]:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;\psi\,:\,E_{a,d} \rightarrow M_{A,B}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
(x,y) \mapsto (u,v) = \left(\frac{1+y}{1-y},\frac{1+y}{(1-y)x}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is a birational equivalence from &amp;lt;math&amp;gt;E_{a,d}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;, with inverse:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;\psi^{-1}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;M_{A,B} \rightarrow E_{a,d}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
(u,v) \mapsto (x,y) = \left(\frac{u}{v},\frac{u-1}{u+1}\right),&lt;br /&gt;
a=\frac{A+2}{B}, d=\frac{A-2}{B}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that this equivalence between the two curves is not valid everywhere: indeed the map &amp;lt;math&amp;gt;\psi&amp;lt;/math&amp;gt; is not defined at the points &amp;lt;math&amp;gt;v = 0&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;u + 1 = 0&amp;lt;/math&amp;gt; of the &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Equivalence with Weierstrass curves==&lt;br /&gt;
Any elliptic curve can be written in Weierstrass form.&lt;br /&gt;
&lt;br /&gt;
So, the elliptic curve in the Montogmery form&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt;:  &amp;lt;math&amp;gt;By^2 = x^3 + Ax^2 + x&amp;lt;/math&amp;gt;,&lt;br /&gt;
&lt;br /&gt;
can be transformed in the following way:&lt;br /&gt;
divide each term of the equation for &amp;lt;math&amp;gt;M_{A,B}&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;B^3&amp;lt;/math&amp;gt;, and substitute the variables &amp;#039;&amp;#039;x&amp;#039;&amp;#039; and &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, with &amp;lt;math&amp;gt;u=\frac{x}{B}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;v=\frac{y}{B}&amp;lt;/math&amp;gt; respectively, to get the equation&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;v^2 = u^3 + \frac{A}{B}u^2 + \frac{1}{B^2}u&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To obtain a short Weierstrass form from here, it is sufficient to replace &amp;#039;&amp;#039;u&amp;#039;&amp;#039; with the variable &amp;lt;math&amp;gt;t-\frac{A}{3B}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;v^2 = \left(t-\frac{A}{3B}\right)^3 + \frac{A}{B}\left(t-\frac{A}{3B}\right)^2 + \frac{1}{B^2}\left(t-\frac{A}{3B}\right)&amp;lt;/math&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
finally, this gives the equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;v^2 = t^3 + \left(\frac{3-A^2}{3B^2}\right)t + \left(\frac{2A^3-9A}{27B^3}\right)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Curve25519]]&lt;br /&gt;
* [[Table of costs of operations in elliptic curves]],  information about the running-time required in a specific case&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* {{cite journal&lt;br /&gt;
 | author = [[Peter Montgomery (mathematician)|Peter L. Montgomery]]&lt;br /&gt;
 | year = 1987&lt;br /&gt;
 | title = Speeding the Pollard and Elliptic Curve Methods of Factorization&lt;br /&gt;
 | journal = Mathematics of Computation |volume=48 |issue=177 |pages=243–264&lt;br /&gt;
 | jstor = 2007888&lt;br /&gt;
 }}&lt;br /&gt;
* {{cite book&lt;br /&gt;
 | author = [[Daniel J. Bernstein]], Peter Birkner, Marc Joye, Tanja Lange and Christiane Peters&lt;br /&gt;
 | year = 2008&lt;br /&gt;
 | title = Twisted Edwards Curves&lt;br /&gt;
 | publisher = Springer-Verlag Berlin Heidelberg&lt;br /&gt;
 | url = http://www.springerlink.com/content/m37m171510425501/fulltext.pdf&lt;br /&gt;
 | isbn = 978-3-540-68159-5&lt;br /&gt;
 }}&lt;br /&gt;
* {{cite paper&lt;br /&gt;
 | author = Wouter Castryck, Steven Galbraith, Reza Rezaeian Farashahi |year=2008&lt;br /&gt;
 | title = Efficient Arithmetic on Elliptic Curves using a Mixed Edwards-Montgomery Representation&lt;br /&gt;
 | url = http://wis.kuleuven.be/algebra/castryck/xcoordinate.pdf&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://hyperelliptic.org/EFD/g1p/index.html Genus-1 curves over large-characteristic fields]&lt;br /&gt;
&lt;br /&gt;
[[Category:Elliptic curves]]&lt;br /&gt;
[[Category:Elliptic curve cryptography]]&lt;/div&gt;</summary>
		<author><name>24.222.79.230</name></author>
	</entry>
</feed>