Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I want to use undefined functions in expressions to be simplified. For example.

I want mathematica to simplify this input

$(f^{\prime\prime}(t),g^{\prime\prime}(t))\cdot (-g^\prime(t),f^\prime(t)) $

into this output:

$f'(t)g''(t)- f''(t)g'(t)$.

How does one go about the "Simplify" command for that first expression in order to get the second one? How do you specify that $f$ is a function of $t$, without of course defining it, in an expression?

Cheers

share|improve this question
3  
Have a look at Dot. –  b.gatessucks Apr 20 '13 at 19:32
    
he most certainly does not :P –  Valentina Apr 20 '13 at 19:40
add comment

1 Answer

You can define the derivative of a function easily: D[f[t], {t, 1}] is the first derivative of the (unspecified) function f[t]. So your expression is:

{D[f[t], {t, 2}], D[g[t], {t, 2}]}.{-D[g[t], {t, 1}], D[f[t], {t, 1}]}

which nicely returns the desired expression.

You will likely benefit from exploring the documentation a little. For instance, had you looked into the docs for the derivative function by typing

?Derivative

or the simpler form

?D

you would have been able to answer your own question.

`

share|improve this answer
    
thank @bill s ! –  Valentina Apr 20 '13 at 20:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.