# distribute/ square/ sinus

**URL:** <https://community.wolfram.com/t/distribute-square-sinus/5949>\
**Category:** Questions\
**Tags:** mathematica\
**Created:** [June 13, 2015, 7:57pm UTC](https://community.wolfram.com/t/distribute-square-sinus/5949 "2015-06-13T19:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chemsougc](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@chemsougc](https://community.wolfram.com/u/chemsougc)\
**Post date:** [June 13, 2015, 7:57pm UTC](https://community.wolfram.com/t/distribute-square-sinus/5949/1 "2015-06-13T19:57:21Z")

</div>

Good afternoon,  
I have this function:

```
Sin[Sqrt[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)] \[Pi]]

```

I want to distrabute the b² into the parenthese :

```
Sin[\[Pi] Sqrt[(b Sqrt[k\[Sigma]] m)/a - (b^2 m^2)/a^2] ]

```

The Mathematica instruction Distribute allowed to make this, but for one function without the square, and without sinus.  
I make one Mathematica file, as an attachment.  
Greetings.

---

<div class="post-metadata">

**Author:** ![sukrause](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sukrause/32/41348_2.png) [@sukrause](https://community.wolfram.com/u/sukrause)\
**Post date:** [June 14, 2015, 10:03am UTC](https://community.wolfram.com/t/distribute-square-sinus/5949/2 "2015-06-14T10:03:10Z")

</div>

Every time pattern matching in Mathematica seems not to work, e.g. one has

```
In[10]:= Expand[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)]
Out[10]= (b Sqrt[k\[Sigma]] m)/a - (b^2 m^2)/a^2

```

but gets nevertheless

```
In[9]:= Sin[Sqrt[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)] \[Pi]] /. Sqrt[o_] -> Sqrt[Expand[o]]
Out[9]= Sin[Sqrt[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)] \[Pi]]

```

the internal representation of the expression using [FullForm](http://reference.wolfram.com/language/ref/FullForm.html) should be inspected:

```
In[17]:= FullForm[Sin[Sqrt[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)] \[Pi]]]
Out[17]//FullForm= <snip>

```

doing so you proceed as follows

```
In[20]:= Sin[Sqrt[b^2 ((Sqrt[k\[Sigma]] m)/(a b) - m^2/a^2)] \[Pi]] /. Power[o_, Rational[1, 2]] :> Power[Expand[o], Rational[1, 2]]
Out[20]= Sin[Sqrt[(b Sqrt[k\[Sigma]] m)/a - (b^2 m^2)/a^2] \[Pi]]

```
