TargetFunctions
✖
TargetFunctions
is an option for functions such as ComplexExpand and FindDistribution that specifies what functions to attempt to generate in the output.
Examples
Basic Examples (4)Summary of the most common use cases
This gives an answer in terms of Re[z] and Im[z]:

https://wolfram.com/xid/0k70wt3iadwnn-ekv4lp

With TargetFunctions->{Abs, Arg}, the answer is given in terms of Abs[z] and Arg[z]:

https://wolfram.com/xid/0k70wt3iadwnn-i6i3wv

Use Conjugate as a target function:

https://wolfram.com/xid/0k70wt3iadwnn-ek2gaj

Generate data sampled from a mixture distribution:

https://wolfram.com/xid/0k70wt3iadwnn-n1xt3w

https://wolfram.com/xid/0k70wt3iadwnn-k0phib
Estimate the best distribution from this data:

https://wolfram.com/xid/0k70wt3iadwnn-ep94wl

With TargetFunctions->{GammaDistribution,NormalDistribution}, the answer is given in terms of gamma distributions and normal distributions:

https://wolfram.com/xid/0k70wt3iadwnn-32ish3

With TargetFunctions->{GammaDistribution}, the answer is given in terms of gamma distributions:

https://wolfram.com/xid/0k70wt3iadwnn-2ezcpm

Compare the PDFs for the three distributions:

https://wolfram.com/xid/0k70wt3iadwnn-tlm92j

Wolfram Research (1996), TargetFunctions, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetFunctions.html.
Text
Wolfram Research (1996), TargetFunctions, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetFunctions.html.
Wolfram Research (1996), TargetFunctions, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetFunctions.html.
CMS
Wolfram Language. 1996. "TargetFunctions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TargetFunctions.html.
Wolfram Language. 1996. "TargetFunctions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TargetFunctions.html.
APA
Wolfram Language. (1996). TargetFunctions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TargetFunctions.html
Wolfram Language. (1996). TargetFunctions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TargetFunctions.html
BibTeX
@misc{reference.wolfram_2025_targetfunctions, author="Wolfram Research", title="{TargetFunctions}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/TargetFunctions.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_targetfunctions, organization={Wolfram Research}, title={TargetFunctions}, year={1996}, url={https://reference.wolfram.com/language/ref/TargetFunctions.html}, note=[Accessed: 06-April-2025
]}