# Equation for bezier curve [duplicate]

This question already has an answer here:

I have a cubic bezier curve ; whose 1st anchor-point is (a,b) 1st control-point is (c,d) , 2nd control point is (e,f) and 2nd anchor-point is ( g,h );

Now I want an equation in x and y format; so that with the value of x I can calculate the y value of a point on the curve..

How to do this? How the equation will be?

Thanks in advance..

## marked as duplicate by J. M. is a poor mathematician, Davide Giraudo, Amzoti, Paul, Dennis GulkoApr 17 '13 at 12:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

• @J.M. that question have 6 answer ; but no one is accepted , so which one to take? if I take the 1st answer then there is u0, u1, u2, u3; what are those constants? – Swarnendu Paul Apr 17 '13 at 11:27
• To summarize: there is an explicit form, but it is very unlikely that you'll be able to solve for $y$ as a function of $x$. If you can, use Hermite interpolation instead. – J. M. is a poor mathematician Apr 17 '13 at 11:29