WolframAlpha.com
WolframCloud.com
All Sites & Public Resources...
Products & Services
Wolfram|One
Mathematica
Wolfram|Alpha Notebook Edition
Finance Platform
System Modeler
Wolfram Player
Wolfram Engine
WolframScript
Enterprise Private Cloud
Application Server
Enterprise Mathematica
Wolfram|Alpha Appliance
Enterprise Solutions
Corporate Consulting
Technical Consulting
Wolfram|Alpha Business Solutions
Resource System
Data Repository
Neural Net Repository
Function Repository
Wolfram|Alpha
Wolfram|Alpha Pro
Problem Generator
API
Data Drop
Products for Education
Mobile Apps
Wolfram Player
Wolfram Cloud App
Wolfram|Alpha for Mobile
Wolfram|Alpha-Powered Apps
Services
Paid Project Support
Wolfram U
Summer Programs
All Products & Services »
Technologies
Wolfram Language
Revolutionary knowledge-based programming language.
Wolfram Cloud
Central infrastructure for Wolfram's cloud products & services.
Wolfram Science
Technology-enabling science of the computational universe.
Wolfram Notebooks
The preeminent environment for any technical workflows.
Wolfram Engine
Software engine implementing the Wolfram Language.
Wolfram Natural Language Understanding System
Knowledge-based broadly deployed natural language.
Wolfram Data Framework
Semantic framework for real-world data.
Wolfram Universal Deployment System
Instant deployment across cloud, desktop, mobile, and more.
Wolfram Knowledgebase
Curated computable knowledge powering Wolfram|Alpha.
All Technologies »
Solutions
Engineering, R&D
Aerospace & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Mechanical Engineering
Operations Research
More...
Finance, Statistics & Business Analysis
Actuarial Sciences
Bioinformatics
Data Science
Econometrics
Financial Risk Management
Statistics
More...
Education
All Solutions for Education
Tech & Trends
Machine Learning
Multiparadigm Data Science
High-Performance Computing
Quantum Computation Framework
Software & Web
Software Development
Authoring & Publishing
Interface Development
Web Development
Sciences
Astronomy
Biology
Chemistry
More...
All Solutions »
Learning & Support
Learning
Wolfram Language Documentation
Fast Introduction for Programmers
Wolfram U
Videos & Screencasts
Wolfram Language Introductory Book
Webinars & Training
Summer Programs
Books
Need Help?
Support FAQ
Wolfram Community
Contact Support
Premium Support
Paid Project Support
Technical Consulting
All Learning & Support »
Company
About
Company Background
Wolfram Blog
Events
Contact Us
Work with Us
Careers at Wolfram
Internships
Other Wolfram Language Jobs
Initiatives
Wolfram Foundation
MathWorld
Computer-Based Math
A New Kind of Science
Wolfram Technology for Hackathons
Student Ambassador Program
Wolfram for Startups
Demonstrations Project
Wolfram Innovator Awards
Wolfram + Raspberry Pi
Summer Programs
More...
All Company »
Search
WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
GROUPS:
Chemical Engineering
Mathematica
Calculus
0
David Van Peursem
How to differentiate through a variable-size summation?
David Van Peursem
Posted
10 years ago
7904 Views
|
2 Replies
|
0 Total Likes
Follow this post
|
I have used Mathematica off and on for many years (but not a power user) and there is an important type of calculation I run into often and I have never found out how to perform it easily. Let me give you an easy example.
Let nTot equal the total molar flow over an arbitrary size (N) summation of individual component molar flows (ni)
N
nTot = Sum_i(ni)
Let b equal a weighted (ni/nTot) summation of terms (bi - which could be considered constants).
N
b = Sum_i(ni * bi / nTot)
I need two important partial derivatives of this summation, 1) the individual component molar flow derivatives and 2) the partial molar derivatives.
1) Individual component molar flow derivatives
db
--- = derivative through the summation terms
dni
2) Partial molar derivatives
d(nTot * b)
----------- = derivative through the summation terms
dni
How do I get these derivative in terms of the summation? The answers I would like Mathematica to provide are:
1) Individual component molar flow derivatives
db 1
--- = ---- (bi - b)
dni nTot
2) Partial molar derivatives
d(nTot * b)
----------- = bi
dni
Can someone help me put together a general procedure which yields the desired derivative solutions to these summation equations?
Thanks,
djvp
POSTED BY:
David Van Peursem
Reply
|
Flag
2 Replies
Sort By:
Replies
Likes
Recent
0
Sam Carrettie
Sam Carrettie, Freelancer
Posted
10 years ago
Could you please post Mathematica code of what you have tried as a starting point? In the form you posted it is hard to read and understand. Usually folks post some code to start from. Thanks, Sam.
POSTED BY:
Sam Carrettie
Reply
|
Flag
0
David Van Peursem
David Van Peursem
Posted
10 years ago
Is anyone willing to provide a solution or is Mathematica not capable of doing this?
POSTED BY:
David Van Peursem
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how »