At least, that's what I think, but math can be a strange beast and surprise unexpectedly. Can anyone think of an exception?

]]>This is the problem I had.

sin(2t)/cos^2 t

If you first replace sin(2t) with 2sin t cos t you have:

2 sin t cos t / cos^2 t

you can cancel out cos t and get

2 sin t/ cos t

But sin t /cos t = tan t so we can rewrite it as

2 tan t

differentiate and we get:

2 sec^2 t

Now thats easy as pi and it was the correct answer to the problem. But would rearranging before differentiating ever produce an ambigous answer?

Of course, the form of the original function must always be taken into acount, we cannot use values of t that would result in division by zero or the square root of negative numbers in the original function, even if those values work fine in the deriviate of the function.

Anyways, the question is, is rearranging before differentiating ever a bad idea?

]]>