# Find the maximum value to this function

Job Description:

The constant product for a stablepool at Solidex Automated Market maker is:

(xy)*(x^2 + y^2) = k

where x is the reserves of token0 and y is the reserves of token1. This constraint must always be upheld when the user performs an exchange. We are interested in finding the change in x that produces the maximum value dy. In more simpler terms; We want to find the amount to sell, so that we will get the maximum amount out. x is reserves and token in, and y is reserves and token out.

We rewrite to include the change in reserves, we sell amount dx and obtain amount dy.

The constraint must hold:

(x + dx)*(y-dy)*((x + dx)^2 + (y - dy)^2) = k

I believe this can also be written as such:

y * (x+dx)^3 + x*(y - dy)^3 = k

It is negative dy and positive dx because the constraint must be upheld for the pool's inventory. So after an exchange, dy has left the pool, and dx has increased the pool.

Here is the task I expect delivery on:

Find the function that provides the maximum dy with respect to dx, x and y as parameters. I require a formula answer, not an algorithmic approach.

In more simpler terms; Which dx maximizes dy? Use dx, x and y as inputs that gives dy as output

dy=f(dx,x,y)

( 5 reviews ) Nydalen, Norway

Project ID: #35910487

## 17 freelancers are bidding on average \$85 for this job

Softeria

I am an instructor of Mathematics. I have 5 years of teaching mathematics. I teach Trigonometry, Calculus, Geometry, Matrices, Algebra, Quantitative questions, Differential Equations, Logic, Discrete Mathematics, Numer More

\$150 USD in 7 days
(253 Reviews)
7.6
hudex

Hello dear, We are group of professional mathematics tutors expert and can solve your questions within given time in a very reasonable price because we are in top 2% here so just text me so we can help you out with y More

\$30 USD in 1 day
(119 Reviews)
6.1
tauqeer0307

Hi, I am Maths tutor with years of experience in my field. I have understand your requirements and think myself suitable for the job. I have done many projects regarding problems solution in Advance Mathematics and Eng More

\$30 USD in 1 day
(68 Reviews)
5.8
huzaifarizwan995

Hi, I am a professional electrical engineer with having a very strong command of MATLAB and Simulink. I have an experience of over 8 years. I can help you out with this perfectly. Check my portfolio for my samples. Hir More

\$50 USD in 1 day
(23 Reviews)
5.0
alamineee

Hi, Dear Employer, I have read your job post carefully. I can write clean validated Machine Learning code and make a device-supported M. File. I have over seven-plus years of experience at the /Machine Learning (ML) More

\$140 USD in 2 days
(16 Reviews)
5.1
marklai

As a skilled and experienced engineering technical writer, I bid on your project because I have the expertise to deliver superior quality work. I guarantee you constant updates in the project as a way of ensuring the p More

\$90 USD in 1 day
(14 Reviews)
5.1
eduardoherreral4

hi I have read your description carefully. I have rich experiences in ⭐ MATLAB, R, Mathematica, math, Optimization. ⭐ I worked on many similar projects. I can guarantee the quality of the job. Please kindly message me. More

\$50 USD in 2 days
(10 Reviews)
4.4
iquicksolution

Hey there! I'm a professional expert in mathematics having more than 5 years of experience. I've read your description and I can do your task perfectly.

\$30 USD in 1 day
(11 Reviews)
4.2
Galata16

----------------- Hey, I'm interested in your project. Please send me a message so that we can discuss more. ----------------------------

\$50 USD in 3 days
(8 Reviews)
3.8
kazemmojtama

Hello, good time Hope you are doing well I'm expert in MATLAB/Simulink, Python, JavaScript and C++ programming and by strong mathematical and statistical background, have good flexibility for solve your project. I hav More

\$200 USD in 3 days
(6 Reviews)
3.7
sybacdesigner

Hi. How are you? I have just read your proposal and I am sure I can complete the project on time. I am a mathematician who has 15 years of experiences in Numerical Analysis using Matlab/Python/R, .... Please contact m More

\$100 USD in 1 day
(5 Reviews)
3.1
RANDHIR76

Greetings! I am RANDHIR KUMAR faculty of Mathematics for 11th. 12th. I.I.T Jee and also for degree levels having 27 years experience I promise your assignment will complete within given time period with 100%:client More

\$200 USD in 7 days
(7 Reviews)
3.0
papawindy102

Dear I'm interested to discuss more about your project after reading your description. I am Program developer with 7 years of experience. I have many experiences working on similar projects to develop optimization prog More

\$100 USD in 2 days
(0 Reviews)
0.0
AlanMeneses

Dear Client! How are you? Thanks for your job posting I read your job description carefully I am an Math expert I have a lots of experience in this field If you work with me, you will get best good results Please give More

\$50 USD in 1 day
(0 Reviews)
0.0
alich0001

***No problem**** I checked your detail seriously and understand what you want. I have solution to get maximum value to given function. I will start your work right now and you will get perfect result in short time. Le More

\$30 USD in 1 day
(0 Reviews)
0.0