I am having trouble with this problem:

If y= xˆ2+3 and dx/dt = 2 when x = 1, find dy/dt when x = 1.

The answer is 4 but I thought you could just plug in 1 to the equation, get y = 4, then take the derivative with respect to t of both sides and get dy/dt = 0.