In the equation y=Cekx, the two constants
C and k determine the shape of the graph.
These two values are fixed, given two points
(x0,y0) and
(x1,y1) on the graph.
To see how these two points determine the values of C and k,
plug the two points into the equation separately:





This is where it is important that the two points (x0,y0) and (x1,y1) be on the same side of the x-axis -- in other words, that y0 and y1 have the same sign, so that y1/y0 is positive and the logarithm on the left hand side is defined. If y0 and y1 have the same sign (which can be checked with the inequality y0y1>0) then ln(y1/y0) =ln(|y1|)-ln(|y0|) by properties of logarithms, with the absolute values guaranteeing that the logarithms will be defined even if y0 and y1 are negative. Some care must be taken at this point to check the inequality y0y1>0, though, since this expression with the absolute values no longer requires y0 and y1 to have the same sign.
Continuing to solve for k, the equation now looks like:


Now that the value of k is known (from the points
(x0,y0) and
(x1,y1)), finding C is
easier: plug either point into the equation
y=Cekx -- plugging in
(x0,y0)
gives y0=Cekx0.
Now divide both sides by ekx0
to solve for C:
