Anyone familiar with Mathematica?

  • Thread starter Thread starter MissJina
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

This discussion focuses on solving mathematical problems using Mathematica. The first question involves solving the equation sin(x) + cos(x) = √2 for 0 ≤ x ≤ π/2, which can be simplified using the identity sin(π/4) = cos(π/4) = √2/2. The second question requires finding the tangent line to the curve y = x² + 1 at the point (2, 4) and plotting both the tangent and the curve. The user encountered an error while attempting to plot the functions due to incorrect syntax in the Plot command.

PREREQUISITES
  • Basic understanding of trigonometric identities
  • Familiarity with calculus concepts such as derivatives
  • Knowledge of Mathematica syntax and functions
  • Experience with plotting functions in Mathematica
NEXT STEPS
  • Learn how to use Mathematica for solving trigonometric equations
  • Study the derivative function in Mathematica for curve analysis
  • Research proper syntax for the Plot function in Mathematica
  • Explore Mathematica's graphical capabilities for labeling and customizing plots
USEFUL FOR

Students, educators, and professionals in mathematics or engineering who are using Mathematica for solving equations and visualizing functions.

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.
 

Similar threads

Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 105 ·
4
Replies
105
Views
11K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
2
Views
1K