Problem in derivative of big eqaution in mathematica

  • Context: Mathematica 
  • Thread starter Thread starter funyhony
  • Start date Start date
  • Tags Tags
    Derivative Mathematica
Click For Summary

Discussion Overview

The discussion revolves around the challenges of deriving a complex equation using Mathematica, specifically focusing on the correct syntax for derivatives and summations. Participants are exploring how to input their equations correctly to obtain derivatives and solutions within the software.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant seeks assistance with inputting an equation into Mathematica to compute its derivative and solve it, mentioning persistent errors.
  • Another participant provides a partial solution, suggesting a specific form of the equation and highlighting the need for clarity on the roles of constants and variables within the summation.
  • There is a discussion about the challenges of using Mathematica's syntax, particularly regarding subscripts and the representation of summations.
  • A participant expresses gratitude for the help received and shares ongoing difficulties with summation and unknown values, indicating a more complex equation involving variations of Pmi.

Areas of Agreement / Disagreement

Participants generally agree on the difficulties of using Mathematica for complex equations, but there is no consensus on the best approach to resolve the issues presented, as multiple viewpoints and challenges remain unresolved.

Contextual Notes

Participants mention the need for clarification on the definitions of variables and constants, as well as the proper handling of summation indices, which remain ambiguous. There are indications of unresolved mathematical steps and dependencies on specific notations.

funyhony
Messages
7
Reaction score
0
i want to put this equation in mathematica to have derivative


i always have error

please tell me how to write it in mathematica to get the derivative

also to solve the equation

i attache the equation in word file
 
Physics news on Phys.org
attached file here
 

Attachments

This is not a complete solution to your problem, but perhaps this will get you started:

J = Sum[Subscript[y, m]Log[Subscript[P, m]] +
(1 - Subscript[y, m])Log[1 - Subscript[P, m]], {m, 1, M}]-
\[Lambda]/K Sum[Sum[(Subscript[P, m]Subscript[P, mPrime])^2,
{mPrime, unknown, unknown}], {m, 1, M + CapN}];
Solve[D[J, Subscript[P, m]] == 0, Subscript[P, m]]

You have to provide more information or figure out on your own whether K is a constant in one place and a function on mPrime in another or somehow find a way to bring your idea of summing over selected elements of a set in line with Mathematica's idea of Sum working with an index variable over a sequential list of integral values. Adjust that inner Sum[] and {mPrime, unknown, unknown} accordingly. It is possible to toss out Sum and use other methods, but I'm guessing from your question that you might not be up to figuring that out.

One other polite comment. I do realize that many people have come to believe that they must, or at least should be able to, "desktop publish" everything they do, inside and outside Mathematica, including subscripts, superscripts, primes, choosing case that matches the notation from a paper or personal choice, etc. In my experience that usually seems to make the task about twice as hard to do. Maybe you will have better luck. You may find in a variety of ways and places in Mathematica that support for this is uneven and mixed and difficult to diagnose when something doesn't work as expected, above and beyond the usual level of Mathematica being cranky and difficult to diagnose why something isn't working. I hope it works out for you.
 
Last edited:
Dear Bill
i really thank you for your help i really learned from you i couldn't know how to write m' and the sum , i was writing them as in word equation

i still have problem in the part of summition m' k(xm)

i don't know how to put the unknown values
i'll try again and tell you what happened

i've more complicated equation with Pmi and m is rows and i is columns from a data base, i mean Pmi have many variations
can this equation be derived and solved with mathematica to get Pmi equation

i really approciate your help so much
thanks so much :)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K