I have to find points (say 10 points) in Bezier curve with 2 control points such that they are at equidistant positions in the curve. Currently I am using the following formula which gives me points but they are not equidistant.
t = ………..from (1/10 to 10/10);
q1 = t * t * t * -1 + t * t * 3 + t * -3 + 1;
q2 = t * t * t * 3 + t * t * -6 + t * 3;
q3 = t * t * t * -3 + t * t * 3;
q4 = t * t * t;
coordinates of a point:
x = q1 * startPointxValue + q2 * controlPoint1xValue + q3 * controlPoint2xValue + q4 * endPointxValue;
y = q1 * startPointyValue + q2 * controlPoint1yValue + q3 * controlPoint2yValue + q4 * endPointyValue;
I tried to use this but due my bad understanding, still unable to correct the values :(. Please help me in finding the values.
attaching sample image of required points (here 11):

The brute force approach is to just use a polyline approximation. If this is just for graphics, it will certainly be accurate enough. Even for more rigorous applications, it will probably be OK.
Compute a large number of points $n$ along the curve. I'd recommend somewhere in the range $n=50$ to $n=1000$, depending on your accuracy requirements and processor speed. Specifically, let the step-length be $s = 1/n$, and let $t_i = i*s$, and let $P_i = C(t_i)$ be a point on the curve, for $i = 0,1, \ldots , n$. Also, let $c_i = \Vert P_i - P_{i-1} \Vert$ be the $i$-th chord length, and let
$$d_i = \frac{\sum_{j=0}^i c_j}{\sum_{j=0}^n c_j}$$
So, in words, $d_i$ is the fractional distance along the polyline $P_0P_1 \ldots P_n$ at the $i$-th point $P_i$.
Now suppose you want to distribute $m+1$ points $Q_0, \ldots , Q_m$ at equal arclengths along the curve. Here's how you locate the $r$-th point $Q_r$.
Let $d = r/m$. Find $i$ such that $d_{i} \le d \le d_{i+1}$. Then let
$$ u = \frac{d - d_i}{d_{i+1} - d_i} $$
$$ t = t_i + u*s = (i+u)*s$$
$$ Q_r = C(t)$$
Getting all the indexing correct is a chore -- there are lots of opportunities for off-by-one errors. But, other than that, it's straightforward. The basic idea is that distances along the curve can be approximated by distances measured along the polyline $P_0P_1 \ldots P_n$.
You can use your existing code to calculate any point $(x,y) = C(t)$ on the curve.
Here's an implementation in C#: