x,c=var('x,c')
y=c*exp(2*x)
d_y=derivative(y,x) 
# d_y is the first derivative of y wrt x


print "d_y=" ,d_y
print "where c=y*exp(-2*x)"