Anyone familiar with Mathematica?

  • Thread starter Thread starter MissJina
  • Start date Start date
  • Tags Tags
    Mathematica
MissJina
Messages
2
Reaction score
0
I have 2 questions:

1. Solve sin x + cos x =Sqrt2, 0 lessthanequalto x lessthanequalto pi/2.

I can't figure out how to input this question into Mathematica...



2. Find the equation of the tangent to the curve y = x^2+1 at the point (2,4) and plot both the tangent and the graph on the same rectangular frame. Label the parabola curve as y=x^2 and the tangent line by its equation.

So for this I have so far...

input f[x_]:=x^2+1
input m[x_]:=D[f[x]]
input m[2]
then it gave me the output 5
input y-4=m[2](x-2)
output 5(-2+x)
input T=m[2](x-2)+4
output 4+5(-2+x)

and now I'm trying to plot it by...

input Plot[{T,x^2}{x,-5,5}]

but it won't plot for some reason and I get an error msg saying " Plot::argr: Plot called with 1 argument; 2 arguments are expected.

I have no clue what this means...is anyone here that knows how to use Mathematica!??!? Please helpppppp :D Thanks in advance!
 
Physics news on Phys.org
You don't need Mathematica for the first one if you remember that sin(pi/4) = cos(pi/4) = sqrt(2)/2.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top